Merge "Fix field type to audit_type"
This commit is contained in:
@@ -155,7 +155,7 @@ class BaseInfraOptimTest(test.BaseTestCase):
|
||||
# ### AUDITS ### #
|
||||
|
||||
@classmethod
|
||||
def create_audit(cls, audit_template_uuid, type='ONESHOT',
|
||||
def create_audit(cls, audit_template_uuid, audit_type='ONESHOT',
|
||||
state=None, deadline=None):
|
||||
"""Wrapper utility for creating a test audit
|
||||
|
||||
@@ -166,7 +166,7 @@ class BaseInfraOptimTest(test.BaseTestCase):
|
||||
:return: A tuple with The HTTP response and its body
|
||||
"""
|
||||
resp, body = cls.client.create_audit(
|
||||
audit_template_uuid=audit_template_uuid, type=type,
|
||||
audit_template_uuid=audit_template_uuid, audit_type=audit_type,
|
||||
state=state, deadline=deadline)
|
||||
|
||||
cls.created_audits.add(body['uuid'])
|
||||
|
||||
@@ -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