Skip to content

Commit

Permalink
all the conformance tests enabled again
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Lavacca <[email protected]>
  • Loading branch information
mlavacca committed Feb 8, 2023
1 parent 0cb619b commit a512dcb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/controllers/gateway/gateway_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func getListenerStatus(
AttachedRoutes: listenerToAttached[listener.Name],
}

// if the resolvedRefs condition is not successfull, append the resolvedRefs condition failed with the proper reason
// if the resolvedRefs condition is not successful, append the resolvedRefs condition failed with the proper reason
if ResolvedRefsReason != gatewayv1beta1.ListenerReasonResolvedRefs {
status.Conditions = append(status.Conditions, metav1.Condition{
Type: string(gatewayv1beta1.ListenerConditionResolvedRefs),
Expand Down
3 changes: 2 additions & 1 deletion internal/controllers/gateway/gateway_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"context"
"testing"

"github.com/kong/kubernetes-ingress-controller/v2/internal/util/builder"
"github.com/samber/lo"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
gatewayv1beta1 "sigs.k8s.io/gateway-api/apis/v1beta1"

"github.com/kong/kubernetes-ingress-controller/v2/internal/util/builder"
)

func TestGetListenerSupportedRouteKinds(t *testing.T) {
Expand Down
15 changes: 7 additions & 8 deletions test/conformance/gateway_conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,19 @@ func TestGatewayConformance(t *testing.T) {
// these tests are temporarily disabled to be able to bump the Gateway API to 0.6
// https:/Kong/kubernetes-ingress-controller/issues/3305
skipTests := map[string]struct{}{
tests.GatewayInvalidRouteKind.ShortName: {},
// tests.GatewayInvalidTLSConfiguration.ShortName: {},
// tests.GatewaySecretReferenceGrantAllInNamespace.ShortName: {},
// tests.GatewaySecretReferenceGrantSpecific.ShortName: {},
// tests.HTTPRouteHeaderMatching.ShortName: {},
// tests.HTTPRouteObservedGenerationBump.ShortName: {},
// tests.HTTPRouteRequestRedirect.ShortName: {},
tests.GatewayInvalidTLSConfiguration.ShortName: {},
tests.GatewaySecretReferenceGrantAllInNamespace.ShortName: {},
tests.GatewaySecretReferenceGrantSpecific.ShortName: {},
tests.HTTPRouteHeaderMatching.ShortName: {},
tests.HTTPRouteObservedGenerationBump.ShortName: {},
tests.HTTPRouteRequestRedirect.ShortName: {},
}

t.Log("running gateway conformance tests")
for _, tt := range tests.ConformanceTests {
tt := tt
t.Run(tt.Description, func(t *testing.T) {
if _, ok := skipTests[tt.ShortName]; !ok {
if _, ok := skipTests[tt.ShortName]; ok {
t.Skipf("skipping %s", tt.ShortName)
}
tt.Run(t, cSuite)
Expand Down

0 comments on commit a512dcb

Please sign in to comment.