Code Review
/
multicloud
/
openstack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
fa556ed
)
Fix UT bug in test-image
45/38945/1
author
Yun Huang
<yun.huang@windriver.com>
Tue, 27 Mar 2018 08:02:46 +0000
(16:02 +0800)
committer
Yun Huang
<yun.huang@windriver.com>
Tue, 27 Mar 2018 08:02:46 +0000
(16:02 +0800)
Change-Id: Ic2175e0bd87ee56d1a0457b69090ec0098c51c76
Issue-ID: MULTICLOUD-203
Signed-off-by: Yun Huang <yun.huang@windriver.com>
newton/newton/requests/tests/test_image.py
patch
|
blob
|
history
diff --git
a/newton/newton/requests/tests/test_image.py
b/newton/newton/requests/tests/test_image.py
index
fff04e8
..
c32ccd5
100644
(file)
--- a/
newton/newton/requests/tests/test_image.py
+++ b/
newton/newton/requests/tests/test_image.py
@@
-14,6
+14,7
@@
import mock
import unittest
+import json
from six.moves import urllib
from rest_framework import status
@@
-93,7
+94,8
@@
class TestImageNewton(unittest.TestCase, AbstractTestResource):
"/api/%s/v0/windriver-hudson-dc_RegionOne/"
"fcca3cc49d5e42caae15459e27103efc/"
"images" % test_base.MULTIVIM_VERSION,
- self.MOCK_POST_RESOURCE_REQUEST,
+ data=json.dumps(self.MOCK_POST_RESOURCE_REQUEST),
+ content_type='application/json',
HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
context = response.json()