Skip to content

Commit

Permalink
fixed test for update dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
bosesuneha committed Mar 22, 2023
1 parent 74816c2 commit a4234d2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/gen_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a4234d2

Please sign in to comment.