From 3784e8bba3418fd95b5fce0e8252d3ec45255993 Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Wed, 18 Sep 2024 10:43:59 +0200 Subject: [PATCH] update factory test case Signed-off-by: Frank Jogeleit --- pkg/target/factory/factory_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/target/factory/factory_test.go b/pkg/target/factory/factory_test.go index 8e7e9909..07432ad2 100644 --- a/pkg/target/factory/factory_test.go +++ b/pkg/target/factory/factory_test.go @@ -532,7 +532,7 @@ func Test_GetValuesFromSecret(t *testing.T) { t.Run("Get Loki values from Secret", func(t *testing.T) { fv := reflect.ValueOf(clients.Client("Loki")).Elem().FieldByName("host") - if v := fv.String(); v != "http://localhost:9200/api/prom/push" { + if v := fv.String(); v != "http://localhost:9200/loki/api/v1/push" { t.Errorf("Expected host from secret, got %s", v) } }) @@ -901,7 +901,7 @@ func Test_GetValuesFromMountedSecret(t *testing.T) { t.Run("Get Loki values from Secret", func(t *testing.T) { fv := reflect.ValueOf(clients.Client("Loki")).Elem().FieldByName("host") - if v := fv.String(); v != "http://localhost:9200/api/prom/push" { + if v := fv.String(); v != "http://localhost:9200/loki/api/v1/push" { t.Errorf("Expected host from secret, got %s", v) } })