summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/api/openstack/wsgi.py4
-rw-r--r--nova/tests/api/openstack/test_images.py12
2 files changed, 3 insertions, 13 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py
index 4e4ce4121..c3f841aa5 100644
--- a/nova/api/openstack/wsgi.py
+++ b/nova/api/openstack/wsgi.py
@@ -277,7 +277,9 @@ class XMLDictSerializer(DictSerializer):
return node.toprettyxml(indent=' ', encoding='UTF-8')
#NOTE (ameade): the has_atom should be removed after all of the
- # xml serializers and view builders have been updated
+ # xml serializers and view builders have been updated to the current
+ # spec that required all responses include the xmlns:atom, the has_atom
+ # flag is to prevent current tests from breaking
def _add_xmlns(self, node, has_atom=False):
if self.xmlns is not None:
node.setAttribute('xmlns', self.xmlns)
diff --git a/nova/tests/api/openstack/test_images.py b/nova/tests/api/openstack/test_images.py
index f0d7be2b9..716b73f6c 100644
--- a/nova/tests/api/openstack/test_images.py
+++ b/nova/tests/api/openstack/test_images.py
@@ -1213,8 +1213,6 @@ class ImageXMLSerializationTest(test.TestCase):
def test_show(self):
serializer = images.ImageXMLSerializer()
- #so we can see the full diff in the output
- self.maxDiff = None
fixture = {
'image': {
'id': 1,
@@ -1288,7 +1286,6 @@ class ImageXMLSerializationTest(test.TestCase):
def test_show_zero_metadata(self):
serializer = images.ImageXMLSerializer()
- self.maxDiff = None
fixture = {
'image': {
'id': 1,
@@ -1353,7 +1350,6 @@ class ImageXMLSerializationTest(test.TestCase):
def test_show_image_no_metadata_key(self):
serializer = images.ImageXMLSerializer()
- self.maxDiff = None
fixture = {
'image': {
'id': 1,
@@ -1417,8 +1413,6 @@ class ImageXMLSerializationTest(test.TestCase):
def test_show_no_server(self):
serializer = images.ImageXMLSerializer()
- #so we can see the full diff in the output
- self.maxDiff = None
fixture = {
'image': {
'id': 1,
@@ -1471,8 +1465,6 @@ class ImageXMLSerializationTest(test.TestCase):
def test_index(self):
serializer = images.ImageXMLSerializer()
- #so we can see the full diff in the output
- self.maxDiff = None
fixture = {
'images': [
{
@@ -1544,8 +1536,6 @@ class ImageXMLSerializationTest(test.TestCase):
def test_detail(self):
serializer = images.ImageXMLSerializer()
- #so we can see the full diff in the output
- self.maxDiff = None
fixture = {
'images': [
{
@@ -1650,8 +1640,6 @@ class ImageXMLSerializationTest(test.TestCase):
def test_create(self):
serializer = images.ImageXMLSerializer()
- #so we can see the full diff in the output
- self.maxDiff = None
fixture = {
'image': {
'id': 1,