Did I find the right examples for you? yes no

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/plugins/v3/test_scheduler_hints.py   nova(Download)
    def setUp(self):
        super(SchedulerHintsTestCase, self).setUp()
        self.fake_instance = fakes.stub_instance(1, uuid=FAKE_UUID)
        self.app = compute.APIRouterV3(init_only=('servers',
                                                  'os-scheduler-hints'))

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/plugins/v3/test_server_diagnostics.py   nova(Download)
    def setUp(self):
        super(ServerDiagnosticsTest, self).setUp()
        self.router = compute.APIRouterV3(init_only=('servers',
                                                     'os-server-diagnostics'))
 

src/n/o/nova-HEAD/nova/tests/api/openstack/fakes.py   nova(Download)
def wsgi_app_v3(inner_app_v3=None, fake_auth_context=None,
        use_no_auth=False, ext_mgr=None, init_only=None):
    if not inner_app_v3:
        inner_app_v3 = compute.APIRouterV3(init_only)
 

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/test_v3_extensions.py   nova(Download)
    def test_extensions_loaded(self):
        app = compute.APIRouterV3()
        self.assertIn('servers', app._loaded_extension_info.extensions)
 
    def test_check_bad_extension(self):
        extension_info = plugins.LoadedExtensionInfo()
        self.assertFalse(extension_info._check_extension(fake_bad_extension))
 
    def test_extensions_blacklist(self):
        app = compute.APIRouterV3()
    def test_extensions_blacklist(self):
        app = compute.APIRouterV3()
        self.assertIn('os-hosts', app._loaded_extension_info.extensions)
        CONF.set_override('extensions_blacklist', ['os-hosts'], 'osapi_v3')
        app = compute.APIRouterV3()
        self.addCleanup(self._set_v3_core, v3_core)
 
        app = compute.APIRouterV3()
        self.assertIn('os-hosts', app._loaded_extension_info.extensions)
        CONF.set_override('extensions_whitelist', ['servers', 'os-hosts'],
                          'osapi_v3')
        app = compute.APIRouterV3()

src/n/o/nova-HEAD/nova/tests/api/openstack/compute/plugins/v3/test_servers.py   nova(Download)
    def setUp(self):
        super(ServersAllExtensionsTestCase, self).setUp()
        self.app = compute.APIRouterV3()
 
    def test_create_missing_server(self):