@@ -12,7 +12,6 @@ import (
1212 "github.com/zalando/postgres-operator/pkg/util/constants"
1313 "github.com/zalando/postgres-operator/pkg/util/k8sutil"
1414 "github.com/zalando/postgres-operator/pkg/util/teams"
15- v1 "k8s.io/api/core/v1"
1615 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1716 "k8s.io/client-go/tools/record"
1817)
@@ -334,36 +333,6 @@ func TestInitHumanUsersWithSuperuserTeams(t *testing.T) {
334333 }
335334}
336335
337- func TestShouldDeleteSecret (t * testing.T ) {
338- testName := "TestShouldDeleteSecret"
339-
340- tests := []struct {
341- secret * v1.Secret
342- outcome bool
343- }{
344- {
345- secret : & v1.Secret {Data : map [string ][]byte {"username" : []byte ("foobar" )}},
346- outcome : true ,
347- },
348- {
349- secret : & v1.Secret {Data : map [string ][]byte {"username" : []byte (superUserName )}},
350-
351- outcome : false ,
352- },
353- {
354- secret : & v1.Secret {Data : map [string ][]byte {"username" : []byte (replicationUserName )}},
355- outcome : false ,
356- },
357- }
358-
359- for _ , tt := range tests {
360- if outcome , username := cl .shouldDeleteSecret (tt .secret ); outcome != tt .outcome {
361- t .Errorf ("%s expects the check for deletion of the username %q secret to return %t, got %t" ,
362- testName , username , tt .outcome , outcome )
363- }
364- }
365- }
366-
367336func TestPodAnnotations (t * testing.T ) {
368337 testName := "TestPodAnnotations"
369338 tests := []struct {
0 commit comments