Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Need more control over pre-test deployment of bundle #43
Comments
|
Perhaps another possibility would be to add an option that lets the bundle specify a test case (e.g., |
|
So we could simplify this down to:
@johnsca does that work for you? |
tvansteenburgh
self-assigned this
May 6, 2016
|
Or maybe:
@johnsca Thoughts? |
|
Nice and clean, accomplishes what we need. +1 |
tvansteenburgh
closed this
in
90f93d9
May 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
johnsca commentedMay 3, 2016
When testing a bundle, BT deploys the bundle, then runs the charm tests, before finally running the bundle tests. This doesn't give the bundle test a chance to affect the deployment, meaning the only option in some cases is to reset the env and redeploy, which can make long tests take longer.
Suggested additions to
test.yamloptions:pre_deploy(default: true) Allows you to disable the automatic pre-deployment of the bundlecharm_tests_first(default: true) Allows you to have the bundle tests run before the charm testsIf both of these are changed, it would mean that the bundle tests are responsible for deploying the bundle and have full control over that deployment. The charm tests could still re-use that environment, assuming
resetis disabled and the service names match.