Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ def escape_char_event(self, event):
"OVER",
"WHERE",
"LIKE",
"NOT",
]
event = event.replace("\\", "\\\\")
bounded_asterisk = re.search(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<comment>Unix service information. Data is collected from live instance. Data is generated from systemctl command. </comment>
</source>
<raw>
<![CDATA[Tue May 26 01:38:02 PDT 2020 type=systemctl UNIT=whoopsie.service, LOADED=not-found, ACTIVE=inactive, SUB=dead, DESCRIPTION="whoopsie.service"]]>
<![CDATA[Tue May 26 01:38:02 PDT 2020 type=systemctl UNIT=whoopsie.service, LOADED= NOT -found, ACTIVE=inactive, SUB=dead, DESCRIPTION="whoopsie.service"]]>
</raw>
<cim>
<models>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def test_check_xml_format(et_parse_mock, is_xml_valid, expected_output):
("OVER", "SESSION \\OVER CREATED"),
("WHERE", "SESSION \\WHERE CREATED"),
("LIKE", "SESSION \\LIKE CREATED"),
("NOT", "SESSION \\NOT CREATED"),
],
)
def test_escape_char_event(escape_char, expected_output):
Expand Down