From 7e936b3149ece536b010a7d0cdf0be9f97f56559 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 21 Feb 2017 13:09:10 -0500 Subject: [PATCH] Use a valid project_id flavor_access neg tests Based on substantial use feedback, Nova is validating the project_id for both quotas and flavor access calls, so that when a 200 success is returned to the user, it is because the API call actually succeeded, not a failed call which returns success, and confuses users. However, the tempest API call uses a non existent project, which we need to change. Implements bp:validate-project-with-keystone Change-Id: I825b14addbe7687a4b943acf929284b72a8f9ac0 --- tempest/api/compute/admin/test_flavors_access_negative.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tempest/api/compute/admin/test_flavors_access_negative.py b/tempest/api/compute/admin/test_flavors_access_negative.py index bd72d13d57..9fe1f74791 100644 --- a/tempest/api/compute/admin/test_flavors_access_negative.py +++ b/tempest/api/compute/admin/test_flavors_access_negative.py @@ -26,6 +26,8 @@ class FlavorsAccessNegativeTestJSON(base.BaseV2ComputeAdminTest): Add and remove Flavor Access require admin privileges. """ + credentials = ['primary', 'admin', 'alt'] + @classmethod def skip_checks(cls): super(FlavorsAccessNegativeTestJSON, cls).skip_checks() @@ -151,4 +153,4 @@ class FlavorsAccessNegativeTestJSON(base.BaseV2ComputeAdminTest): self.assertRaises(lib_exc.NotFound, self.admin_flavors_client.remove_flavor_access, new_flavor['id'], - data_utils.rand_uuid()) + self.os_alt.servers_client.tenant_id)