TOSCA parser test fails assertEqual

Bug #1404420 reported by Sahdev Zala
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Heat Translator
Fix Released
Critical
Sahdev Zala

Bug Description

2014-12-19 22:28:48.823 | Traceback (most recent call last):
2014-12-19 22:28:48.824 | File "./translator/toscalib/tests/test_toscatpl.py", line 220, in test_template_requirements
2014-12-19 22:28:48.824 | self.assertEqual(expected_relationship, actual_relationship)
2014-12-19 22:28:48.824 | File "/home/jenkins/workspace/gate-heat-translator-python33/.tox/py33/lib/python3.3/site-packages/testtools/testcase.py", line 348, in assertEqual
2014-12-19 22:28:48.825 | self.assertThat(observed, matcher, message)
2014-12-19 22:28:48.825 | File "/home/jenkins/workspace/gate-heat-translator-python33/.tox/py33/lib/python3.3/site-packages/testtools/testcase.py", line 433, in assertThat
2014-12-19 22:28:48.825 | raise mismatch_error
2014-12-19 22:28:48.826 | testtools.matchers._impl.MismatchError: !=:
2014-12-19 22:28:48.826 | reference = [('tosca.relationships.HostedOn', 'my_webserver'),
2014-12-19 22:28:48.826 | ('tosca.relationships.ConnectsTo', 'mysql_database')]
2014-12-19 22:28:48.826 | actual = [('tosca.relationships.ConnectsTo', 'mysql_database'),
2014-12-19 22:28:48.827 | ('tosca.relationships.HostedOn', 'my_webserver')]
2014-12-19 22:28:48.827 | Ran 110 tests in 0.223s
2014-12-19 22:28:48.827 | FAILED (id=0, failures=1)
2014-12-19 22:28:48.827 | error: testr failed (1)

The failure is due to the unordered list.

Sahdev Zala (spzala)
Changed in heat-translator:
assignee: nobody → Sahdev Zala (spzala)
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat-translator (master)

Fix proposed to branch: master
Review: https://review.openstack.org/143225

Changed in heat-translator:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat-translator (master)

Reviewed: https://review.openstack.org/143225
Committed: https://git.openstack.org/cgit/openstack/heat-translator/commit/?id=2b3c3b045490d94d78c5f46d59ac72877ae6de3f
Submitter: Jenkins
Branch: master

commit 2b3c3b045490d94d78c5f46d59ac72877ae6de3f
Author: spzala <email address hidden>
Date: Thu Dec 18 23:48:33 2014 -0800

    Sort TOSCA relation output for a match to expected test result

    The TOSCA parser test test_template_requirements fails assertEqual due
    to an unsorted output list.

    Change-Id: Ife4e88a48a4b4336590d168682e6f75dd39d15bd
    Closes-Bug: #1404420

Changed in heat-translator:
status: In Progress → Fix Committed
Changed in heat-translator:
status: Fix Committed → Fix Released
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.