tests need refactoring
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
python-moinmoin (Juju Charms Collection) | Status tracked in Precise | |||||
Precise |
Fix Committed
|
Undecided
|
José Antonio Rey | |||
Trusty |
Fix Committed
|
Undecided
|
José Antonio Rey |
Bug Description
The python-moinmoin tests are failing consistently upon manual run with the following output:
charles@
juju-test INFO : Starting test run on amazon using Juju 1.20.7
Launching instance
- i-fa0aaa11
Waiting for address
Attempting to connect to ec2-54-
Attempting to connect to ip-10-6-
Attempting to connect to 54.160.140.200:22
Attempting to connect to 10.6.98.35:22
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: git
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz 'https:/
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Added charm "cs:precise/
ERROR charm not found: cs:trusty/haproxy
ERROR service "haproxy" not found
juju-test.
Launching instance
- i-d90faf32
Waiting for address
Attempting to connect to ec2-54-
Attempting to connect to ip-10-9-
Attempting to connect to 54.167.231.80:22
Attempting to connect to 10.9.146.153:22
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: git
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz 'https:/
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Traceback (most recent call last):
File "tests/
main()
File "tests/
srv = d.get("services", {}).get(
IndexError: list index out of range
juju-test.
juju-test INFO : Results: 0 passed, 2 failed, 0 errored
charles@
Related branches
- charmers: Pending requested
-
Diff: 22 lines (+3/-3)1 file modifiedtests/01_deploy.test (+3/-3)
- Charles Butler (community): Approve
- Adam Israel (community): Approve
- Review Queue (community): Needs Fixing (automated testing)
-
Diff: 276 lines (+57/-169)6 files modifiedREADME.md (+3/-3)
hooks/hooks.py (+1/-1)
tests/00-setup (+5/-0)
tests/01_deploy.test (+0/-119)
tests/10-deploy (+48/-0)
tests/get-unit-info (+0/-46)
- Charles Butler (community): Approve
- Adam Israel (community): Approve
- Review Queue (community): Needs Fixing (automated testing)
-
Diff: 366 lines (+55/-244)9 files modifiedREADME.md (+3/-3)
hooks/hooks.py (+1/-1)
tests/00-setup (+3/-11)
tests/10-bundle-test.py (+0/-40)
tests/10-deploy (+48/-0)
tests/100-deploy-test (+0/-119)
tests/bundles.yaml (+0/-21)
tests/get-unit-info (+0/-46)
tests/tests.yaml (+0/-3)
tags: | added: audit |
Changed in python-moinmoin (Juju Charms Collection): | |
assignee: | nobody → José Antonio Rey (jose) |
status: | New → In Progress |
Changed in python-moinmoin (Charms Trusty): | |
status: | New → Triaged |
Changed in python-moinmoin (Charms Precise): | |
status: | In Progress → Fix Committed |
Changed in python-moinmoin (Charms Trusty): | |
assignee: | nobody → José Antonio Rey (jose) |
status: | Triaged → In Progress |
Changed in python-moinmoin (Charms Trusty): | |
status: | In Progress → Fix Committed |
According to the latest test results by charm http:// reports. vapour. ws/charm- tests-by- charm this charm is failing automated testing.
http:// reports. vapour. ws/charm- tests/charm- bundle- test-930- results
The test looks to fail because '$datadir' is undefined. Please note it is OK to have bash tests, just make sure they pass and work as designed.