예제 #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')
예제 #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)
예제 #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')
예제 #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)
예제 #5
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf, 'inspector')
예제 #6
0
def register_opts(conf):
    auth.register_auth_opts(conf, SERVICE_CATALOG_GROUP.name,
                            service_type='baremetal')
예제 #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')
예제 #8
0
파일: json_rpc.py 프로젝트: yihleong/ironic
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')
예제 #9
0
파일: swift.py 프로젝트: ajya/ironic-fork
def register_opts(conf):
    conf.register_opts(opts, group='swift')
    auth.register_auth_opts(conf, 'swift', service_type='object-store')
예제 #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')
예제 #12
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf, 'inspector',
                            service_type='baremetal-introspection')
예제 #13
0
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance', service_type='image')
예제 #14
0
def register_opts(conf):
    conf.register_opts(opts, group='cinder')
    auth.register_auth_opts(conf, 'cinder', service_type='volumev3')
예제 #15
0
def register_opts(conf):
    conf.register_opts(opts, group='json_rpc')
    auth.register_auth_opts(conf, 'json_rpc')
예제 #16
0
파일: neutron.py 프로젝트: Tehsmash/ironic
def register_opts(conf):
    conf.register_opts(opts, group='neutron')
    auth.register_auth_opts(conf, 'neutron')
예제 #17
0
def register_opts(conf):
    conf.register_opts(opts, group='cinder')
    auth.register_auth_opts(conf, 'cinder')
예제 #18
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf,
                            'inspector',
                            service_type='baremetal-introspection')
예제 #19
0
def register_opts(conf):
    conf.register_opts(opts, group='inspector')
    auth.register_auth_opts(conf, 'inspector')
예제 #20
0
파일: neutron.py 프로젝트: namnx228/ironic
def register_opts(conf):
    conf.register_opts(opts, group='neutron')
    auth.register_auth_opts(conf, 'neutron', service_type='network')
예제 #21
0
파일: nova.py 프로젝트: ajya/ironic-fork
def register_opts(conf):
    conf.register_opts(opts, group='nova')
    auth.register_auth_opts(conf, 'nova', service_type='compute')
예제 #22
0
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance')
예제 #23
0
def register_opts(conf):
    conf.register_opts(opts, group='swift')
    auth.register_auth_opts(conf, 'swift')
예제 #24
0
def register_opts(conf):
    conf.register_opts(opts, group='neutron')
    auth.register_auth_opts(conf, 'neutron')
예제 #25
0
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance', service_type='image')
예제 #26
0
파일: glance.py 프로젝트: zdj6373/ironic
def register_opts(conf):
    conf.register_opts(opts, group='glance')
    auth.register_auth_opts(conf, 'glance')