From: Taseer Date: Thu, 11 Oct 2018 21:32:20 +0000 (+0200) Subject: Add tests when log type is 'file' X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Fpackaging%2Fansible-opendaylight.git;a=commitdiff_plain;h=c1f99799f7065763264df16052fa7263170c5587 Add tests when log type is 'file' This patch adds tests when log type is file. 'File' is also default type hence all log tests against default config will fail without these. JIRA: INTPAK-209 Change-Id: Ifddeb8ff6d4885ed3a1f00b4adbd00fa3f71393f Signed-off-by: Taseer --- diff --git a/tests/test-odl-logs.yaml b/tests/test-odl-logs.yaml index 107a681..5553ba2 100644 --- a/tests/test-odl-logs.yaml +++ b/tests/test-odl-logs.yaml @@ -29,3 +29,9 @@ that: - "'{{test_log_level }}' in odl_logs.stdout" when: test_log_mechanism == 'console' + + - name: verify file logging + assert: + that: + - "lookup('file', '/opt/opendaylight/data/log/karaf.log') != None" + when: test_log_mechanism == 'file'