Ejemplo n.º 1
0
 def setUp(self):
     super(TestNfvoPlugin, self).setUp()
     self.addCleanup(mock.patch.stopall)
     self.context = context.get_admin_context()
     self._mock_driver_manager()
     mock.patch('tacker.nfvo.nfvo_plugin.NfvoPlugin.__run__').start()
     self.nfvo_plugin = nfvo_plugin.NfvoPlugin()
Ejemplo n.º 2
0
 def setUp(self):
     super(VIMCreateTestCase, self).setUp()
     plugin = nfvo_plugin.NfvoPlugin()
     resource_name = 'vim'
     collection_name = resource_name + "s"
     attribute_info = nfvo.RESOURCE_ATTRIBUTE_MAP[collection_name]
     self.controller = v1_base.Controller(plugin, collection_name,
                                          resource_name, attribute_info)
Ejemplo n.º 3
0
 def setUp(self):
     super(TestNfvoPlugin, self).setUp()
     self.addCleanup(mock.patch.stopall)
     self.context = context.get_admin_context()
     self._mock_driver_manager()
     mock.patch('tacker.nfvo.nfvo_plugin.NfvoPlugin.__run__').start()
     self.nfvo_plugin = nfvo_plugin.NfvoPlugin()
     mock.patch('tacker.db.common_services.common_services_db.'
                'CommonServicesPluginDb.create_event').start()
     self._cos_db_plugin = common_services_db.CommonServicesPluginDb()