Skip to content

Commit

Permalink
Added additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkavanagh committed Sep 25, 2019
1 parent 89980f1 commit 214660f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zaza/openstack/charm_tests/policyd/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,19 @@ def test_policyd_good_yaml(self):
'file1.yaml': "{'rule1': '!'}"
}
good_zip_path = self._make_zip_file_from('good.zip', good)
logging.info("About to attach the resource")
zaza_model.attach_resource(self.application_name,
'policyd-override',
good_zip_path)
logging.info("... waiting for idle")
zaza_model.block_until_all_units_idle()
logging.info("Now setting config to true")
self._set_config_and_wait(True)
# check that the file gets to the right location
path = os.path.join(
"/etc", self._service_name, "policy.d", 'file1.yaml')
logging.info("Now checking for file contents: {}".format(path))
zaza_model.block_until_file_has_contents(self.application_name,
path,
"'rule1': '!'")
logging.info("...done")

0 comments on commit 214660f

Please sign in to comment.