Python 3 enables hash randomization by default, additionally tox 1.7
turns on the same randomization for earlier versions of python by
default. Need to ensure that order of iteration over the yaml data and
resulting XML has deterministic order for testing.
Adapts https://gist.github.com/enaeseth/844388 which ensures data read
by yaml will have its order retained in a predictable manner across
multiple python versions.
Additionally it seems more sensible to ensure that the order of
generated XML snippets corresponding to the input yaml files are
consistently in the same order as the entries in the source files.
Reviewed: https:/ /review. openstack. org/107063 /git.openstack. org/cgit/ openstack- infra/jenkins- job-builder/ commit/ ?id=c99cbccb8ea 12456c68fa02712 39384a098e5df9
Committed: https:/
Submitter: Jenkins
Branch: master
commit c99cbccb8ea1245 6c68fa027123938 4a098e5df9
Author: Darragh Bailey <email address hidden>
Date: Tue Jul 15 14:41:59 2014 +0100
Ensure dict orders are deterministic
Python 3 enables hash randomization by default, additionally tox 1.7
turns on the same randomization for earlier versions of python by
default. Need to ensure that order of iteration over the yaml data and
resulting XML has deterministic order for testing.
Adapts https:/ /gist.github. com/enaeseth/ 844388 which ensures data read
by yaml will have its order retained in a predictable manner across
multiple python versions.
Additionally it seems more sensible to ensure that the order of
generated XML snippets corresponding to the input yaml files are
consistently in the same order as the entries in the source files.
Closes-Bug: #1333349 c6ddbbc6b02b7f1 a04413a5c89
Change-Id: I6bf6d298a2609c