File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -66,20 +66,23 @@ extends:
6666 post_deploy :
6767 - template : templates/e2e.yml
6868 parameters :
69+ app_id : " 84aa2219-7170-4279-93fb-3d37b89bbc01"
6970 test_type : smoketest
7071 depends_on :
7172 - internal_qa
7273 - environment : sandbox
7374 post_deploy :
7475 - template : templates/e2e.yml
7576 parameters :
77+ app_id : " a50e2f01-ea28-41c9-8666-850c034ddd82"
7678 test_type : smoketest
7779 depends_on :
7880 - internal_qa
7981 - environment : prod
8082 post_deploy :
8183 - template : templates/e2e.yml
8284 parameters :
85+ app_id : " 72ada63b-9d70-4ca2-b9f2-cd1ce74c2dde"
8386 test_type : smoketest
8487 depends_on :
8588 - int
Original file line number Diff line number Diff line change 11parameters :
22 - name : test_type
3+ - name : app_id
4+ type : string
5+ default : " "
36
47steps :
58
@@ -19,12 +22,12 @@ steps:
1922 displayName: poetry install
2023
2124 - bash : |
22- export RELEASE_RELEASEID=$(Build.BuildId)
2325 export SOURCE_COMMIT_ID=$(Build.SourceVersion)
2426 export PROXY_NAME="$(FULLY_QUALIFIED_SERVICE_NAME)"
2527 export APIGEE_ACCESS_TOKEN="$(secret.AccessToken)"
26- export APIGEE_ENVIRONMENT="$(APIGEE_ENVIRONMENT)"
2728 export APIGEE_ORGANIZATION="nhsd-$(APIGEE_ORGANIZATION)"
29+ export APIGEE_APP_ID=${{ parameters.app_id }}
30+ export STATUS_ENDPOINT_API_KEY="$(STATUS_ENDPOINT_API_KEY)"
2831 make -C e2e ${{ parameters.test_type }}
2932
3033 workingDirectory: $(SERVICE_DIR)
Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ TEST_CMD := pytest \
2222 --api-name=sync-wrap \
2323 --proxy-name=$(PROXY_NAME ) \
2424
25- ifdef APIGEE_ORGANIZATION
26- TEST_CMD += --apigee-organization=$(APIGEE_ORGANIZATION )
25+ ifeq ($(APIGEE_ORGANIZATION ) , nhsd-prod)
26+ TEST_CMD += --apigee-organization=$(APIGEE_ORGANIZATION) \
27+ --apigee-app-id=$(APIGEE_APP_ID) \
28+ --status-endpoint-api-key=$(STATUS_ENDPOINT_API_KEY)
2729endif
2830
2931test :
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def _container_not_ready(resp: requests.Response):
7979
8080 deployed_commit_id = resp .json ().get ("commitId" )
8181
82- while deployed_commit_id != getenv ("SOURCE_COMMIT_ID" ) or _container_not_ready (resp ) and retries <= 45 :
82+ while deployed_commit_id != getenv ("SOURCE_COMMIT_ID" ) or _container_not_ready (resp ) and retries <= 50 :
8383 resp = requests .get (
8484 f"{ nhsd_apim_proxy_url } /_status" , headers = status_endpoint_auth_headers , timeout = 30
8585 )
You can’t perform that action at this time.
0 commit comments