Merge "New cron type for audit interval"
This commit is contained in:
commit
df79242dac
@ -171,7 +171,7 @@ class BaseInfraOptimTest(test.BaseTestCase):
|
|||||||
:param audit_template_uuid: Audit Template UUID this audit will use
|
:param audit_template_uuid: Audit Template UUID this audit will use
|
||||||
:param audit_type: Audit type (either ONESHOT or CONTINUOUS)
|
:param audit_type: Audit type (either ONESHOT or CONTINUOUS)
|
||||||
:param state: Audit state (str)
|
:param state: Audit state (str)
|
||||||
:param interval: Audit interval in seconds (int)
|
:param interval: Audit interval in seconds or cron syntax (str)
|
||||||
:return: A tuple with The HTTP response and its body
|
:return: A tuple with The HTTP response and its body
|
||||||
"""
|
"""
|
||||||
resp, body = cls.client.create_audit(
|
resp, body = cls.client.create_audit(
|
||||||
|
@ -63,7 +63,7 @@ class TestCreateUpdateDeleteAudit(base.BaseInfraOptimTest):
|
|||||||
audit_params = dict(
|
audit_params = dict(
|
||||||
audit_template_uuid=audit_template['uuid'],
|
audit_template_uuid=audit_template['uuid'],
|
||||||
audit_type='CONTINUOUS',
|
audit_type='CONTINUOUS',
|
||||||
interval=7200,
|
interval='7200',
|
||||||
)
|
)
|
||||||
|
|
||||||
_, body = self.create_audit(**audit_params)
|
_, body = self.create_audit(**audit_params)
|
||||||
|
Loading…
Reference in New Issue
Block a user