Skip to content

Commit

Permalink
fix: integration tests after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: KevFan <[email protected]>
  • Loading branch information
KevFan committed Dec 2, 2024
1 parent 7442260 commit ae8b800
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/bare_k8s/kuadrant_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package bare_k8s_test
import (
"time"

authorinoapi "github.com/kuadrant/authorino/api/v1beta3"
kuadrantdnsv1alpha1 "github.com/kuadrant/dns-operator/api/v1alpha1"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand All @@ -20,7 +21,7 @@ import (
"github.com/kuadrant/kuadrant-operator/tests"
)

var _ = Describe("Kuadrant controller is disabled", func() {
var _ = Describe("Kuadrant controller when Gateway API is missing", func() {
var (
testNamespace string
testTimeOut = SpecTimeout(15 * time.Second)
Expand Down Expand Up @@ -150,6 +151,19 @@ var _ = Describe("Kuadrant controller is disabled", func() {
Name: "test",
},
},
AuthPolicySpecProper: kuadrantv1.AuthPolicySpecProper{
AuthScheme: &kuadrantv1.AuthSchemeSpec{
Authentication: map[string]kuadrantv1.MergeableAuthenticationSpec{
"anyonmous": {
AuthenticationSpec: authorinoapi.AuthenticationSpec{
AuthenticationMethodSpec: authorinoapi.AuthenticationMethodSpec{
AnonymousAccess: &authorinoapi.AnonymousAccessSpec{},
},
},
},
},
},
},
},
}

Expand Down
14 changes: 14 additions & 0 deletions tests/gatewayapi/kuadrant_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package gatewayapi_test
import (
"time"

authorinoapi "github.com/kuadrant/authorino/api/v1beta3"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/api/meta"
Expand Down Expand Up @@ -107,6 +108,19 @@ var _ = Describe("Kuadrant controller when gateway provider is missing", func()
Name: "test",
},
},
AuthPolicySpecProper: kuadrantv1.AuthPolicySpecProper{
AuthScheme: &kuadrantv1.AuthSchemeSpec{
Authentication: map[string]kuadrantv1.MergeableAuthenticationSpec{
"anyonmous": {
AuthenticationSpec: authorinoapi.AuthenticationSpec{
AuthenticationMethodSpec: authorinoapi.AuthenticationMethodSpec{
AnonymousAccess: &authorinoapi.AnonymousAccessSpec{},
},
},
},
},
},
},
},
}

Expand Down

0 comments on commit ae8b800

Please sign in to comment.