Fix testcase test_print_db_info_metadata()
Test compares cluster info to hardcoded expected data and wasn't sorting the two sets of things being compared leading to some sporadic unit test failures. Change-Id: I3ef98260a62c15d06ba8cc196196d4e90abca3f0
This commit is contained in:
parent
e0108af54f
commit
856c15539a
@ -112,7 +112,8 @@ Metadata:
|
||||
No system metadata found in db file
|
||||
User Metadata: {'mydata': 'swift'}'''
|
||||
|
||||
self.assertEquals(out.getvalue().strip(), exp_out)
|
||||
self.assertEquals(sorted(out.getvalue().strip().split('\n')),
|
||||
sorted(exp_out.split('\n')))
|
||||
|
||||
info = dict(
|
||||
account='acct',
|
||||
@ -154,7 +155,8 @@ Metadata:
|
||||
X-Container-Foo: bar
|
||||
System Metadata: {'mydata': 'swift'}
|
||||
No user metadata found in db file'''
|
||||
self.assertEquals(out.getvalue().strip(), exp_out)
|
||||
self.assertEquals(sorted(out.getvalue().strip().split('\n')),
|
||||
sorted(exp_out.split('\n')))
|
||||
|
||||
def test_print_ring_locations(self):
|
||||
self.assertRaisesMessage(ValueError, 'None type', print_ring_locations,
|
||||
|
Loading…
Reference in New Issue
Block a user