The test case for 'rbac_policy_quota' execution reports an error.

Bug #2047101 reported by liwenjian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
In Progress
Medium
liwenjian

Bug Description

When we execute the test case 'test_rbac_policy_quota' in neutron_tempest_plugin.api.admin.test_shared_network_extension.RBACSharedNetworksTest, the program throws an exception.

* Step-by-step reproduction steps:
Setup neutron-tempest-plugin
Running the test

(rally)[root@ci /]$ python -m testtools.run neutron_tempest_plugin.api.admin.test_shared_network_extension.RBACSharedNetworksTest.test_rbac_policy_quota

Traceback (most recent call last):
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/tempest/common/utils/__init__.py", line 89, in wrapper
    return func(*func_args, **func_kwargs)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/neutron_tempest_plugin/api/admin/test_shared_network_extension.py", line 378, in test_rbac_policy_quota
    self.assertGreater(max_policies, 0)
  File "/usr/lib64/python3.6/unittest/case.py", line 1238, in assertGreater
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.6/unittest/case.py", line 687, in fail
    raise self.failureException(msg)
AssertionError: -1 not greater than 0Ran 1 test in 12.500s
FAILED (failures=1)

It seems that the setting of the RBAC policy quota caused the exception. When the quota is set to -1 by default, the program fails in the judgment.
https://opendev.org/openstack/neutron-tempest-plugin/src/commit/14f44a0c29e3fed721313848f0f3dea2cd023dda/neutron_tempest_plugin/api/admin/test_shared_network_extension.py#L375

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :
Changed in neutron:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → liwenjian (liwenjian)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.