Exemplo n.º 1
0
 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')
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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')
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf, 'inspector')
Exemplo n.º 6
0
def register_opts(conf):
    auth.register_auth_opts(conf, SERVICE_CATALOG_GROUP.name,
                            service_type='baremetal')
Exemplo n.º 7
0
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')
Exemplo n.º 8
0
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')
Exemplo n.º 9
0
def register_opts(conf):
    conf.register_opts(opts, group='swift')
    auth.register_auth_opts(conf, 'swift', service_type='object-store')
Exemplo n.º 10
0
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')
Exemplo n.º 12
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf, 'inspector',
                            service_type='baremetal-introspection')
Exemplo n.º 13
0
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance', service_type='image')
Exemplo n.º 14
0
def register_opts(conf):
    conf.register_opts(opts, group='cinder')
    auth.register_auth_opts(conf, 'cinder', service_type='volumev3')
Exemplo n.º 15
0
def register_opts(conf):
    conf.register_opts(opts, group='json_rpc')
    auth.register_auth_opts(conf, 'json_rpc')
Exemplo n.º 16
0
def register_opts(conf):
    conf.register_opts(opts, group='neutron')
    auth.register_auth_opts(conf, 'neutron')
Exemplo n.º 17
0
def register_opts(conf):
    conf.register_opts(opts, group='cinder')
    auth.register_auth_opts(conf, 'cinder')
Exemplo n.º 18
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf,
                            'inspector',
                            service_type='baremetal-introspection')
Exemplo n.º 19
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf, 'inspector')
Exemplo n.º 20
0
def register_opts(conf):
    conf.register_opts(opts, group='neutron')
    auth.register_auth_opts(conf, 'neutron', service_type='network')
Exemplo n.º 21
0
def register_opts(conf):
    conf.register_opts(opts, group='nova')
    auth.register_auth_opts(conf, 'nova', service_type='compute')
Exemplo n.º 22
0
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance')
Exemplo n.º 23
0
def register_opts(conf):
    conf.register_opts(opts, group='swift')
    auth.register_auth_opts(conf, 'swift')
Exemplo n.º 24
0
def register_opts(conf):
    conf.register_opts(opts, group='neutron')
    auth.register_auth_opts(conf, 'neutron')
Exemplo n.º 25
0
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance', service_type='image')
Exemplo n.º 26
0
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance')