Removed unused 'alarm' field
The 'alarm' field is currently unused, so it has been removed. Change-Id: I02fa15b06ed49dbc5dd63de54a9cde601413983c Closes-Bug: #1550261
This commit is contained in:
@@ -266,24 +266,21 @@ class DbActionTestCase(base.DbTestCase):
|
||||
description='description action 1',
|
||||
uuid=w_utils.generate_uuid(),
|
||||
next=None,
|
||||
state='PENDING',
|
||||
alarm=None)
|
||||
state='PENDING')
|
||||
action2 = self._create_test_action(
|
||||
id=2,
|
||||
action_plan_id=2,
|
||||
description='description action 2',
|
||||
uuid=w_utils.generate_uuid(),
|
||||
next=action1['uuid'],
|
||||
state='PENDING',
|
||||
alarm=None)
|
||||
state='PENDING')
|
||||
action3 = self._create_test_action(
|
||||
id=3,
|
||||
action_plan_id=1,
|
||||
description='description action 3',
|
||||
uuid=w_utils.generate_uuid(),
|
||||
next=action2['uuid'],
|
||||
state='ONGOING',
|
||||
alarm=None)
|
||||
state='ONGOING')
|
||||
res = self.dbapi.get_action_list(self.context,
|
||||
filters={'state': 'ONGOING'})
|
||||
self.assertEqual([action3['id']], [r.id for r in res])
|
||||
|
||||
@@ -91,7 +91,6 @@ def get_test_action(**kwargs):
|
||||
'resource_id':
|
||||
'10a47dd1-4874-4298-91cf-eff046dbdb8d'}),
|
||||
'state': kwargs.get('state', 'PENDING'),
|
||||
'alarm': kwargs.get('alarm', None),
|
||||
'next': kwargs.get('next', 2),
|
||||
'created_at': kwargs.get('created_at'),
|
||||
'updated_at': kwargs.get('updated_at'),
|
||||
|
||||
Reference in New Issue
Block a user