Merge "New cron type for audit interval"

This commit is contained in:
Jenkins 2017-07-19 02:46:25 +00:00 committed by Gerrit Code Review
commit df79242dac
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class BaseInfraOptimTest(test.BaseTestCase):
:param audit_template_uuid: Audit Template UUID this audit will use
:param audit_type: Audit type (either ONESHOT or CONTINUOUS)
: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
"""
resp, body = cls.client.create_audit(

View File

@ -63,7 +63,7 @@ class TestCreateUpdateDeleteAudit(base.BaseInfraOptimTest):
audit_params = dict(
audit_template_uuid=audit_template['uuid'],
audit_type='CONTINUOUS',
interval=7200,
interval='7200',
)
_, body = self.create_audit(**audit_params)