commit 6589a36fbbdd4b0953683d0ba1a34679eb0a540d
Author: Daniel P. Berrange <email address hidden>
Date: Wed Jul 30 12:02:27 2014 +0100
tests: fix test_compute to have predictable service list
The _create_service_entries() method in test_compute.py accepted
a dict for the list of services. The tests would then pull out
the first item in the list of keys of the dict. When the python
hash seed is set to a random value the list of keys has no
predictable ordering, causing the test suite to break. Changing
the data structure to use a list of lists instead of a dict
ensures strict ordering.
Reviewed: https:/ /review. openstack. org/110606 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6589a36fbbd d4b0953683d0ba1 a34679eb0a540d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6589a36fbbdd4b0 953683d0ba1a346 79eb0a540d
Author: Daniel P. Berrange <email address hidden>
Date: Wed Jul 30 12:02:27 2014 +0100
tests: fix test_compute to have predictable service list
The _create_ service_ entries( ) method in test_compute.py accepted
a dict for the list of services. The tests would then pull out
the first item in the list of keys of the dict. When the python
hash seed is set to a random value the list of keys has no
predictable ordering, causing the test suite to break. Changing
the data structure to use a list of lists instead of a dict
ensures strict ordering.
Related-bug: #1350287 94b49d25b65daf0 8e55e2087b4
Change-Id: I01a0d4cfb086eb