Skip to content

Commit d07a2ec

Browse files
authored
fix: pass more test (#105)
Signed-off-by: ashing <[email protected]>
1 parent bc6ef45 commit d07a2ec

File tree

5 files changed

+18
-25
lines changed

5 files changed

+18
-25
lines changed

.github/workflows/conformance-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
./get_helm.sh
4040
4141
conformance-test:
42+
timeout-minutes: 60
4243
needs:
4344
- prepare
4445
runs-on: buildjet-2vcpu-ubuntu-2204

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ download-api7ee3-chart:
115115

116116
.PHONY: conformance-test
117117
conformance-test:
118-
DASHBOARD_VERSION=$(DASHBOARD_VERSION) go test -v ./test/conformance -tags=conformance
118+
DASHBOARD_VERSION=$(DASHBOARD_VERSION) go test -v ./test/conformance -tags=conformance -timeout 60m
119119

120120
.PHONY: lint
121121
lint: sort-import golangci-lint ## Run golangci-lint linter

api/adc/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ type RewriteConfig struct {
418418
}
419419

420420
type Headers struct {
421-
Set map[string]string `json:"set" yaml:"set"`
422-
Add map[string]string `json:"add" yaml:"add"`
423-
Remove []string `json:"remove" yaml:"remove"`
421+
Set map[string]string `json:"set,omitempty" yaml:"set,omitempty"`
422+
Add map[string]string `json:"add,omitempty" yaml:"add,omitempty"`
423+
Remove []string `json:"remove,omitempty" yaml:"remove,omitempty"`
424424
}
425425

426426
// ResponseRewriteConfig is the rule config for response-rewrite plugin.

test/conformance/conformance_test.go

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,25 @@ var skippedTestsForSSL = []string{
2626

2727
var skippedTestsForTraditionalRoutes = []string{
2828
// TODO: Support ReferenceGrant resource
29+
tests.GatewaySecretInvalidReferenceGrant.ShortName,
30+
tests.GatewaySecretMissingReferenceGrant.ShortName,
31+
tests.HTTPRouteInvalidCrossNamespaceBackendRef.ShortName,
2932
tests.HTTPRouteInvalidReferenceGrant.ShortName,
3033
tests.HTTPRoutePartiallyInvalidViaInvalidReferenceGrant.ShortName,
3134
tests.HTTPRouteReferenceGrant.ShortName,
32-
tests.GatewayInvalidTLSConfiguration.ShortName,
33-
tests.GatewaySecretMissingReferenceGrant.ShortName,
34-
/*
35-
tests.GatewayInvalidTLSConfiguration.ShortName,
36-
tests.GatewayModifyListeners.ShortName,
37-
tests.GatewayWithAttachedRoutes.ShortName,
38-
*/
39-
tests.HTTPRouteHTTPSListener.ShortName,
40-
tests.HTTPRouteHeaderMatching.ShortName,
35+
36+
// TODO: HTTPRoute hostname intersection and listener hostname matching
37+
tests.HTTPRouteHostnameIntersection.ShortName,
38+
tests.HTTPRouteListenerHostnameMatching.ShortName,
39+
4140
tests.HTTPRouteMatching.ShortName,
42-
tests.HTTPRouteExactPathMatching.ShortName,
41+
tests.HTTPRouteMatchingAcrossRoutes.ShortName,
42+
43+
tests.GatewayInvalidTLSConfiguration.ShortName,
4344
tests.HTTPRouteInvalidBackendRefUnknownKind.ShortName,
44-
tests.HTTPRouteInvalidNonExistentBackendRef.ShortName,
4545
tests.HTTPRouteInvalidCrossNamespaceParentRef.ShortName,
46+
tests.HTTPRouteInvalidNonExistentBackendRef.ShortName,
4647
tests.HTTPRouteInvalidParentRefNotMatchingSectionName.ShortName,
47-
tests.HTTPRouteRequestHeaderModifier.ShortName,
48-
tests.HTTPRouteWeight.ShortName,
49-
tests.HTTPRouteHostnameIntersection.ShortName,
50-
tests.HTTPRouteListenerHostnameMatching.ShortName,
51-
tests.HTTPRouteMatchingAcrossRoutes.ShortName,
52-
tests.GatewaySecretReferenceGrantSpecific.ShortName,
53-
tests.GatewaySecretInvalidReferenceGrant.ShortName,
54-
tests.GatewaySecretReferenceGrantAllInNamespace.ShortName,
55-
tests.HTTPRouteInvalidCrossNamespaceBackendRef.ShortName,
56-
tests.HTTPRouteInvalidReferenceGrant.ShortName,
5748
}
5849

5950
var gatewaySupportedFeatures = []features.FeatureName{

test/conformance/suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func deleteNamespace(kubectl *k8s.KubectlOptions) {
6363
"gateway-conformance-infra",
6464
"gateway-conformance-web-backend",
6565
"gateway-conformance-app-backend",
66+
"api7ee-conformance-test",
6667
}
6768

6869
for _, ns := range namespacesToDelete {

0 commit comments

Comments
 (0)