test_image_metadata makes assumptions about images

Bug #917719 reported by David Kranz
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
David Kranz

Bug Description

This test fails for me as follows. The test seems to assume that images start with no metadata. My image was a uec image which I guess has some metadata already because the test fails:

Traceback (most recent call last):
  File "/root/tempest/tempest/tests/test_image_metadata.py", line 92, in test_delete_image_metadata_item
    self.assertEqual(expected, resp_metadata)
AssertionError: {'key2': 'value2'} != {u'owner': None, u'key2': u'value2', u'min_ram': u'0', u'min_disk': u'0'}
- {'key2': 'value2'}
+ {u'key2': u'value2', u'min_disk': u'0', u'min_ram': u'0', u'owner': None}

The test should have a start point of existing metadata, or check for the presence or absence of items after actions rather than comparing for equality.

Tags: side-effects
Jay Pipes (jaypipes)
Changed in tempest:
status: New → Triaged
importance: Undecided → Medium
tags: added: side-effects
Jay Pipes (jaypipes)
Changed in tempest:
assignee: nobody → Jay Pipes (jaypipes)
milestone: none → essex-4
Changed in tempest:
status: Triaged → In Progress
assignee: Jay Pipes (jaypipes) → David Kranz (david-kranz)
Revision history for this message
David Kranz (david-kranz) wrote :

This test failure was due to a diablo bug that was fixed in essex and worked around in templest diablo/stable.

Changed in tempest:
status: In Progress → Fix Released
Sean Dague (sdague)
Changed in tempest:
milestone: none → havana-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.