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))
def list_opts(): return keystone.add_auth_options(SWIFT_OPTS, SWIFT_GROUP)
def list_opts(): return keystone.add_auth_options(IRONIC_OPTS, IRONIC_GROUP)
def list_opts(): return keystone.add_auth_options(_OPTS, SERVICE_TYPE)
def list_opts(): return keystone.add_auth_options(IRONIC_OPTS, IRONIC_GROUP)
def list_opts(): return keystone.add_auth_options(_OPTS, SERVICE_TYPE)
def list_opts(): return keystone.add_auth_options(SWIFT_OPTS, SWIFT_GROUP)
def list_opts(): return keystone.add_auth_options([], 'baremetal-introspection')