From 79bb9321a4cd0592753079f200658aee7aa552fa Mon Sep 17 00:00:00 2001 From: Keepers Date: Tue, 9 May 2023 22:14:07 -0600 Subject: [PATCH] fix the unbounded var sanity test site flags (#3376) #### Does this PR need a docs update or release note? - [x] :no_entry: No #### Type of change - [x] :robot: Supportability/Tests #### Test Plan - [x] :green_heart: E2E --- .github/workflows/sanity-test.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sanity-test.yaml b/.github/workflows/sanity-test.yaml index e011069e0..c6772396d 100644 --- a/.github/workflows/sanity-test.yaml +++ b/.github/workflows/sanity-test.yaml @@ -36,6 +36,7 @@ jobs: CORSO_LOG_DIR: testlog CORSO_LOG_FILE: testlog/testlogging.log TEST_USER: ${{ github.event.inputs.user != '' && github.event.inputs.user || secrets.CORSO_M365_TEST_USER_ID }} + TEST_SITE: ${{ secrets.CORSO_M365_TEST_SITE_URL }} SECONDARY_TEST_USER : ${{ secrets.CORSO_SECONDARY_M365_TEST_USER_ID }} CORSO_PASSPHRASE: ${{ secrets.INTEGRATION_TEST_CORSO_PASSPHRASE }} TEST_RESULT: test_results @@ -123,7 +124,7 @@ jobs: AZURE_TENANT_ID: ${{ secrets.TENANT_ID }} run: | go run . exchange emails \ - --user ${{ env.TEST_USER }} \ + --user ${TEST_USER} \ --tenant ${{ env.AZURE_TENANT_ID }} \ --destination Corso_Restore_st_${{ steps.repo-init.outputs.result }} \ --count 4 @@ -268,7 +269,7 @@ jobs: suffix=`date +"%Y-%m-%d_%H-%M"` go run . onedrive files \ - --user ${{ env.TEST_USER }} \ + --user ${TEST_USER} \ --secondaryuser ${{ env.SECONDARY_TEST_USER }} \ --tenant ${{ env.AZURE_TENANT_ID }} \ --destination Corso_Restore_st_$suffix \ @@ -364,7 +365,7 @@ jobs: AZURE_TENANT_ID: ${{ secrets.TENANT_ID }} run: | go run . onedrive files \ - --user ${{ env.TEST_USER }} \ + --user ${TEST_USER} \ --secondaryuser ${{ env.SECONDARY_TEST_USER }} \ --tenant ${{ env.AZURE_TENANT_ID }} \ --destination Corso_Restore_st_${{ steps.new-data-creation-onedrive.outputs.result }} \ @@ -432,7 +433,7 @@ jobs: ./corso backup create sharepoint \ --no-stats \ --hide-progress \ - --site "${CORSO_M365_TEST_SITE_URL}" \ + --site "${TEST_SITE}" \ --json \ 2>&1 | tee $TEST_RESULT/backup_sharepoint.txt @@ -518,7 +519,7 @@ jobs: ./corso backup create sharepoint \ --no-stats \ --hide-progress \ - --site "${CORSO_M365_TEST_SITE_URL}" \ + --site "${TEST_SITE}" \ --json \ 2>&1 | tee $TEST_RESULT/backup_sharepoint_incremental.txt