From 2238c69f46defb4a2328a0e5c3a4d5a3c23fea36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Ollivier?= Date: Sun, 21 Oct 2018 15:22:38 +0200 Subject: [PATCH] Fix test_update_address_scope_shared MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test_update_address_scope_shared currently fails as shared address scope can't be unshared [1]. It would have detected in gates if neutron-tempest-plugin was installed [2] (as it's in opnfv/functest-smoke:latest). [1] https://github.com/openstack/neutron/blob/master/neutron/db/address_scope_db.py#L87 [2] http://logs.openstack.org/47/599047/3/check/patrole-admin/11872d4/job-output.txt.gz Change-Id: I72f0cde1dab2d0a1949b55490375e8441394353d Signed-off-by: Cédric Ollivier --- .../tests/api/network/test_address_scope_rbac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patrole_tempest_plugin/tests/api/network/test_address_scope_rbac.py b/patrole_tempest_plugin/tests/api/network/test_address_scope_rbac.py index cf736694..db28b823 100644 --- a/patrole_tempest_plugin/tests/api/network/test_address_scope_rbac.py +++ b/patrole_tempest_plugin/tests/api/network/test_address_scope_rbac.py @@ -121,7 +121,7 @@ class AddressScopeRbacTest(base.BaseNetworkPluginRbacTest): address_scope = self._create_address_scope(shared=True) with self.rbac_utils.override_role(self): self.ntp_client.update_address_scope(address_scope['id'], - shared=False) + shared=True) @rbac_rule_validation.action(service="neutron", rules=["get_address_scope",