def test_add_auth_options(self):
     group, opts = keystone.add_auth_options([], TESTGROUP)[0]
     self.assertEqual(TESTGROUP, group)
     # check that there is no duplicates
     names = {o.dest for o in opts}
     self.assertEqual(len(names), len(opts))
     # NOTE(pas-ha) checking for most standard auth and session ones only
     expected = {'timeout', 'insecure', 'cafile', 'certfile', 'keyfile',
                 'auth_type', 'auth_url', 'username', 'password',
                 'tenant_name', 'project_name', 'trust_id',
                 'domain_id', 'user_domain_id', 'project_domain_id'}
     self.assertTrue(expected.issubset(names))
 def test_add_auth_options(self):
     opts = keystone.add_auth_options([], 'fake-service')
     # check that there is no duplicates
     names = {o.dest for o in opts}
     self.assertEqual(len(names), len(opts))
     # NOTE(pas-ha) checking for most standard auth and session ones only
     expected = {
         'timeout', 'insecure', 'cafile', 'certfile', 'keyfile',
         'auth_type', 'auth_url', 'username', 'password', 'tenant_name',
         'project_name', 'trust_id', 'domain_id', 'user_domain_id',
         'project_domain_id'
     }
     self.assertTrue(expected.issubset(names))
示例#3
0
def list_opts():
    return keystone.add_auth_options(SWIFT_OPTS, SWIFT_GROUP)
示例#4
0
def list_opts():
    return keystone.add_auth_options(IRONIC_OPTS, IRONIC_GROUP)
示例#5
0
def list_opts():
    return keystone.add_auth_options(_OPTS, SERVICE_TYPE)
示例#6
0
def list_opts():
    return keystone.add_auth_options(IRONIC_OPTS, IRONIC_GROUP)
示例#7
0
def list_opts():
    return keystone.add_auth_options(_OPTS, SERVICE_TYPE)
示例#8
0
def list_opts():
    return keystone.add_auth_options(SWIFT_OPTS, SWIFT_GROUP)
示例#9
0
def list_opts():
    return keystone.add_auth_options([], 'baremetal-introspection')