Fix invalid UUIDs in remaining tests

There were many places throughout our tests that used plain strings
where the object was expecting a UUID, which caused lots of warning
output when running the tests. This patch replaces all such usages with
proper UUIDs.

Closes-Bug: #1606647

Change-Id: Ib339b97ef178c870405e19385d3df24dd1f730cc
This commit is contained in:
Ed Leafe 2018-01-11 17:58:15 +00:00
parent b5a206e5c7
commit 9e8eb60349
1 changed files with 3 additions and 5 deletions

View File

@ -117,11 +117,9 @@ class AggregateObjectDbTestCase(test.TestCase):
def test_in_api(self):
ca1 = _create_aggregate(self.context, values={'name': 'fake_agg_1',
'id': 1,
'uuid': 'nonce'})
ca2 = db.aggregate_create(self.context, {'name': 'fake_agg_2',
'id': 2,
'uuid': 'nonce'})
'id': 1, 'uuid': uuidsentinel.agg})
ca2 = db.aggregate_create(self.context, {'name': 'fake_agg_2', 'id': 2,
'uuid': uuidsentinel.agg})
api_db_agg = aggregate_obj.Aggregate.get_by_id(self.context, ca1['id'])
cell_db_agg = aggregate_obj.Aggregate.get_by_id(