From 2ec7d7462f24827ae7e90f963babc830ea4040f5 Mon Sep 17 00:00:00 2001 From: Jakob Meng Date: Tue, 20 Sep 2022 14:13:18 +0200 Subject: [PATCH] Drop query parameter 'id' from identity mapping Keystone API does not respect any query parameters such as 'id' when listing mappings [1],[2]. [1] https://opendev.org/openstack/keystone/src/commit/0155ae874181d9c74b0d1fcbc46ddd40ae3835f2/keystone/api/os_federation.py#L267 [2] https://docs.openstack.org/api-ref/identity/v3-ext/index.html?expanded=list-mappings-detail#list-mappings Change-Id: Ie1d0bc69da65861215b13fcb5499d7f982a25282 --- openstack/identity/v3/mapping.py | 4 +--- openstack/tests/unit/identity/v3/test_mapping.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/openstack/identity/v3/mapping.py b/openstack/identity/v3/mapping.py index a0327ef8d..646de310b 100644 --- a/openstack/identity/v3/mapping.py +++ b/openstack/identity/v3/mapping.py @@ -27,9 +27,7 @@ class Mapping(resource.Resource): create_method = 'PUT' commit_method = 'PATCH' - _query_mapping = resource.QueryParameters( - 'id', - ) + _query_mapping = resource.QueryParameters() # Properties #: The rules of this mapping. *Type: list* diff --git a/openstack/tests/unit/identity/v3/test_mapping.py b/openstack/tests/unit/identity/v3/test_mapping.py index 40a26d2b8..9b67d618f 100644 --- a/openstack/tests/unit/identity/v3/test_mapping.py +++ b/openstack/tests/unit/identity/v3/test_mapping.py @@ -38,7 +38,6 @@ class TestMapping(base.TestCase): self.assertDictEqual( { - 'id': 'id', 'limit': 'limit', 'marker': 'marker', },