Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions azure/azure-release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ extends:
- environment: sandbox
proxy_path: sandbox
post_deploy:
- template: ./templates/run-integration-tests.yml
- template: ./templates/run-smoke-tests.yml
- environment: int
depends_on:
- internal_qa
- internal_qa_sandbox
post_deploy:
- template: ./templates/run-integration-tests.yml
- template: ./templates/run-smoke-tests.yml
24 changes: 24 additions & 0 deletions azure/templates/run-smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
steps:
- bash: |
make install-python
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
displayName: Setup pytests

- bash: |
export RELEASE_RELEASEID=$(Build.BuildId)
export SOURCE_COMMIT_ID=$(Build.SourceVersion)
export APIGEE_ENVIRONMENT="$(ENVIRONMENT)"
export SERVICE_BASE_PATH="$(SERVICE_BASE_PATH)"
export STATUS_ENDPOINT_API_KEY="$(status-endpoint-api-key)"
export APIGEE_API_TOKEN="$(secret.AccessToken)"

poetry run pytest -v -m smoketest -o junit_logging=all --junitxml=smoke_tests_report.xml
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/tests
displayName: run smoke tests

- task: PublishTestResults@2
displayName: 'Publish smoketest results'
condition: always()
inputs:
testResultsFiles: '$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/tests/smoke_tests_report.xml'
failTaskOnFailedTests: true