Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Merge "Add failure message for services limits"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed May 18, 2016
2 parents cfe5be6 + 239969d commit 8199631
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/api/admin/test_service_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ def test_service_limit_parameters_invalid(self, limit):
@ddt.data(1, 3, 5)
def test_check_imposed_limit_on_services(self, limit):

resp = self.service_limit_user_client.list_services()

body = resp.json()

if body["services"] != [] or body["links"] != []:
self.fail(
"Testing services limits expects an account that "
"doesn't have existing services. Found services: "
"{0}".format(body["services"])
)

resp = self.operator_client.admin_service_limit(
project_id=self.service_limit_user_client.project_id,
limit=limit)
Expand Down

0 comments on commit 8199631

Please sign in to comment.