Fix field type to audit_type
There's a number of places where a field of an object is named "type", which isn't good thing. Actually type is keyword in python, so wherever I found type used in models/api/object/test, I have fixed it to audit_type in the audit files Change-Id: Iea6bd3acb0b2af2a833b3916701aad88f6064bba Closes-Bug: #1533392
This commit is contained in:
@@ -41,7 +41,7 @@ class TestCreateUpdateDeleteAudit(base.BaseInfraOptimTest):
|
||||
|
||||
audit_params = dict(
|
||||
audit_template_uuid=audit_template['uuid'],
|
||||
type='ONESHOT',
|
||||
audit_type='ONESHOT',
|
||||
)
|
||||
|
||||
_, body = self.create_audit(**audit_params)
|
||||
@@ -57,7 +57,7 @@ class TestCreateUpdateDeleteAudit(base.BaseInfraOptimTest):
|
||||
|
||||
audit_params = dict(
|
||||
audit_template_uuid=audit_template['uuid'],
|
||||
type='CONTINUOUS',
|
||||
audit_type='CONTINUOUS',
|
||||
)
|
||||
|
||||
_, body = self.create_audit(**audit_params)
|
||||
@@ -70,7 +70,7 @@ class TestCreateUpdateDeleteAudit(base.BaseInfraOptimTest):
|
||||
def test_create_audit_with_wrong_audit_template(self):
|
||||
audit_params = dict(
|
||||
audit_template_uuid='INVALID',
|
||||
type='ONESHOT',
|
||||
audit_type='ONESHOT',
|
||||
)
|
||||
|
||||
self.assertRaises(
|
||||
|
||||
Reference in New Issue
Block a user