Merge lp:~arosales/charms/precise/ubuntu/add-basic-amulet-test into lp:charms/ubuntu
Proposed by
Antonio Rosales
Status: | Merged |
---|---|
Merged at revision: | 7 |
Proposed branch: | lp:~arosales/charms/precise/ubuntu/add-basic-amulet-test |
Merge into: | lp:charms/ubuntu |
Diff against target: |
88 lines (+78/-0) 2 files modified
tests/00-setup.sh (+7/-0) tests/10-deploy-test.py (+71/-0) |
To merge this branch: | bzr merge lp:~arosales/charms/precise/ubuntu/add-basic-amulet-test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Ceppi (community) | Approve | ||
Review via email: mp+203199@code.launchpad.net |
Description of the change
Add basic Amulet based tests. Sinc the Ubuntu charm does not have any config or relations the tests are very basic and just ensure Ubuntu has indeed been deployed.
To post a comment you must log in.
Note I am getting the following error:
$ juju test 10-deploy-test.py ubuntu- sentry relation- sentry ubuntu sentry: juju-info 10-deploy- test.py" , line 50, in <module> unit['ubuntu/ 0'].run( lsb_release_ command) python3/ dist-packages/ amulet/ sentry. py", line 98, in run python3/ dist-packages/ amulet/ sentry. py", line 47, in query self.config[ 'address' ], endpoint, query, data) python3/ dist-packages/ amulet/ sentry. py", line 50, in _fetch parse.urlencode (query) ) conductor. 10-deploy- test.py RESULT : ✘
juju-test INFO : Starting test run on hp-scale using Juju 1.17.0
Launching instance
- 3461791
Waiting for address
Attempting to connect to 10.5.31.158:22
Attempting to connect to 15.185.125.174:22
Connection to 15.185.125.174 closed.
2014-01-24 20:05:35 Starting deployment of hp-scale
2014-01-24 20:05:39 Deploying services...
2014-01-24 20:05:41 Deploying service ubuntu-sentry using local:precise/
2014-01-24 20:05:44 Exposing service 'ubuntu-sentry'
2014-01-24 20:05:44 Deploying service relation-sentry using local:precise/
2014-01-24 20:05:48 Exposing service 'relation-sentry'
2014-01-24 20:05:48 Deploying service ubuntu using local:precise/
2014-01-24 20:08:12 Config specifies num units for subordinate: ubuntu-sentry
2014-01-24 20:08:12 Adding relations...
2014-01-24 20:08:13 Adding relation ubuntu:juju-info <-> ubuntu-
2014-01-24 20:09:20 Deployment complete in 225.05 seconds
Traceback (most recent call last):
File "tests/
output, code = d.sentry.
File "/usr/lib/
r = self.query('/run', data=command)
File "/usr/lib/
return self._fetch(
File "/usr/lib/
url = "%s/%s?%s" % (address, endpoint, urllib.
AttributeError: 'module' object has no attribute 'parse'
juju-test.
juju-test INFO : Results: 0 passed, 1 failed, 0 errored
ERROR exit status 1
However, I think this may be a bug that Marco has already fixed in Amulet but has not been released in the package yet.
-thanks,
Antonio