From 458989f38849f5a2b2967a73a2160f5876faad71 Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Wed, 14 Nov 2018 08:22:33 +0000 Subject: Modify openstack return code Change-Id: Ic124a91704b4e61d94626855a3592a29bad51738 Issue-ID: MULTICLOUD-404 Signed-off-by: Haibin Huang --- newton/newton/requests/tests/test_flavor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newton') diff --git a/newton/newton/requests/tests/test_flavor.py b/newton/newton/requests/tests/test_flavor.py index 4a9df9c5..ef7ec86a 100644 --- a/newton/newton/requests/tests/test_flavor.py +++ b/newton/newton/requests/tests/test_flavor.py @@ -174,7 +174,7 @@ class TestFlavorsNewton(unittest.TestCase, AbstractTestResource): "content": self.MOCK_GET_RESOURCES_RESPONSE}, "post": { "content": self.MOCK_POST_RESOURCE_RESPONSE, - "status_code": status.HTTP_202_ACCEPTED, + "status_code": status.HTTP_200_OK, } } ), @@ -190,7 +190,7 @@ class TestFlavorsNewton(unittest.TestCase, AbstractTestResource): HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID) context = response.json() - self.assertEquals(status.HTTP_202_ACCEPTED, + self.assertEquals(status.HTTP_200_OK, response.status_code) self.assertIsNotNone(context['id']) self.assertEqual(1, context['returnCode']) -- cgit 1.2.3-korg