summaryrefslogtreecommitdiff
path: root/keystone_tempest_plugin/services/identity/v3/mapping_rules_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystone_tempest_plugin/services/identity/v3/mapping_rules_client.py')
-rw-r--r--keystone_tempest_plugin/services/identity/v3/mapping_rules_client.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/keystone_tempest_plugin/services/identity/v3/mapping_rules_client.py b/keystone_tempest_plugin/services/identity/v3/mapping_rules_client.py
deleted file mode 100644
index b7fcbd7..0000000
--- a/keystone_tempest_plugin/services/identity/v3/mapping_rules_client.py
+++ /dev/null
@@ -1,44 +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
15import json
16
17from keystone_tempest_plugin.services.identity import clients
18
19
20class MappingRulesClient(clients.Federation):
21
22 subpath_suffix = 'mappings'
23
24 def create_mapping_rule(self, mapping_id, rules):
25 """Create a mapping rule."""
26 put_body = json.dumps({'mapping': rules})
27 return self._put(mapping_id, put_body)
28
29 def list_mapping_rules(self):
30 """List the mapping rules."""
31 return self._get()
32
33 def show_mapping_rule(self, mapping_id):
34 """Get a mapping rule."""
35 return self._get(mapping_id)
36
37 def delete_mapping_rule(self, mapping_id):
38 """Delete a mapping rule."""
39 return self._delete(mapping_id)
40
41 def update_mapping_rule(self, mapping_id, rules):
42 """Update a mapping rule."""
43 patch_body = json.dumps({'mapping': rules})
44 return self._patch(mapping_id, patch_body)