From 8b9aeba367054ed9e7364b4d4575b3c16ca6d593 Mon Sep 17 00:00:00 2001 From: Thai Nguyen Ngoc Date: Sat, 2 Mar 2019 01:22:07 +0700 Subject: [PATCH] edit cluster resize with capacity is equal 0 Change-Id: I10dd0ce0800c195e4597013340714a52dba378ad --- .../tests/api/clusters/test_cluster_resize.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/senlin_tempest_plugin/tests/api/clusters/test_cluster_resize.py b/senlin_tempest_plugin/tests/api/clusters/test_cluster_resize.py index bcac725..be09153 100644 --- a/senlin_tempest_plugin/tests/api/clusters/test_cluster_resize.py +++ b/senlin_tempest_plugin/tests/api/clusters/test_cluster_resize.py @@ -124,14 +124,9 @@ class TestClusterResizeNegativeInvalidResizeParams(base.BaseSenlinAPITest): } # Verify badrequest exception(400) is raised. - ex = self.assertRaises(exceptions.BadRequest, - self.client.trigger_action, - '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)) + self.assertRaises(exceptions.BadRequest, + self.client.trigger_action, + 'clusters', 'cluster_id', params) @decorators.idempotent_id('5a069782-d6d8-4389-a68c-beb32375a39e') def test_cluster_resize_min_size_over_max_size(self):