Exemplo n.º 1
0
 def test_configure_https_disable_with_image_service(
         self, configs, image_service_joined, _canonical_url):
     configs.complete_contexts = MagicMock()
     configs.complete_contexts.return_value = ['']
     configs.write = MagicMock()
     self.relation_ids.return_value = ['image-service:0']
     relations.configure_https()
     self.check_call.assert_called_with(
         ['a2dissite', 'openstack_https_frontend'])
     self.service_reload.assert_called_with('apache2',
                                            restart_on_failure=True)
     image_service_joined.assert_called_with(relation_id='image-service:0')
Exemplo n.º 2
0
 def test_configure_https_disable_with_image_service(
         self, configs, image_service_joined, _canonical_url):
     configs.complete_contexts = MagicMock()
     configs.complete_contexts.return_value = ['']
     configs.write = MagicMock()
     self.relation_ids.return_value = ['image-service:0']
     relations.configure_https()
     self.check_call.assert_called_with(['a2dissite',
                                         'openstack_https_frontend'])
     self.service_reload.assert_called_with('apache2',
                                            restart_on_failure=True)
     image_service_joined.assert_called_with(relation_id='image-service:0')