commit | d35e8adef5b2255552c7f237420a7f348b8e6786 | [log] [tgz] |
---|---|---|
author | akhiljain23 <akhil.jain@nectechnologies.in> | Sun Oct 15 20:47:23 2017 +0530 |
committer | akhiljain23 <akhil.jain@nectechnologies.in> | Sun Oct 15 20:50:46 2017 +0530 |
tree | 42ce5bb4e1fb364b8b01304ce8ee23ca1f21a805 | |
parent | 8849bc2199b75728e9690ba3479c0fdca0ccd67f [diff] |
Skip floating IPs tests with new config options Tempest patch Iedc3c7f9d045408f54d94c34b478fb1b28b593c9 added the new config options to enable/disable the floating ips support in cloud. Patrole floating IPS tests also should consider that config options to disable those tests. Change-Id: I5a57410342d2503f0e9fc7f7777df9d14ceb8f92
diff --git a/patrole_tempest_plugin/tests/api/compute/test_floating_ip_pools_rbac.py b/patrole_tempest_plugin/tests/api/compute/test_floating_ip_pools_rbac.py index 936aa1b..15891d7 100644 --- a/patrole_tempest_plugin/tests/api/compute/test_floating_ip_pools_rbac.py +++ b/patrole_tempest_plugin/tests/api/compute/test_floating_ip_pools_rbac.py
@@ -42,6 +42,8 @@ msg = "%s skipped as os-floating-ip-pools extension not enabled." \ % cls.__name__ raise cls.skipException(msg) + if not CONF.network_feature_enabled.floating_ips: + raise cls.skipException("Floating ips are not available") @decorators.idempotent_id('c1a17153-b25d-4444-a721-5897d7737482') @rbac_rule_validation.action(
diff --git a/patrole_tempest_plugin/tests/api/compute/test_floating_ips_bulk_rbac.py b/patrole_tempest_plugin/tests/api/compute/test_floating_ips_bulk_rbac.py index 1f33b18..e149bf2 100644 --- a/patrole_tempest_plugin/tests/api/compute/test_floating_ips_bulk_rbac.py +++ b/patrole_tempest_plugin/tests/api/compute/test_floating_ips_bulk_rbac.py
@@ -42,6 +42,8 @@ msg = "%s skipped as os-floating-ips-bulk extension not enabled." \ % cls.__name__ raise cls.skipException(msg) + if not CONF.network_feature_enabled.floating_ips: + raise cls.skipException("Floating ips are not available") @decorators.idempotent_id('3b5c8a02-005d-4256-8a95-6fa2f389c6cf') @rbac_rule_validation.action(
diff --git a/patrole_tempest_plugin/tests/api/compute/test_floating_ips_rbac.py b/patrole_tempest_plugin/tests/api/compute/test_floating_ips_rbac.py index cddba13..290e523 100644 --- a/patrole_tempest_plugin/tests/api/compute/test_floating_ips_rbac.py +++ b/patrole_tempest_plugin/tests/api/compute/test_floating_ips_rbac.py
@@ -37,6 +37,8 @@ msg = "%s skipped as os-floating-ips extension not enabled." \ % cls.__name__ raise cls.skipException(msg) + if not CONF.network_feature_enabled.floating_ips: + raise cls.skipException("Floating ips are not available") @decorators.idempotent_id('ac1b3053-f755-4cda-85a0-30e88b88d7ba') @rbac_rule_validation.action(