The get_flavors unit test sometimes fails as the list can
come back in a different order. This causes the json comparison
to inacurately claim that the content is different. Since
we don't care what order the json data is stored, this
comparison is now done on a sorted data set.
Closes-Bug: #1437179
Change-Id: I92eaa1c98f5a58ce124210f2b6a2136dfc573a29
(cherry picked from commit 7a9e02a1fa50fdccf0d06e9706a4bec25f127c5c)
Reviewed: https:/ /review. openstack. org/303223 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=9f5de06a2d9 071ecb8c797fcb7 72f54bc62f5fa4
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 9f5de06a2d9071e cb8c797fcb772f5 4bc62f5fa4
Author: Peter Stachowski <email address hidden>
Date: Mon Sep 14 11:29:12 2015 -0400
Fix get_flavors test by sorting json output
The get_flavors unit test sometimes fails as the list can
come back in a different order. This causes the json comparison
to inacurately claim that the content is different. Since
we don't care what order the json data is stored, this
comparison is now done on a sorted data set.
Closes-Bug: #1437179 ce124210f2b6a21 36dfc573a29 cf0d06e9706a4be c25f127c5c)
Change-Id: I92eaa1c98f5a58
(cherry picked from commit 7a9e02a1fa50fdc