From 32f685d7e33fc0b9596d3572329f98531f438b7c Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Wed, 18 Sep 2024 10:12:52 +0200 Subject: [PATCH] fix loki test case Signed-off-by: Frank Jogeleit --- pkg/target/loki/loki_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/target/loki/loki_test.go b/pkg/target/loki/loki_test.go index 09a6d826..1252f457 100644 --- a/pkg/target/loki/loki_test.go +++ b/pkg/target/loki/loki_test.go @@ -56,7 +56,7 @@ func Test_LokiTarget(t *testing.T) { assert.Equal(t, fixtures.CompleteTargetSendResult.Rule, stream.Stream["rule"]) assert.Equal(t, fixtures.CompleteTargetSendResult.Policy, stream.Stream["policy"]) assert.Equal(t, fixtures.CompleteTargetSendResult.Category, stream.Stream["category"]) - assert.Equal(t, string(fixtures.CompleteTargetSendResult.Result), stream.Stream["result"]) + assert.Equal(t, string(fixtures.CompleteTargetSendResult.Result), stream.Stream["status"]) assert.Equal(t, string(fixtures.CompleteTargetSendResult.Severity), stream.Stream["severity"]) res := fixtures.CompleteTargetSendResult.GetResource() @@ -103,7 +103,7 @@ func Test_LokiTarget(t *testing.T) { assert.Equal(t, fixtures.MinimalTargetSendResult.Rule, stream.Stream["rule"]) assert.Equal(t, fixtures.MinimalTargetSendResult.Policy, stream.Stream["policy"]) assert.Equal(t, fixtures.MinimalTargetSendResult.Category, stream.Stream["category"]) - assert.Equal(t, string(fixtures.MinimalTargetSendResult.Result), stream.Stream["result"]) + assert.Equal(t, string(fixtures.MinimalTargetSendResult.Result), stream.Stream["status"]) assert.Equal(t, string(fixtures.MinimalTargetSendResult.Severity), stream.Stream["severity"]) assert.Equal(t, "policy-reporter", stream.Stream["createdBy"])