Need more control over pre-test deployment of bundle #43

Closed
johnsca opened this Issue May 3, 2016 · 4 comments

Comments

Projects
None yet
2 participants
Owner

johnsca commented May 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.yaml options:

  • pre_deploy (default: true) Allows you to disable the automatic pre-deployment of the bundle
  • charm_tests_first (default: true) Allows you to have the bundle tests run before the charm tests

If 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 reset is disabled and the service names match.

Owner

johnsca commented May 3, 2016

Perhaps another possibility would be to add an option that lets the bundle specify a test case (e.g., 00-setup) that replaces the automatic pre-deployment step (with the order otherwise being unaffected)?

Member

tvansteenburgh commented May 6, 2016

So we could simplify this down to:

bundle_deploy: auto | <test name>

@johnsca does that work for you?

@tvansteenburgh tvansteenburgh self-assigned this May 6, 2016

Member

tvansteenburgh commented May 9, 2016

Or maybe:

bundle_deploy: true | false | <test name>

@johnsca Thoughts?

Owner

johnsca commented May 10, 2016

Nice and clean, accomplishes what we need. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment