Skip to content

Commit

Permalink
update factory test case
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
  • Loading branch information
fjogeleit committed Sep 18, 2024
1 parent 32f685d commit 3784e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/target/factory/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
Expand Down Expand Up @@ -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)
}
})
Expand Down

0 comments on commit 3784e8b

Please sign in to comment.