def setUp(self): super(KeystoneLegacyTestCase, self).setUp() self.test_group = 'test_group' self.cfg_fixture.conf.register_group(cfg.OptGroup(self.test_group)) self.config(group=ironic_auth.LEGACY_SECTION, auth_uri='http://127.0.0.1:9898', admin_user='******', admin_password='******', admin_tenant_name='fake_tenant') ironic_auth.register_auth_opts(self.cfg_fixture.conf, self.test_group) self.config(group=self.test_group, auth_type=None) self.expected = dict(auth_url='http://127.0.0.1:9898', username='******', password='******', tenant_name='fake_tenant')
def setUp(self): super(AuthConfTestCase, self).setUp() self.test_group = 'test_group' self.cfg_fixture.conf.register_group(cfg.OptGroup(self.test_group)) ironic_auth.register_auth_opts(self.cfg_fixture.conf, self.test_group) self.config(auth_type='password', group=self.test_group) # NOTE(pas-ha) this is due to auth_plugin options # being dynamically registered on first load, # but we need to set the config before plugin = ks_loading.get_plugin_loader('password') opts = ks_loading.get_auth_plugin_conf_options(plugin) self.cfg_fixture.register_opts(opts, group=self.test_group) self.config(auth_url='http://127.0.0.1:9898', username='******', password='******', project_name='fake_tenant', group=self.test_group)
def setUp(self): super(KeystoneLegacyTestCase, self).setUp() self.test_group = 'test_group' self.cfg_fixture.conf.register_group(cfg.OptGroup(self.test_group)) self.config(group=ironic_auth.LEGACY_SECTION, auth_uri='http://127.0.0.1:9898', admin_user='******', admin_password='******', admin_tenant_name='fake_tenant') ironic_auth.register_auth_opts(self.cfg_fixture.conf, self.test_group) self.config(group=self.test_group, auth_type=None) self.expected = dict( auth_url='http://127.0.0.1:9898', username='******', password='******', tenant_name='fake_tenant')
def setUp(self): super(KeystoneTestCase, self).setUp() self.test_group = 'test_group' self.cfg_fixture.conf.register_group(cfg.OptGroup(self.test_group)) ironic_auth.register_auth_opts(self.cfg_fixture.conf, self.test_group, service_type='vikings') self.config(auth_type='password', group=self.test_group) # NOTE(pas-ha) this is due to auth_plugin options # being dynamically registered on first load, # but we need to set the config before plugin = kaloading.get_plugin_loader('password') opts = kaloading.get_auth_plugin_conf_options(plugin) self.cfg_fixture.register_opts(opts, group=self.test_group) self.config(auth_url='http://127.0.0.1:9898', username='******', password='******', project_name='fake_tenant', group=self.test_group)
def register_opts(conf): conf.register_opts(opts, group='inspector') auth.register_auth_opts(conf, 'inspector')
def register_opts(conf): auth.register_auth_opts(conf, SERVICE_CATALOG_GROUP.name, service_type='baremetal')
def register_opts(conf): conf.register_opts(opts, group='json_rpc') auth.register_auth_opts(conf, 'json_rpc') conf.set_default('timeout', 15, group='json_rpc') conf.set_default('connect_retries', 2, group='json_rpc')
def register_opts(conf): conf.register_opts(opts, group='json_rpc') auth.register_auth_opts(conf, 'json_rpc') conf.set_default('timeout', 120, group='json_rpc')
def register_opts(conf): conf.register_opts(opts, group='swift') auth.register_auth_opts(conf, 'swift', service_type='object-store')
def register_opts(conf): auth.register_auth_opts(conf, SERVICE_CATALOG_GROUP.name)
def register_opts(conf): conf.register_opts(opts, group='json_rpc') auth.register_auth_opts(conf, 'json_rpc')
def register_opts(conf): conf.register_opts(opts, group='inspector') auth.register_auth_opts(conf, 'inspector', service_type='baremetal-introspection')
def register_opts(conf): conf.register_opts(opts, group='glance') auth.register_auth_opts(conf, 'glance', service_type='image')
def register_opts(conf): conf.register_opts(opts, group='cinder') auth.register_auth_opts(conf, 'cinder', service_type='volumev3')
def register_opts(conf): conf.register_opts(opts, group='neutron') auth.register_auth_opts(conf, 'neutron')
def register_opts(conf): conf.register_opts(opts, group='cinder') auth.register_auth_opts(conf, 'cinder')
def register_opts(conf): conf.register_opts(opts, group='neutron') auth.register_auth_opts(conf, 'neutron', service_type='network')
def register_opts(conf): conf.register_opts(opts, group='nova') auth.register_auth_opts(conf, 'nova', service_type='compute')
def register_opts(conf): conf.register_opts(opts, group='glance') auth.register_auth_opts(conf, 'glance')
def register_opts(conf): conf.register_opts(opts, group='swift') auth.register_auth_opts(conf, 'swift')