The squid-reverseproxy charm fails automated testing
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Squid Reverse Proxy Charm |
New
|
Undecided
|
Unassigned | |||
squid-reverseproxy (Juju Charms Collection) | Status tracked in Precise | |||||
Precise |
Triaged
|
Medium
|
Unassigned | |||
Trusty |
New
|
Undecided
|
Unassigned |
Bug Description
According to the latest test results by charm http://
http://
The automated testing tool bundle tester calls `make lint` and` make test` targets, both these targets fail.
make lint output:
Checking for Python syntax...
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
make: *** [lint] Error 1
make test output:
ImportError: No module named testtools
All these errors should be cleaned up to ensure the charm passes automated testing and is of higher quality.
Related branches
- Adam Israel (community): Needs Fixing
- Review Queue (community): Needs Fixing (automated testing)
- charmers: Pending requested
-
Diff: 39 lines (+11/-2)2 files modifiedMakefile (+10/-1)
hooks/install (+1/-1)
Changed in squid-reverseproxy (Juju Charms Collection): | |
status: | New → Triaged |
importance: | Undecided → Medium |
The trusty version of this charm is also failing automated testing.
The latest results for the trusty squid-reverseproxy charm:
http:// reports. vapour. ws/charm- tests/charm- bundle- test-10320- results
It looks like the error is different than the precise version, these results indicate the `make test` target is failing with:
ERROR: Failure: ImportError (No module named apt_pkg) ------- ------- ------- ------- ------- ------- ------- ------- ------- jenkins/ charmguardian/ .venv/local/ lib/python2. 7/site- packages/ nose/loader. py", line 411, in loadTestsFromName jenkins/ charmguardian/ .venv/local/ lib/python2. 7/site- packages/ nose/importer. py", line 47, in importFromPath Dir(dir_ path, fqname) jenkins/ charmguardian/ .venv/local/ lib/python2. 7/site- packages/ nose/importer. py", line 94, in importFromDir part_fqname, fh, filename, desc) jenkins/ workspace/ charm-bundle- test/tmpA7Eh2M/ squid-reversepr oxy/hooks/ tests/test_ config_ changed_ hooks.py" , line 4, in <module> jenkins/ workspace/ charm-bundle- test/tmpA7Eh2M/ squid-reversepr oxy/hooks/ hooks.py" , line 14, in <module>
-------
Traceback (most recent call last):
File "/var/lib/
addr.filename, addr.module)
File "/var/lib/
return self.importFrom
File "/var/lib/
mod = load_module(
File "/var/lib/
import hooks
File "/var/lib/
import apt_pkg
ImportError: No module named apt_pkg
Please investigate and fix the charm or the tests so the squid-reverseproxy charm passes automated testing.