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:
parent
977eb4f1a6
commit
8cf28a34ab
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user