diff --git a/zaza/openstack/charm_tests/ceph/tests.py b/zaza/openstack/charm_tests/ceph/tests.py index c8fe1b3..ed2eb4e 100644 --- a/zaza/openstack/charm_tests/ceph/tests.py +++ b/zaza/openstack/charm_tests/ceph/tests.py @@ -635,7 +635,7 @@ class CephTest(test_utils.OpenStackBaseTest): self.assertEqual(get_results, create_results) - logging.info('Deleting user...') + logging.info('Deleting existing user...') action_obj = zaza_model.run_action_on_leader( 'ceph-mon', 'delete-user', @@ -645,6 +645,16 @@ class CephTest(test_utils.OpenStackBaseTest): delete_results = action_obj.data['results']['message'] self.assertEqual(delete_results, "updated\n") + logging.info('Deleting non-existing user...') + action_obj = zaza_model.run_action_on_leader( + 'ceph-mon', + 'delete-user', + action_params={'username': 'sandbox'} + ) + logging.debug('Result of action: {}'.format(action_obj)) + delete_results = action_obj.data['results']['message'] + self.assertEqual(delete_results, "entity client.sandbox does not exist\n") + class CephRGWTest(test_utils.OpenStackBaseTest): """Ceph RADOS Gateway Daemons Test Class."""