spec/spec_helper.rb in cef-0.7.1 vs spec/spec_helper.rb in cef-0.8.0
- old
+ new
@@ -20,8 +20,29 @@
:name => "test",
:deviceSeverity => "1"
}
end
+def test_prefix_escape_vals
+ test_prefix_escape_vals={
+ :deviceVendor => "bre|ed",
+ :deviceProduct => "CEF Sender",
+ :deviceVersion => "0.1",
+ :deviceEventClassId => "0:debug",
+ :name => "test",
+ :deviceSeverity => "1"
+ }
+end
+
+def test_extension_vals
+ test_extension_vals={
+ :sourceAddress => "192.168.1.1",
+ :destinationAddress => "192.168.1.2"
+ }
+end
+
def test_prefix_string
- "CEF:0|breed|CEF Sender|0.1|0:debug|test|1|"
+ "breed|CEF Sender|0.1|0:debug|test|1"
+ end
+def test_prefix_escape_string
+ "bre\\|ed|CEF Sender|0.1|0:debug|test|1"
end
\ No newline at end of file