-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for
deferPhase
in blueprint actions (#1337)
* Support `deferPhase` in blueprint action Blueprints can now define `deferPhase` for every action that would be run once all (some in case of failure) the phases of a blueprint action are run. * Update docs for deferPhase changes * Refactor code and add test for utility functions * Address review comment, modularise functions * Add test for deferPhase This commit adds a test that uses a blueprint with `deferPhase` and consumes artifacts in other action. * Fix function signature changes in other sourcefiles * Imporve deferPhase test * Refactor eventual phase test, add error cases * Improve deferPhase test to check artifacts as well * Make sure deferPhase is completed in deferPhase test * Addressed review comments 1. Make the phase function generic so that it can be used by restore phase as well deferPhase 2. unset the env var that is set in test * Fix golint CI failure * Fix travis.yaml 1. travis CI has been consistently failing recenlty with below error ``` FAIL: crd_test.go:30: CRDSuite.TestCRDMatcher crd_test.go:49: c.Assert(len(igvrs)+len(egvrs), Equals, len(gvrs)) ... obtained int = 64 ... expected int = 32 OOPS: 0 passed, 1 FAILED ``` And this happens if there are no CRDs present in the cluster. This commit installs CSI hostpath that installs some CRDs. 2. We were running `helm-test` twice unknowlingly, this resolves that as well.
- Loading branch information
1 parent
c71b5aa
commit 019530e
Showing
4 changed files
with
318 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.