Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
mnitchev committed Mar 14, 2024
1 parent 0f94e25 commit b7bd12a
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions controllers/controllers_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ func TestControllers(t *testing.T) {
}

var (
logger logr.Logger
k8sClient client.Client
testEnv *envtest.Environment
namespace string
notExistResource = "does-not-exist"
logger logr.Logger
k8sClient client.Client
testEnv *envtest.Environment
namespace string
)

var _ = BeforeSuite(func() {
Expand Down Expand Up @@ -158,18 +157,6 @@ func newCluster(name string, annotationsKeyValues ...string) *capa.AWSCluster {
return awsCluster
}

func createRandomCluster(annotationsKeyValues ...string) *capa.AWSCluster {
name := uuid.NewString()
awsCluster := newCluster(name, annotationsKeyValues...)

Expect(k8sClient.Create(context.Background(), awsCluster)).To(Succeed())
tests.PatchAWSClusterStatus(k8sClient, awsCluster, capa.AWSClusterStatus{
Ready: true,
})

return awsCluster
}

func createRandomClusterWithIdentity(annotationsKeyValues ...string) (*capa.AWSClusterRoleIdentity, *capa.AWSCluster) {
name := uuid.NewString()
awsCluster := newCluster(name, annotationsKeyValues...)
Expand Down

0 comments on commit b7bd12a

Please sign in to comment.