Skip to content

Commit

Permalink
Adjust zero downtime test make target
Browse files Browse the repository at this point in the history
  • Loading branch information
kolodziejczak committed Dec 18, 2024
1 parent 85ef92b commit f568967
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/e2e-test-gardener/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ runs:
- name: Uploads artifacts
uses: actions/upload-artifact@v4
with:
name: html-reports_${{ github.job }}_${{ github.action }}_${{ inputs.test_make_target }}
name: html-reports_${{ github.job }}_${{ github.run_id }}_${{ inputs.test_make_target }}
path: tests/integration/reports/
- name: Deprovision cluster
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/post-main-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
HANDLER: ${{ matrix.handler }}
with:
manager_image: "europe-docker.pkg.dev/kyma-project/prod/api-gateway/main/api-gateway-manager:${{ needs.get-sha.outputs.sha }}"
test_make_target: test-migration-zero-downtime
test_make_target: test-migration-zero-downtime-${{ matrix.handler }}

migration-downtime-tests-aws:
name: Zero Downtime Migration Tests AWS
Expand All @@ -152,7 +152,7 @@ jobs:
gardener_provider: aws
client_id: ${{ secrets.CLIENT_ID }}
client_secret: ${{ secrets.CLIENT_SECRET }}
test_make_target: test-migration-zero-downtime
test_make_target: test-migration-zero-downtime-{{ matrix.handler }}

upgrade-tests-k3d:
name: Upgrade tests
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ test-integration-v2alpha1: generate fmt vet ## Run API Gateway integration tests
test-integration-ory: generate fmt vet
go test -timeout 1h ./tests/integration -v -race -run TestOryJwt

.PHONY: test-migration-zero-downtime
test-migration-zero-downtime: generate fmt vet
./tests/integration/scripts/test-zero-downtime.sh $(HANDLER)
.PHONY: test-migration-zero-downtime-%
test-migration-zero-downtime-%: generate fmt vet
./tests/integration/scripts/test-zero-downtime.sh $*

.PHONY: test-integration-istio
test-integration-istio: generate fmt vet
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/scripts/test-zero-downtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ if [[ -z "$HANDLER" || ! "$HANDLER" =~ ^(jwt|noop|no_auth|allow|oauth2_introspec
exit 1
fi

echo "zero-downtime: Running zero downtime tests for handler '$HANDLER'"

# Function to run zero downtime requests to the exposed host of the APIRule
run_zero_downtime_requests() {
local handler="$1"
Expand Down

0 comments on commit f568967

Please sign in to comment.