Example #1
0
 def test_nova_vmware_joined(self, auth_config, _canonical_url):
     auth_config.return_value = FAKE_KS_AUTH_CFG
     self.is_relation_made.return_value = False
     self.network_manager.return_value = 'neutron'
     _canonical_url.return_value = 'http://nova-cc-host1'
     hooks.nova_vmware_relation_joined()
     self.relation_set.assert_called_with(network_manager='neutron',
                                          relation_id=None,
                                          **FAKE_KS_AUTH_CFG)
 def test_nova_vmware_joined(self, auth_config, _canonical_url):
     auth_config.return_value = FAKE_KS_AUTH_CFG
     self.is_relation_made.return_value = False
     self.network_manager.return_value = 'neutron'
     _canonical_url.return_value = 'http://nova-cc-host1'
     hooks.nova_vmware_relation_joined()
     self.relation_set.assert_called_with(
         network_manager='neutron',
         relation_id=None,
         **FAKE_KS_AUTH_CFG)
 def test_nova_vmware_joined(self, auth_config, _canonical_url):
     auth_config.return_value = FAKE_KS_AUTH_CFG
     # quantum-security-groups, plugin
     self.neutron_plugin.return_value = 'nvp'
     self.network_manager.return_value = 'neutron'
     _canonical_url.return_value = 'http://nova-cc-host1'
     self.api_port.return_value = '9696'
     hooks.nova_vmware_relation_joined()
     self.relation_set.assert_called_with(
         network_manager='neutron', quantum_security_groups='no',
         quantum_url='http://nova-cc-host1:9696', quantum_plugin='nvp',
         relation_id=None,
         **FAKE_KS_AUTH_CFG)
 def test_nova_vmware_joined(self, auth_config, _canonical_url):
     auth_config.return_value = FAKE_KS_AUTH_CFG
     # quantum-security-groups, plugin
     self.neutron_plugin.return_value = 'nvp'
     self.network_manager.return_value = 'neutron'
     _canonical_url.return_value = 'http://nova-cc-host1'
     self.api_port.return_value = '9696'
     hooks.nova_vmware_relation_joined()
     self.relation_set.assert_called_with(
         network_manager='neutron',
         quantum_security_groups='no',
         quantum_url='http://nova-cc-host1:9696',
         quantum_plugin='nvp',
         relation_id=None,
         **FAKE_KS_AUTH_CFG)