def test_configure_https_disable(self, identity_joined): '''It enables https from hooks when we have https data''' self.CONFIGS.complete_contexts.return_value = [] self.relation_ids.return_value = ['identity-service:0'] hooks.configure_https() cmd = ['a2dissite', 'openstack_https_frontend'] self.check_call.assert_called_with(cmd) identity_joined.assert_called_with(rid='identity-service:0')
def test_configure_https_disable(self, identity_joined): 'It enables https from hooks when we have https data' self.CONFIGS.complete_contexts.return_value = [] self.relation_ids.return_value = ['identity-service:0'] hooks.configure_https() self.check_call.assert_called_with( ['a2dissite', 'openstack_https_frontend']) self.service_reload.assert_called_with('apache2', restart_on_failure=True) identity_joined.assert_called_with(rid='identity-service:0')
def test_configure_https_disable(self, identity_joined): 'It enables https from hooks when we have https data' self.CONFIGS.complete_contexts.return_value = [] self.relation_ids.return_value = ['identity-service:0'] hooks.configure_https() self.check_call.assert_called_with(['a2dissite', 'openstack_https_frontend']) self.service_reload.assert_called_with('apache2', restart_on_failure=True) identity_joined.assert_called_with(rid='identity-service:0')