I had 1 first, then 4 failures and kept getting 4 failures.
I looked into the first one:
```
tests/unit/test_apache.py::TestCharm::test_configure_health_check FAILED
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I see various number of test failure when running the `make test`
https:/ /pastebin. canonical. com/p/BWrn6vYB4 6/
I had 1 first, then 4 failures and kept getting 4 failures.
I looked into the first one: test_apache. py::TestCharm: :test_configure _health_ check FAILED >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >> traceback >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>
```
tests/unit/
>>>>>>>
self = <test_apache. TestCharm testMethod= test_configure_ health_ check>, check_call = <MagicMock name='check_call' id='13984171654 5280'>, call = <MagicMock name='call' id='13984171629 1136'> 3232'>, setegid = <MagicMock name='setegid' id='13984171631 1232'>, chown = <MagicMock name='chown' id='13984171562 7488'> 7360'>
seteuid = <MagicMock name='seteuid' id='13984171630
write_file = <MagicMock name='write_file' id='13984171523
@mock. patch(' charmhelpers. core.host. write_file' ) patch(' os.chown' ) patch(' os.setegid' ) patch(' os.seteuid' ) patch(' subprocess. call') patch(' subprocess. check_call' ) health_ check(self, check_call, call, seteuid, setegid, chown, write_file): Config( {'enable_ healthcheck' : True}) (apache. configure_ health_ check(config) )
@mock.
@mock.
@mock.
@mock.
@mock.
def test_configure_
config = hookenv.
> self.assertTrue
E AssertionError: False is not true
tests/unit/ test_apache. py:63: AssertionError >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> entering PDB >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >
>>>>>>>
>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> PDB post_mortem >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> python3. 8/unittest/ case.py( 765)assertTrue( ) eption( msg) repos/charms/ ubuntu- repository- cache/health- check-retries- on-failure/ tests/unit/ test_apache. py(63)test_ configure_ health_ check() (apache. configure_ health_ check(config) ) server_ signature' : 'On', server_ tokens' : 'OS', trace_enabled' : 'Off', ubuntu. com', healthcheck' : True, logging' : True, ubuntu. com'}
> /usr/lib/
-> raise self.failureExc
(Pdb) u
> /home/ballot/
-> self.assertTrue
(Pdb) pp config
{'apache2_
'apache2_
'apache2_
'display-host': 'archive.
'enable_
'path-base': 'ubuntu',
'remoteip_
'sync-host': 'us.archive.
```
Apparently the `if config. changed( 'enable_ healthcheck' ):` is not triggered by `config = hookenv. Config( {'enable_ healthcheck' : True})`