From a4234d26bb65a6cd39885f69f9841d960881ea4f Mon Sep 17 00:00:00 2001 From: Suneha Bose Date: Mon, 20 Mar 2023 22:25:57 -0700 Subject: [PATCH] fixed test for update dry run --- test/gen_integration.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/gen_integration.sh b/test/gen_integration.sh index 11e98449..16c71db3 100755 --- a/test/gen_integration.sh +++ b/test/gen_integration.sh @@ -290,8 +290,8 @@ languageVariables: - run: ./draft -b main -v generate-workflow -d ./langtest/ -c someAksCluster -r someRegistry -g someResourceGroup --container-name someContainer - name: Execute dry run for update command run: | - mkdir -p test/temp - ./draft --dry-run --dry-run-file test/temp/update_dry_run.json update -d ./langtest/ $ingress_test_args + mkdir -p test/temp + ./draft --dry-run --dry-run-file test/temp/update_dry_run.json update -d ./langtest/ $ingress_test_args - name: Validate JSON run: | npm install -g ajv-cli@5.0.0 @@ -411,8 +411,8 @@ languageVariables: - run: ./draft -v generate-workflow -b main -d ./langtest/ -c someAksCluster -r someRegistry -g someResourceGroup --container-name someContainer - name: Execute dry run for update command run: | - mkdir -p test/temp - ./draft --dry-run --dry-run-file test/temp/update_dry_run.json update -d ./langtest/ $ingress_test_args + mkdir -p test/temp + ./draft --dry-run --dry-run-file test/temp/update_dry_run.json update -d ./langtest/ $ingress_test_args - name: Validate JSON run: | npm install -g ajv-cli@5.0.0 @@ -523,14 +523,6 @@ languageVariables: curl -m 3 \$SERVICEIP:$serviceport kill \$tunnelPID - run: ./draft -v generate-workflow -d ./langtest/ -b main -c someAksCluster -r localhost -g someResourceGroup --container-name testapp - - name: Execute dry run for update command - run: | - mkdir -p test/temp - ./draft --dry-run --dry-run-file test/temp/update_dry_run.json update -d ./langtest/ $ingress_test_args - - name: Validate JSON - run: | - npm install -g ajv-cli@5.0.0 - ajv validate -s test/update_dry_run_schema.json -d test/temp/update_dry_run.json - uses: actions/upload-artifact@v3 with: name: $lang-manifests-create @@ -556,6 +548,14 @@ languageVariables: with: name: $lang-manifests-create path: ./langtest/ + - name: Execute dry run for update command + run: | + mkdir -p test/temp + ./draft --dry-run --dry-run-file test/temp/update_dry_run.json update -d ./langtest/ $ingress_test_args + - name: Validate JSON + run: | + npm install -g ajv-cli@5.0.0 + ajv validate -s test/update_dry_run_schema.json -d test/temp/update_dry_run.json - run: ./draft -v update -d ./langtest/ $ingress_test_args - name: start minikube id: minikube