Skip to content

Commit 0152f1f

Browse files
APM-6193-FixingsftIssue
1 parent 5f09e62 commit 0152f1f

File tree

5 files changed

+2955
-722
lines changed

5 files changed

+2955
-722
lines changed

azure/templates/run-integration-tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ steps:
99
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
1010
displayName: Setup integration tests
1111
12-
# - bash: |
13-
# export SOURCE_COMMIT_ID=$(Build.SourceVersion)
14-
# export APIGEE_ACCESS_TOKEN="$(secret.AccessToken)"
15-
# export PROXY_NAME="$(FULLY_QUALIFIED_SERVICE_NAME)"
16-
# export API_NAME="shared-flow-testing"
17-
# export OAUTH_BASE_URI="https://$(APIGEE_ENVIRONMENT).api.service.nhs.uk/oauth2-mock"
18-
# export ACCESS_TOKEN_HASH_SECRET="$(ACCESS_TOKEN_SECRET)"
12+
- bash: |
13+
export SOURCE_COMMIT_ID=$(Build.SourceVersion)
14+
export APIGEE_ACCESS_TOKEN="$(secret.AccessToken)"
15+
export PROXY_NAME="$(FULLY_QUALIFIED_SERVICE_NAME)"
16+
export API_NAME="shared-flow-testing"
17+
export OAUTH_BASE_URI="https://$(APIGEE_ENVIRONMENT).api.service.nhs.uk/oauth2-mock"
18+
export ACCESS_TOKEN_HASH_SECRET="$(ACCESS_TOKEN_SECRET)"
1919
20-
# poetry run pytest --reruns 2 --reruns-delay 1 -v --junitxml=test-report.xml
21-
# workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
22-
# displayName: Run integration tests
20+
poetry run pytest --reruns 2 --reruns-delay 1 -v --junitxml=test-report.xml
21+
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
22+
displayName: Run integration tests
2323
2424
- task: PublishTestResults@2
2525
displayName: 'Publish smoketest results'

package.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@
33
"version": "0.0.1",
44
"description": "OAS (Swagger v3) API Definition for Template API",
55
"scripts": {
6-
"lint": "node_modules/.bin/openapi-generator-cli validate -i specification/shared-flow-testing.yaml",
7-
"publish": "./node_modules/.bin/openapi-generator-cli generate -i specification/shared-flow-testing.yaml --generator-key v3.0 -g openapi -o build && rm openapitools.json && mv build/openapi.json build/shared-flow-testing.json",
6+
"lint": "node_modules/.bin/speccy lint -s openapi-tags -s operation-tags specification/shared-flow-testing.yaml --skip default-and-example-are-redundant",
7+
"publish": "mkdir -p build && node_modules/.bin/speccy resolve specification/shared-flow-testing.yaml -i | poetry run python scripts/yaml2json.py | poetry run python scripts/set_version.py > build/shared-flow-testing.json",
8+
"serve": "node_modules/.bin/speccy serve build/shared-flow-testing.json",
89
"check-licenses": "node_modules/.bin/license-checker --failOn GPL --failOn LGPL"
910
},
1011
"author": "NHS Digital",
1112
"license": "MIT",
1213
"homepage": "https://github.com/NHSDigital/shared-flow-testing",
14+
"dependencies": {
15+
"newman-reporter-htmlextra": "^1.20.1",
16+
"speccy": "^0.11.0"
17+
},
1318
"devDependencies": {
14-
"apigeetool": "^0.16.5",
19+
"apigeetool": "^0.14.2",
1520
"license-checker": "^25.0.1",
16-
"minimist": "^1.2.6",
17-
"@openapitools/openapi-generator-cli": "^2.5.1"
21+
"minimist": "^1.2.2",
22+
"newman": "^4.5.7",
23+
"newman-reporter-html": "^1.0.5"
1824
}
19-
}
25+
}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ pytest-nhsd-apim = "^3.3.2"
2929

3030
[tool.poetry.dev-dependencies]
3131
flake8 = "^3.7.9"
32-
black = "^23.0.0"
32+
black = "^20.8b1"
3333
pip-licenses = "^2.0.1"
3434
jinja2 = "^2.11.1"
3535
pyyaml = "^5.2"
3636
docopt = "^0.6.2"
3737
jsonpath-rw = "^1.4.0"
3838
semver = "^2.9.0"
39-
gitpython = "^3.1.34"
39+
gitpython = "^3.0.5"
4040
pytest = "^6.1.2"
4141
coverage = "^5.5"
4242
aiohttp = "^3.7.3"

0 commit comments

Comments
 (0)