So it failed because three tests creating policy with same name: "test" around same time, and hence list policy by name failed as it expected only 1 policy to exist with name "test" but actually there were three. Using different specific name in test_list_policy_filter_by_name should fix the issue.
But also i see all the three policies created associated with different project_id, so may be it's some bug that it list from all the projects instead of just the one it's created for? So will also check that, may be it's introduced after recent rbac related patch https://review.opendev.org/c/openstack/neutron/+/821208.
<< But also i see all the three policies created associated with different project_id, so may be it's some bug that it list from all the projects instead of just the one it's created for? So will also check that, may be it's introduced after recent rbac related patch https://review.opendev.org/c/openstack/neutron/+/821208.
So i see admin creates this policy and it can list policies for all these projects so doesn't look like a regression it was just not hit by now.
Use random name in qos test_list_policy_filter_by_name
test_list_policy_filter_by_name was looking for policies
with name 'test' and expected only one such policy to
be retrieved, but since tempest is running with multiple
concurrency and some other qos tests were also using same
policy name, this leads to test failure when this test
runs at same time with other such tests. This patch fixes
it by using random name for the policy for this test.
So it failed because three tests creating policy with same name: "test" around same time, and hence list policy by name failed as it expected only 1 policy to exist with name "test" but actually there were three. Using different specific name in test_list_ policy_ filter_ by_name should fix the issue.
But also i see all the three policies created associated with different project_id, so may be it's some bug that it list from all the projects instead of just the one it's created for? So will also check that, may be it's introduced after recent rbac related patch https:/ /review. opendev. org/c/openstack /neutron/ +/821208.
2022-01-26 19:39:20.724046 | controller | {3} neutron_ tempest_ plugin. api.test_ qos_negative. QosNegativeTest JSON.test_ update_ policy_ with_too_ long_descriptio n [0.086488s] ... ok tempest_ plugin. api.test_ qos_negative. QosNegativeTest JSON.test_ update_ policy_ with_too_ long_name [0.098501s] ... ok tempest_ plugin. api.test_ qos.QosTestJSON .test_list_ policy_ filter_ by_name [0.223892s] ... FAILED
2022-01-26 19:39:20.822808 | controller | {3} neutron_
2022-01-26 19:39:20.878403 | controller | {2} neutron_