]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add an integration test to expose a logging bug
authorZack Cerza <zack@redhat.com>
Wed, 31 Aug 2016 20:51:51 +0000 (14:51 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 31 Aug 2016 20:54:30 +0000 (14:54 -0600)
This is related to: http://tracker.ceph.com/issues/17102

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/test/integration/test_integration.py

index a9a528e8933ecec79cbbbdf38b996eeeebf8bc3e..90200a2a5c26cac34236b2ed523d4d1659f9e247 100644 (file)
@@ -80,3 +80,15 @@ class TestIntegration():
         rem = remote.Remote(HOST)
         assert rem.os.name
         assert rem.os.version
+
+    def test_17102(self, caplog):
+        # http://tracker.ceph.com/issues/17102
+        rem = remote.Remote(HOST)
+        interval = 3
+        rem.run(args="echo before; sleep %s; echo after" % interval)
+        for record in caplog.records():
+            if record.msg == 'before':
+                before_time = record.created
+            elif record.msg == 'after':
+                after_time = record.created
+        assert int(round(after_time - before_time)) == interval