summaryrefslogtreecommitdiff
path: root/keystone_tempest_plugin/tests/api/identity/v3/fixtures.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystone_tempest_plugin/tests/api/identity/v3/fixtures.py')
-rw-r--r--keystone_tempest_plugin/tests/api/identity/v3/fixtures.py67
1 files changed, 0 insertions, 67 deletions
diff --git a/keystone_tempest_plugin/tests/api/identity/v3/fixtures.py b/keystone_tempest_plugin/tests/api/identity/v3/fixtures.py
deleted file mode 100644
index 4e5899c..0000000
--- a/keystone_tempest_plugin/tests/api/identity/v3/fixtures.py
+++ /dev/null
@@ -1,67 +0,0 @@
1# Copyright 2016 Red Hat, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15from tempest.lib.common.utils import data_utils
16
17
18def idp_ref(enabled=None, remote_ids=None):
19 ref = {
20 'description': data_utils.rand_uuid_hex(),
21 }
22 if enabled is not None:
23 ref['enabled'] = enabled
24
25 if remote_ids:
26 ref['remote_ids'] = remote_ids
27
28 return ref
29
30
31def mapping_ref():
32 rules = [{
33 'local': [
34 {
35 'user': {'name': '{0}'}
36 },
37 {
38 'group_ids': '{1}'
39 }
40 ],
41 'remote': [
42 {
43 'type': 'openstack_username'
44 },
45 {
46 'type': 'group_ids',
47 'whitelist': ['abc', '123']
48 }
49
50 ]
51 }]
52 return {'rules': rules}
53
54
55def sp_ref(enabled=None, relay_state_prefix=None):
56 ref = {
57 'auth_url': data_utils.rand_url(),
58 'description': data_utils.rand_uuid_hex(),
59 'sp_url': data_utils.rand_url(),
60 }
61 if enabled:
62 ref['enabled'] = enabled
63
64 if relay_state_prefix:
65 ref['relay_state_prefix'] = relay_state_prefix
66
67 return ref