Add tests when log type is 'file'
[integration/packaging/ansible-opendaylight.git] / 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'