Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Adding extra assertion for release condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisholly-skyuk committed Jul 1, 2020
1 parent e700180 commit 9cbbe0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/40_tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ function setup() {

# Assert `Tested` condition is `False`
poll_until_equals 'tested condition False' 'False' "kubectl -n $DEMO_NAMESPACE get helmrelease/podinfo-helm-repository -o jsonpath='{.status.conditions[?(@.type==\"Tested\")].status}'"

# Assert `Released` condition is `True`
poll_until_equals 'released condition True' 'True' "kubectl -n $DEMO_NAMESPACE get helmrelease/podinfo-helm-repository -o jsonpath='{.status.conditions[?(@.type==\"Released\")].status}'"
}

@test "When test.enable and rollback.enable are set and test.ignoreFailures is false, releases with failed tests are rolled back" {
Expand Down

0 comments on commit 9cbbe0d

Please sign in to comment.