Skip to content

Commit

Permalink
fix: reuse gc name in GatewayClassObservedGenerationBump conformance …
Browse files Browse the repository at this point in the history
…test

Signed-off-by: bitliu <bitliu@tencent.com>
  • Loading branch information
Xunzhuo committed Jan 16, 2023
1 parent 545702c commit a86ccdd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1beta1
metadata:
name: envoy-gateway
name: gatewayclass-observed-generation-bump
spec:
controllerName: gateway.envoyproxy.io/gatewayclass-controller
12 changes: 7 additions & 5 deletions test/conformance/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ func TestGatewayAPIConformance(t *testing.T) {
CleanupBaseResources: *flags.CleanupBaseResources,
ValidUniqueListenerPorts: validUniqueListenerPorts,
SupportedFeatures: map[suite.SupportedFeature]bool{
suite.SupportHTTPRouteQueryParamMatching: true,
suite.SupportReferenceGrant: true,
suite.SupportHTTPResponseHeaderModification: true,
suite.SupportHTTPRouteMethodMatching: true,
suite.SupportRouteDestinationPortMatching: true,
suite.SupportHTTPRouteQueryParamMatching: true,
suite.SupportReferenceGrant: true,
suite.SupportHTTPResponseHeaderModification: true,
suite.SupportHTTPRouteMethodMatching: true,
suite.SupportRouteDestinationPortMatching: true,
suite.SupportGatewayClassObservedGenerationBump: true,
},
})
cSuite.Setup(t)
Expand All @@ -84,6 +85,7 @@ func TestGatewayAPIConformance(t *testing.T) {
tests.GatewaySecretInvalidReferenceGrant,
tests.GatewayInvalidTLSConfiguration,
tests.GatewayInvalidRouteKind,
tests.GatewayClassObservedGenerationBump,
tests.HTTPRouteReferenceGrant,
tests.HTTPRoutePartiallyInvalidViaInvalidReferenceGrant,
tests.HTTPRouteInvalidParentRefNotMatchingListenerPort,
Expand Down
2 changes: 1 addition & 1 deletion tools/make/kube.mk
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ run-conformance: ## Run Gateway API conformance.
kubectl wait --timeout=5m -n envoy-gateway-system deployment/envoy-gateway --for=condition=Available
kubectl wait --timeout=5m -n gateway-system job/gateway-api-admission --for=condition=Complete
kubectl apply -f internal/provider/kubernetes/config/samples/gatewayclass.yaml
go test -v -tags conformance ./test/conformance --gateway-class=envoy-gateway --debug=true --use-unique-ports=$(CONFORMANCE_UNIQUE_PORTS)
go test -v -tags conformance ./test/conformance --gateway-class=gatewayclass-observed-generation-bump --debug=true --use-unique-ports=$(CONFORMANCE_UNIQUE_PORTS)

.PHONY: delete-cluster
delete-cluster: $(tools/kind) ## Delete kind cluster.
Expand Down

0 comments on commit a86ccdd

Please sign in to comment.