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))
Example #3
0
def list_opts():
    return keystone.add_auth_options(SWIFT_OPTS, SWIFT_GROUP)
Example #4
0
def list_opts():
    return keystone.add_auth_options(IRONIC_OPTS, IRONIC_GROUP)
Example #5
0
def list_opts():
    return keystone.add_auth_options(_OPTS, SERVICE_TYPE)
Example #6
0
def list_opts():
    return keystone.add_auth_options(IRONIC_OPTS, IRONIC_GROUP)
Example #7
0
def list_opts():
    return keystone.add_auth_options(_OPTS, SERVICE_TYPE)
Example #8
0
def list_opts():
    return keystone.add_auth_options(SWIFT_OPTS, SWIFT_GROUP)
Example #9
0
def list_opts():
    return keystone.add_auth_options([], 'baremetal-introspection')