|
@@ -192,15 +192,3 @@ func parseEvents(c *testing.T, out, match string) {
|
|
|
assert.Assert(c, matched, "Matcher: %s did not match %s", match, matches["action"])
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-func parseEventsWithID(c *testing.T, out, match, id string) {
|
|
|
- events := strings.Split(strings.TrimSpace(out), "\n")
|
|
|
- for _, event := range events {
|
|
|
- matches := eventstestutils.ScanMap(event)
|
|
|
- assert.Assert(c, matchEventID(matches, id))
|
|
|
-
|
|
|
- matched, err := regexp.MatchString(match, matches["action"])
|
|
|
- assert.NilError(c, err)
|
|
|
- assert.Assert(c, matched, "Matcher: %s did not match %s", match, matches["action"])
|
|
|
- }
|
|
|
-}
|