Add tests when log type is 'file' 14/76914/6
authorTaseer <taseer94@gmail.com>
Thu, 11 Oct 2018 21:32:20 +0000 (23:32 +0200)
committerDaniel Farrell <dfarrell@redhat.com>
Tue, 23 Oct 2018 21:58:22 +0000 (21:58 +0000)
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 <taseer94@gmail.com>
tests/test-odl-logs.yaml

index 107a681e606a3893e4092b9ddc8feccd5d8b3f01..5553ba2acc4cdf76f2bc061cbcf3457081abd758 100644 (file)
@@ -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'