@@ -2,7 +2,6 @@ package e2e
2
2
3
3
import (
4
4
"context"
5
- "os"
6
5
"testing"
7
6
"time"
8
7
@@ -12,10 +11,8 @@ import (
12
11
corev1 "k8s.io/api/core/v1"
13
12
"k8s.io/utils/env"
14
13
15
- "k8s.io/apimachinery/pkg/api/errors"
16
14
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
17
15
"k8s.io/apimachinery/pkg/runtime"
18
- "k8s.io/apimachinery/pkg/types"
19
16
"k8s.io/client-go/rest"
20
17
ctrl "sigs.k8s.io/controller-runtime"
21
18
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -27,9 +24,8 @@ import (
27
24
)
28
25
29
26
var (
30
- cfg * rest.Config
31
- c client.Client
32
- operatorCatalog * catalogd.Catalog
27
+ cfg * rest.Config
28
+ c client.Client
33
29
)
34
30
35
31
const (
@@ -63,11 +59,6 @@ var _ = BeforeSuite(func() {
63
59
64
60
c , err = client .New (cfg , client.Options {Scheme : scheme })
65
61
Expect (err ).To (Not (HaveOccurred ()))
66
-
67
- ctx := context .Background ()
68
- operatorCatalog , err = createTestCatalog (ctx , testCatalogName , os .Getenv (testCatalogRefEnvVar ))
69
- Expect (err ).ToNot (HaveOccurred ())
70
-
71
62
})
72
63
73
64
var _ = AfterSuite (func () {
@@ -76,11 +67,6 @@ var _ = AfterSuite(func() {
76
67
// get all the artifacts from the test run and save them to the artifact path
77
68
getArtifactsOutput (ctx , basePath )
78
69
}
79
- Expect (c .Delete (ctx , operatorCatalog )).To (Succeed ())
80
- Eventually (func (g Gomega ) {
81
- err := c .Get (ctx , types.NamespacedName {Name : operatorCatalog .Name }, & catalogd.Catalog {})
82
- g .Expect (errors .IsNotFound (err )).To (BeTrue ())
83
- }).Should (Succeed ())
84
70
})
85
71
86
72
// createTestCatalog will create a new catalog on the test cluster, provided
0 commit comments