From 00b41c3d3ac9c24b6ff075a414ba1dd7e56186a5 Mon Sep 17 00:00:00 2001 From: Andrew Stucki Date: Fri, 12 Jun 2020 14:17:02 -0400 Subject: [PATCH] Fix up tests --- packetbeat/protos/nfs/request_handler.go | 1 + packetbeat/protos/redis/redis.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packetbeat/protos/nfs/request_handler.go b/packetbeat/protos/nfs/request_handler.go index b6ce1cdbdb53..d46560477432 100644 --- a/packetbeat/protos/nfs/request_handler.go +++ b/packetbeat/protos/nfs/request_handler.go @@ -198,5 +198,6 @@ func (r *rpc) handleReply(xid string, xdr *xdr, ts time.Time, tcptuple *common.T } else { nfs.pbf.Event.Outcome = "failure" } + r.results(nfs.event) } } diff --git a/packetbeat/protos/redis/redis.go b/packetbeat/protos/redis/redis.go index 9012f4ebda24..bf23e94836f9 100644 --- a/packetbeat/protos/redis/redis.go +++ b/packetbeat/protos/redis/redis.go @@ -327,7 +327,7 @@ func (redis *redisPlugin) newTransaction(requ, resp *redisMessage) beat.Event { fields["response"] = resp.message } - pbf.Event.Action = "redis." + strings.ToLower(fields["method"].(string)) + pbf.Event.Action = "redis." + strings.ToLower(string(requ.method)) if resp.isError { pbf.Event.Outcome = "failure" }