diff options
author | maopengzhang <zhang.maopeng1@zte.com.cn> | 2019-03-30 15:30:32 +0800 |
---|---|---|
committer | maopengzhang <zhang.maopeng1@zte.com.cn> | 2019-03-30 15:30:32 +0800 |
commit | ecba3f3d5adf3335c5b6a63db5c1a0933cacea79 (patch) | |
tree | 1b9357a485c133d161b4a9ddaf009e8a60a9165d | |
parent | e8ff6a2b7b298264a4f8624c8112fa0a0f70aaea (diff) |
add occ in scale test case
add occ in scale test case
Change-Id: I00f5b91a782d88ce1959e64f57a962da065bb965
Issue-ID: VFC-1059
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
-rw-r--r-- | lcm/ns/tests/test_sol_ns_scale_api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/ns/tests/test_sol_ns_scale_api.py b/lcm/ns/tests/test_sol_ns_scale_api.py index c484a88d..9d4ed938 100644 --- a/lcm/ns/tests/test_sol_ns_scale_api.py +++ b/lcm/ns/tests/test_sol_ns_scale_api.py @@ -198,6 +198,8 @@ class TestScaleNsApi(TestCase): response = self.client.post(self.url % self.ns_inst_id, data=data) self.failUnlessEqual(status.HTTP_202_ACCEPTED, response.status_code) self.assertIsNotNone(response['Location']) + response = self.client.get(response['Location'], format='json') + self.assertEqual(response.status_code, status.HTTP_200_OK) @mock.patch.object(NSManualScaleService, 'start') def test_ns_manual_scale_empty_data(self, mock_start): |