Merge "Add remote_ip_prefix to tests in case of TF" into mcp/caracal
diff --git a/tempest/api/network/test_agent_management_negative.py b/tempest/api/network/test_agent_management_negative.py
index d1c02ce..36d44d5 100644
--- a/tempest/api/network/test_agent_management_negative.py
+++ b/tempest/api/network/test_agent_management_negative.py
@@ -14,11 +14,19 @@
# under the License.
from tempest.api.network import base
+from tempest.common import utils
from tempest.lib import decorators
class AgentManagementNegativeTest(base.BaseNetworkTest):
+ @classmethod
+ def skip_checks(cls):
+ super(AgentManagementNegativeTest, cls).skip_checks()
+ if not utils.is_extension_enabled('agent', 'network'):
+ msg = "agent extension not enabled."
+ raise cls.skipException(msg)
+
@decorators.idempotent_id('e335be47-b9a1-46fd-be30-0874c0b751e6')
@decorators.attr(type=['negative'])
def test_list_agents_non_admin(self):