self.configuration = mock.Mock(conf.Configuration)
self.context = context.get_admin_context()
self.context.user_id = 'fake'
- self.context.project_id = 'fake'
+ # NOTE(mriedem): The id is hard-coded here for tracking race fail
+ # assertions with the notification code, it's part of an
+ # elastic-recheck query so don't remove it or change it.
+ self.project_id = '7f265bd4-3a85-465e-a899-5dc4854a86d3'
+ self.context.project_id = self.project_id
self.volume_params = {
'status': 'creating',
'host': CONF.host,
'host': socket.gethostname(),
'display_name': 'test_volume',
'availability_zone': 'nova',
- 'tenant_id': 'fake',
+ 'tenant_id': self.context.project_id,
'created_at': 'DONTCARE',
'volume_id': volume_id,
'volume_type': None,
'status': 'available',
'name': 'test_cg',
'availability_zone': 'nova',
- 'tenant_id': 'fake',
+ 'tenant_id': self.context.project_id,
'created_at': 'DONTCARE',
'user_id': 'fake',
'consistencygroup_id': group_id
'status': 'available',
'name': 'test_cg',
'availability_zone': 'nova',
- 'tenant_id': 'fake',
+ 'tenant_id': self.context.project_id,
'created_at': 'DONTCARE',
'user_id': 'fake',
'consistencygroup_id': group_id
'status': 'available',
'name': 'test_cg',
'availability_zone': 'nova',
- 'tenant_id': 'fake',
+ 'tenant_id': self.context.project_id,
'created_at': 'DONTCARE',
'user_id': 'fake',
'consistencygroup_id': group2_id