Skip to content

Commit

Permalink
log only if test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Jul 18, 2024
1 parent 6fbeee2 commit f6c8220
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ jobs:
- name: "Run E2E Test"
run: |-
./gradlew -DincludeTags="EndToEndTest" test -DverboseTest=true || kubectl logs deployment/provider-qna-controlplane -n mvd
./gradlew -DincludeTags="EndToEndTest" test -DverboseTest=true
- name: "Print log if test failed"
if: failure()
run: |-
kubectl logs deployment/provider-qna-controlplane -n mvd
- name: "Destroy the KinD cluster"
run: >-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void transferData() {
await().atMost(TEST_TIMEOUT_DURATION)
.pollDelay(TEST_POLL_DELAY)
.untilAsserted(() -> {
var jp= baseRequest()
var jp = baseRequest()
.get(PROVIDER_MANAGEMENT_URL + "/api/management/v3/dataplanes")
.then()
.statusCode(200)
Expand Down

0 comments on commit f6c8220

Please sign in to comment.