Merge "api: Set min, maxItems for server_group.policies field"

This commit is contained in:
Zuul
2020-09-17 19:00:19 +00:00
committed by Gerrit Code Review
3 changed files with 22 additions and 9 deletions

View File

@@ -37,5 +37,4 @@ class TestCreateServerGroupWithEmptyPolicies(
client.OpenStackApiException,
self.api.post_server_groups,
{'name': 'test group', 'policies': []})
# FIXME(stephenfin): This should not be a 500 error
self.assertEqual(500, exc.response.status_code)
self.assertEqual(400, exc.response.status_code)