@@ -42,7 +42,7 @@ func TestAuthenticationSingleDefaultSecret(t *testing.T) {
4242
4343 // Secret must now exist
4444 if _ , err := waitUntilSecret (kubecli , depl .Spec .Authentication .GetJWTSecretName (), ns , nil , time .Second ); err != nil {
45- t .Fatalf ("JWT secret '%s' not found: %v" , depl .Spec .Authentication .JWTSecretName , err )
45+ t .Fatalf ("JWT secret '%s' not found: %v" , depl .Spec .Authentication .GetJWTSecretName () , err )
4646 }
4747
4848 // Create a database client
@@ -59,7 +59,7 @@ func TestAuthenticationSingleDefaultSecret(t *testing.T) {
5959
6060 // Secret must no longer exist
6161 if err := waitUntilSecretNotFound (kubecli , depl .Spec .Authentication .GetJWTSecretName (), ns , time .Minute ); err != nil {
62- t .Fatalf ("JWT secret '%s' still found: %v" , depl .Spec .Authentication .JWTSecretName , err )
62+ t .Fatalf ("JWT secret '%s' still found: %v" , depl .Spec .Authentication .GetJWTSecretName () , err )
6363 }
6464}
6565
@@ -181,7 +181,7 @@ func TestAuthenticationClusterDefaultSecret(t *testing.T) {
181181
182182 // Secret must now exist
183183 if _ , err := waitUntilSecret (kubecli , depl .Spec .Authentication .GetJWTSecretName (), ns , nil , time .Second ); err != nil {
184- t .Fatalf ("JWT secret '%s' not found: %v" , depl .Spec .Authentication .JWTSecretName , err )
184+ t .Fatalf ("JWT secret '%s' not found: %v" , depl .Spec .Authentication .GetJWTSecretName () , err )
185185 }
186186
187187 // Create a database client
@@ -198,7 +198,7 @@ func TestAuthenticationClusterDefaultSecret(t *testing.T) {
198198
199199 // Secret must no longer exist
200200 if err := waitUntilSecretNotFound (kubecli , depl .Spec .Authentication .GetJWTSecretName (), ns , time .Minute ); err != nil {
201- t .Fatalf ("JWT secret '%s' still found: %v" , depl .Spec .Authentication .JWTSecretName , err )
201+ t .Fatalf ("JWT secret '%s' still found: %v" , depl .Spec .Authentication .GetJWTSecretName () , err )
202202 }
203203}
204204
0 commit comments