diff --git a/controllers/suite/resources/humioresources_controller_test.go b/controllers/suite/resources/humioresources_controller_test.go index 2122fad0..7eaca67d 100644 --- a/controllers/suite/resources/humioresources_controller_test.go +++ b/controllers/suite/resources/humioresources_controller_test.go @@ -2313,7 +2313,7 @@ var _ = Describe("Humio Resources Controllers", func() { }, } - expectedSecretValue := "https://hooks.slack.com/services/T00000000/B00000000/YYYYYYYYYYYYYYYYYYYYYYYY" + expectedSecretValue := fmt.Sprintf("https://%s/services/T00000000/B00000000/YYYYYYYYYYYYYYYYYYYYYYYY", testService1.Name) secret := &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: toCreateAction.Spec.SlackProperties.UrlSource.SecretKeyRef.LocalObjectReference.Name, @@ -2361,7 +2361,7 @@ var _ = Describe("Humio Resources Controllers", func() { Namespace: clusterKey.Namespace, } - expectedSecretValue := "https://hooks.slack.com/services/T00000000/B00000000/YYYYYYYYYYYYYYYYYYYYYYYY" + expectedSecretValue := fmt.Sprintf("https://%s/services/T00000000/B00000000/YYYYYYYYYYYYYYYYYYYYYYYY", testService1.Name) toCreateAction := &humiov1alpha1.HumioAction{ ObjectMeta: metav1.ObjectMeta{ Name: key.Name,