Fix wrong exception in test_snapshot_manage_rbac
This PS fixes the wrong exception being raised in skip_checks
in test_snapshot_manage_rbac. `cls.InvalidConfiguration` doesn't
exist. It has been changed to `lib_exc.InvalidConfiguration`.
Change-Id: Iecdc495d82d1f1948f9042be97fa3c37464eb173
diff --git a/patrole_tempest_plugin/tests/api/volume/test_snapshot_manage_rbac.py b/patrole_tempest_plugin/tests/api/volume/test_snapshot_manage_rbac.py
index 89106f8..c71a1e1 100644
--- a/patrole_tempest_plugin/tests/api/volume/test_snapshot_manage_rbac.py
+++ b/patrole_tempest_plugin/tests/api/volume/test_snapshot_manage_rbac.py
@@ -16,6 +16,7 @@
from tempest import config
from tempest.lib.common.utils import data_utils
from tempest.lib import decorators
+from tempest.lib import exceptions as lib_exc
from patrole_tempest_plugin import rbac_rule_validation
from patrole_tempest_plugin.tests.api.volume import rbac_base
@@ -33,7 +34,7 @@
if len(CONF.volume.manage_snapshot_ref) != 2:
msg = ("Manage snapshot ref is not correctly configured, "
"it should be a list of two elements")
- raise cls.InvalidConfiguration(msg)
+ raise lib_exc.InvalidConfiguration(msg)
@classmethod
def setup_clients(cls):