From fdfb4741f60a0309939f82f7aa44a11c5f2bbd31 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 10 May 2023 12:48:49 +0200 Subject: [PATCH] [S-RBAC] Update DSCP marking rule create API test In the test_qos_dscp_create_and_update API test, qos policy was made as admin user (which is correct) but was also owned by admin project. And later, to check if DSCP marking rule was created in that policy properly, regular client is used instead. The problem is that with new S-RBAC API policies, rules are visible to owners of the policy, not to all users. And due to that this test is failing with new S-RBAC policies enforced. This patch fixes it by changing owner of the qos policy to the regular client's project. Related-Bug: #2018727 Change-Id: Iadf69c167cdda0017084e482a58116520a1ea80f --- neutron_tempest_plugin/api/test_qos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron_tempest_plugin/api/test_qos.py b/neutron_tempest_plugin/api/test_qos.py index 372bf1e4..fe12315d 100644 --- a/neutron_tempest_plugin/api/test_qos.py +++ b/neutron_tempest_plugin/api/test_qos.py @@ -1195,6 +1195,7 @@ def _test_update_dscp_mark_values(self, dscp_policy_id, rule_id, dscp_policy_id = self.create_qos_policy( name=self.policy_name, description='test-qos-policy', + project_id=self.client.project_id, shared=True)['id'] # Associate QoS to the network