19
20
a number of machines to do this test -- it should work on a local environment
20
21
(LXC), but could be quite resource intensive.
22
Please also note that if you want to deploy the current charm branch you are
23
working on, you need to change the branch URL in the landscape-deployments.yaml
24
file to point to your branch and commit all changes. After you are done with
25
testing, remember to return the branch URL to what it was before
24
Running parts of the integration tests
25
--------------------------------------
27
Running all the integration tests may take quite a while, and sometimes
28
you want to just run the ones that you are working on. To do that, you
29
can bootstrap the Juju environment yourself, and then use the zope
30
testrunner directly. For example:
32
zope-testrunner3 -vv --path tests --tests-pattern basic --test some_test
34
If the different services already are deployed, the command above is enough.
35
But if you run it against an empty environment, you have to remember to pass
36
along environment variables that affect the deployment, such as
37
LS_CHARM_SOURCE=lds-trunk-ppa as to generate the secrets and bundles:
42
Running integration tests on dense MAAS deployment
43
--------------------------------------------------
45
It's possible to run the integration tests on a dense MAAS deployment,
46
where all the services run on the bootstrap node. But given that it's a
47
bit different from other deployments, you have to explicitly tell that
48
it's such a deployment using the DENSE_MAAS environment variable. For
51
DENSE_MAAS=1 make integration-test-trunk
53
Or, if you already have the environment bootstrapped:
55
DENSE_MAAS=1 LS_CHARM_SOURCE=lds-trunk-ppa zope-testrunner3 -vv \
56
--path tests --tests-pattern basic --test some_test
28
59
Testing with Dependent Upstream Charms
34
65
make update-charm-revision-numbers
36
After running this, you can use bzr diff to see what (if any) changes were
37
made to landscape-deployments.yaml.
67
After running this, you can use 'bzr diff bundles' to see what (if any)
68
changes were made to landscape-deployments.yaml.