Fix test_aggregate functional test

Nova API validation changes [1] appear to have broken the
'os aggregate create' and 'nova aggregate-create' commands when
an availability zone name is not specified. This patch set updates
the test_aggregate functional test to set the availability zone
name in order to unblock the osc gate while nova investigates
the issue.

[1] https://review.openstack.org/#/c/281143/

Change-Id: I00b497be61c4bc4bc467c66c1e49b2e0636ab841
Related-Bug: #1541691
This commit is contained in:
Richard Theis 2016-03-03 12:32:09 -06:00
parent 977eb4f1a6
commit 8cf28a34ab
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@ class AggregateTests(test.TestCase):
@classmethod
def setUpClass(cls):
opts = cls.get_show_opts(cls.FIELDS)
raw_output = cls.openstack('aggregate create ' + cls.NAME + opts)
# Use the default 'nova' availability zone for the aggregate.
raw_output = cls.openstack(
'aggregate create --zone nova ' + cls.NAME + opts
)
expected = cls.NAME + '\n'
cls.assertOutput(expected, raw_output)