Fix error codes for test_delete_flavor_service_profile

This patch set fixes the expected error codes for test
`test_delete_flavor_service_profile`. Like other delete
tests for Neutron it enforces delete_* and get_* policy.

Change-Id: I4e67e0cd3190794741ea84131de3cbab6c28eb4f
This commit is contained in:
Felipe Monteiro 2018-11-07 19:35:40 -05:00
parent a5f5590e29
commit 2a5f41e83f
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ class FlavorsServiceProfilePluginRbacTest(base.BaseNetworkPluginRbacTest):
@decorators.idempotent_id('3b680d9e-946a-4670-ab7f-0e4576675833')
@rbac_rule_validation.action(service="neutron",
rules=["delete_flavor_service_profile"])
rules=["get_flavor_service_profile",
"delete_flavor_service_profile"],
expected_error_codes=[404, 403])
def test_delete_flavor_service_profile(self):
"""Delete flavor_service_profile.