Skip to content

Commit f0526fd

Browse files
committed
Update test to pass traffic to handle new conf
Now that we are using localhost as an upstream we need to make sure that the test to pass traffic checks for the correct headers based on the new config.
1 parent eab3ddc commit f0526fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/github-action-test-nginxaas-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: "Validate config update - single file"
4747
shell: bash
4848
run: |
49-
wget -O - -o /dev/null http://${{ secrets.NGINX_DEPLOYMENT_IP }} | jq '.request.headers."Github-Run-Id" | test( "'"$GITHUB_RUN_NUMBER"'")'
49+
wget -S -q --spider http://${{ secrets.NGINX_DEPLOYMENT_IP }} 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"
5050
- name: "Update config - multi file"
5151
shell: bash
5252
run: |
@@ -69,12 +69,12 @@ jobs:
6969
- name: "Validate config update"
7070
shell: bash
7171
run: |
72-
wget -O - -o /dev/null http://${{ secrets.NGINX_DEPLOYMENT_IP }} | jq '.request.headers."Github-Run-Id" | test( "'"$GITHUB_RUN_ID"'")'
72+
wget -S -q --spider http://${{ secrets.NGINX_DEPLOYMENT_IP }} 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"
7373
- name: "Validate certificate update"
7474
uses: azure/CLI@v1
7575
with:
7676
inlineScript: |
7777
echo "-----BEGIN CERTIFICATE-----" > /tmp/$GITHUB_RUN_ID.tmp
7878
az keyvault certificate show --vault-name $NGINX_VAULT_NAME -n $NGINX_CERT_NAME | jq -r .cer | cat >> /tmp/$GITHUB_RUN_ID.tmp
7979
echo "-----END CERTIFICATE-----" >> /tmp/$GITHUB_RUN_ID.tmp
80-
wget -O - -o /dev/null https://${{ secrets.NGINX_DEPLOYMENT_IP }} --ca-certificate=/tmp/$GITHUB_RUN_ID.tmp | jq '.request.headers."Github-Run-Id" | test( "'"$GITHUB_RUN_ID"'")'
80+
wget -S -q --spider https://${{ secrets.NGINX_DEPLOYMENT_IP }} --ca-certificate=/tmp/$GITHUB_RUN_ID.tmp 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"

0 commit comments

Comments
 (0)