File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
internal/framework/helpers Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 1
1
package helpers_test
2
2
3
3
import (
4
- "context"
5
4
"testing"
6
5
"text/template"
7
6
8
7
. "github.com/onsi/gomega"
9
- controllerruntime "sigs.k8s.io/controller-runtime"
10
8
"sigs.k8s.io/controller-runtime/pkg/client"
11
9
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
12
10
gatewayv1alpha3 "sigs.k8s.io/gateway-api/apis/v1alpha3"
13
11
14
- ngfAPIv1alpha1 "github.com/nginx/nginx-gateway-fabric/v2/apis/v1alpha1"
15
-
16
12
"github.com/nginx/nginx-gateway-fabric/v2/internal/framework/helpers"
17
13
)
18
14
@@ -143,19 +139,4 @@ func TestMustCreateKubernetesClient(t *testing.T) {
143
139
144
140
g .Expect (err ).ToNot (HaveOccurred ())
145
141
g .Expect (k8sClient ).ToNot (BeNil ())
146
-
147
- // Check that the client can be used to list namespaces
148
- nginxGateway := & ngfAPIv1alpha1.NginxGateway {
149
- ObjectMeta : controllerruntime.ObjectMeta {
150
- Name : helpers .UniqueResourceName ("test-nginx-gateway" ),
151
- Namespace : "default" ,
152
- },
153
- }
154
- // Clean up after test
155
- defer func () {
156
- _ = k8sClient .Delete (context .Background (), nginxGateway )
157
- }()
158
- err = k8sClient .Create (context .Background (), nginxGateway )
159
- g .Expect (err ).ToNot (HaveOccurred ())
160
- g .Expect (nginxGateway ).ToNot (BeNil ())
161
142
}
You can’t perform that action at this time.
0 commit comments