summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-09-11 16:34:29 +0200
committerTomas Bzatek <tbzatek@redhat.com>2013-10-15 15:23:49 +0200
commit4e366072cd9ce467dd0f5d128d17a6d0294e92d2 (patch)
tree9f8fcf0c3d5e68c37ad80835e7b017a90d64bbca
parent8517128bd9919ef6c30abd38b7b0c3e17aebec5e (diff)
downloadopenlmi-providers-4e366072cd9ce467dd0f5d128d17a6d0294e92d2.tar.gz
openlmi-providers-4e366072cd9ce467dd0f5d128d17a6d0294e92d2.tar.xz
openlmi-providers-4e366072cd9ce467dd0f5d128d17a6d0294e92d2.zip
journald: Update tests to match modified message format
The commit c7777bfa1b1114fd9d changed format of the message we expose to include process name and PID so let's update our tests accordingly.
-rw-r--r--src/journald/test/TestIndications.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journald/test/TestIndications.py b/src/journald/test/TestIndications.py
index cf79ad6..9e1307e 100644
--- a/src/journald/test/TestIndications.py
+++ b/src/journald/test/TestIndications.py
@@ -48,5 +48,5 @@ class TestIndications(JournalBase):
self.assertEqual(indication.classname, "LMI_JournalLogRecordInstanceCreationIndication")
self.assertIn("SourceInstance", indication.keys())
self.assertTrue(indication["SourceInstance"] is not None)
- self.assertEqual(indication["SourceInstance"]["DataFormat"], syslog_msg)
+ self.assertIn(syslog_msg, indication["SourceInstance"]["DataFormat"])
self.unsubscribe(filter_name);