Samuele,
I took the time to propose a merge against this branch of code with *some* of the suggestions that I made in the review. Please review my merge proposal.
lp:~mbruzek/charms/trusty/apache2/nagios_extra_check_https
This proposal fixes some of the amulet problems but does not address the failing amulet tests.
The failing tests are listed below: ====================================================================== ERROR: tests.test_vhost_config_relation.CreateVhostTest.test_create_vhost_missing_template ---------------------------------------------------------------------- _StringException: Traceback (most recent call last): File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/tmp/bundletester-JYI8cM/apache2/hooks/tests/test_vhost_config_relation.py", line 37, in test_create_vhost_missing_template mock_close_port.assert_called_once() File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 721, in __getattr__ raise AttributeError(name) AttributeError: assert_called_once
====================================================================== ERROR: tests.test_vhost_config_relation.CreateVhostTest.test_create_vhost_template_directly ---------------------------------------------------------------------- _StringException: Traceback (most recent call last): File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/tmp/bundletester-JYI8cM/apache2/hooks/tests/test_vhost_config_relation.py", line 114, in test_create_vhost_template_directly mock_open_port.assert_called_once() File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 721, in __getattr__ raise AttributeError(name) AttributeError: assert_called_once
====================================================================== ERROR: tests.test_vhost_config_relation.CreateVhostTest.test_create_vhost_template_through_config_no_protocol ---------------------------------------------------------------------- _StringException: Traceback (most recent call last): File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/tmp/bundletester-JYI8cM/apache2/hooks/tests/test_vhost_config_relation.py", line 62, in test_create_vhost_template_through_config_no_protocol mock_open_port.assert_called_once() File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 721, in __getattr__ raise AttributeError(name) AttributeError: assert_called_once
====================================================================== ERROR: tests.test_vhost_config_relation.CreateVhostTest.test_create_vhost_template_through_config_with_protocol ---------------------------------------------------------------------- _StringException: Traceback (most recent call last): File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/tmp/bundletester-JYI8cM/apache2/hooks/tests/test_vhost_config_relation.py", line 88, in test_create_vhost_template_through_config_with_protocol mock_open_port.assert_called_once() File "/home/ubuntu/trusty/apache2/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 721, in __getattr__ raise AttributeError(name) AttributeError: assert_called_once
« Back to merge proposal
Samuele,
I took the time to propose a merge against this branch of code with *some* of the suggestions that I made in the review. Please review my merge proposal.
lp:~mbruzek/charms/trusty/apache2/nagios_extra_check_https
This proposal fixes some of the amulet problems but does not address the failing amulet tests.
The failing tests are listed below: ======= ======= ======= ======= ======= ======= ======= ======= ======= vhost_config_ relation. CreateVhostTest .test_create_ vhost_missing_ template ------- ------- ------- ------- ------- ------- ------- ------- ------- ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 1305, in patched ter-JYI8cM/ apache2/ hooks/tests/ test_vhost_ config_ relation. py", line 37, in test_create_ vhost_missing_ template close_port. assert_ called_ once() ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 721, in __getattr__ name)
=======
ERROR: tests.test_
-------
_StringException: Traceback (most recent call last):
File "/home/
return func(*args, **keywargs)
File "/tmp/bundletes
mock_
File "/home/
raise AttributeError(
AttributeError: assert_called_once
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= vhost_config_ relation. CreateVhostTest .test_create_ vhost_template_ directly ------- ------- ------- ------- ------- ------- ------- ------- ------- ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 1305, in patched ter-JYI8cM/ apache2/ hooks/tests/ test_vhost_ config_ relation. py", line 114, in test_create_ vhost_template_ directly open_port. assert_ called_ once() ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 721, in __getattr__ name)
ERROR: tests.test_
-------
_StringException: Traceback (most recent call last):
File "/home/
return func(*args, **keywargs)
File "/tmp/bundletes
mock_
File "/home/
raise AttributeError(
AttributeError: assert_called_once
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= vhost_config_ relation. CreateVhostTest .test_create_ vhost_template_ through_ config_ no_protocol ------- ------- ------- ------- ------- ------- ------- ------- ------- ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 1305, in patched ter-JYI8cM/ apache2/ hooks/tests/ test_vhost_ config_ relation. py", line 62, in test_create_ vhost_template_ through_ config_ no_protocol open_port. assert_ called_ once() ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 721, in __getattr__ name)
ERROR: tests.test_
-------
_StringException: Traceback (most recent call last):
File "/home/
return func(*args, **keywargs)
File "/tmp/bundletes
mock_
File "/home/
raise AttributeError(
AttributeError: assert_called_once
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= vhost_config_ relation. CreateVhostTest .test_create_ vhost_template_ through_ config_ with_protocol ------- ------- ------- ------- ------- ------- ------- ------- ------- ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 1305, in patched ter-JYI8cM/ apache2/ hooks/tests/ test_vhost_ config_ relation. py", line 88, in test_create_ vhost_template_ through_ config_ with_protocol open_port. assert_ called_ once() ubuntu/ trusty/ apache2/ .venv/local/ lib/python2. 7/site- packages/ mock/mock. py", line 721, in __getattr__ name)
ERROR: tests.test_
-------
_StringException: Traceback (most recent call last):
File "/home/
return func(*args, **keywargs)
File "/tmp/bundletes
mock_
File "/home/
raise AttributeError(
AttributeError: assert_called_once