From 0376caac45298197e6ed364d026d0f851e17c497 Mon Sep 17 00:00:00 2001 From: rriski Date: Fri, 26 Jan 2024 13:54:01 +0200 Subject: [PATCH] fix(tests): shorter service names in connection secret tests (#608) --- tests/service_opts_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/service_opts_test.go b/tests/service_opts_test.go index 27aee181..91446de4 100644 --- a/tests/service_opts_test.go +++ b/tests/service_opts_test.go @@ -155,7 +155,7 @@ func TestServiceConnInfoSecretTargetDisabled(t *testing.T) { // Modifying `connInfoSecretTargetDisabled` from missing to true --> A secret is created, but the update fails // because `connInfoSecretTargetDisabled` can only be set during resource creation. testName: "modify from missing to true", - serviceName: randName("grafana-modify-conn-info-secret-target-disabled-from-missing-to-true"), + serviceName: randName("grafana-conn-secret-test-1"), connInfoSecretTargetDisabledChange: []*bool{nil, pointer.Bool(true)}, expectSecretGetErrIsNil: true, expectSecretIsNil: false, @@ -165,7 +165,7 @@ func TestServiceConnInfoSecretTargetDisabled(t *testing.T) { // Modifying `connInfoSecretTargetDisabled` from true to missing --> A secret is not created and the update fails // because `connInfoSecretTargetDisabled` can only be set during resource creation. testName: "modify from true to missing", - serviceName: randName("grafana-modify-conn-info-secret-target-disabled-from-true-to-missing"), + serviceName: randName("grafana-conn-secret-test-2"), connInfoSecretTargetDisabledChange: []*bool{pointer.Bool(true), nil}, expectSecretGetErrIsNil: false, expectSecretIsNil: true, @@ -175,7 +175,7 @@ func TestServiceConnInfoSecretTargetDisabled(t *testing.T) { // Modifying `connInfoSecretTargetDisabled` from false to true --> A secret is created and the update fails // due to the immutability of `connInfoSecretTargetDisabled`. testName: "modify from false to true", - serviceName: randName("grafana-modify-conn-info-secret-target-disabled-from-false-to-true"), + serviceName: randName("grafana-conn-secret-test-3"), connInfoSecretTargetDisabledChange: []*bool{pointer.Bool(false), pointer.Bool(true)}, expectSecretGetErrIsNil: true, expectSecretIsNil: false,