Beispiel #1
0
 def test_nova_cell_relation_joined(self, _canonical_url):
     self.uuid.uuid4.return_value = 'bob'
     _canonical_url.return_value = 'http://novaurl'
     hooks.nova_cell_relation_joined(rid='rid', remote_restart=True)
     self.relation_set.assert_called_with(restart_trigger='bob',
                                          nova_url='http://novaurl:8774/v2',
                                          relation_id='rid')
 def test_nova_cell_relation_joined(self, _canonical_url):
     self.uuid.uuid4.return_value = 'bob'
     _canonical_url.return_value = 'http://novaurl'
     hooks.nova_cell_relation_joined(rid='rid',
                                     remote_restart=True)
     self.relation_set.assert_called_with(restart_trigger='bob',
                                          nova_url='http://novaurl:8774/v2',
                                          relation_id='rid')