From aeff5aa960e016a3a86165dc74c5f4e0c89cf3c0 Mon Sep 17 00:00:00 2001 From: Alexander Chadin Date: Fri, 21 Apr 2017 18:19:46 +0300 Subject: [PATCH] New cron type for audit interval This patch set adds cron supporting for audit. Implements: blueprint cron-based-continuous-audits Change-Id: I8570bebb13332dfba80185e912aeda45b6b4cd70 --- watcher_tempest_plugin/tests/api/admin/base.py | 2 +- watcher_tempest_plugin/tests/api/admin/test_audit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/watcher_tempest_plugin/tests/api/admin/base.py b/watcher_tempest_plugin/tests/api/admin/base.py index 75e57b9..2932dd4 100644 --- a/watcher_tempest_plugin/tests/api/admin/base.py +++ b/watcher_tempest_plugin/tests/api/admin/base.py @@ -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( diff --git a/watcher_tempest_plugin/tests/api/admin/test_audit.py b/watcher_tempest_plugin/tests/api/admin/test_audit.py index 2222950..13a187e 100644 --- a/watcher_tempest_plugin/tests/api/admin/test_audit.py +++ b/watcher_tempest_plugin/tests/api/admin/test_audit.py @@ -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)