edit cluster resize with capacity is equal 0
Change-Id: I10dd0ce0800c195e4597013340714a52dba378ad
This commit is contained in:
parent
c5796721c4
commit
8b9aeba367
@ -124,14 +124,9 @@ class TestClusterResizeNegativeInvalidResizeParams(base.BaseSenlinAPITest):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Verify badrequest exception(400) is raised.
|
# Verify badrequest exception(400) is raised.
|
||||||
ex = self.assertRaises(exceptions.BadRequest,
|
self.assertRaises(exceptions.BadRequest,
|
||||||
self.client.trigger_action,
|
self.client.trigger_action,
|
||||||
'clusters', 'cluster_id', params)
|
'clusters', 'cluster_id', params)
|
||||||
|
|
||||||
message = ex.resp_body['error']['message']
|
|
||||||
self.assertEqual(
|
|
||||||
"The 'number' must be positive integer for adjustment "
|
|
||||||
"type 'EXACT_CAPACITY'.", str(message))
|
|
||||||
|
|
||||||
@decorators.idempotent_id('5a069782-d6d8-4389-a68c-beb32375a39e')
|
@decorators.idempotent_id('5a069782-d6d8-4389-a68c-beb32375a39e')
|
||||||
def test_cluster_resize_min_size_over_max_size(self):
|
def test_cluster_resize_min_size_over_max_size(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user