Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AuthZ conformance e2e test suite #8150

Merged
merged 8 commits into from
Aug 13, 2024
Merged
Prev Previous commit
Next Next commit
Fix style issues
  • Loading branch information
creydr committed Aug 12, 2024
commit 93f1aa5b43ad307ecb2c1b12b5a65d3fa58ad63a
3 changes: 2 additions & 1 deletion test/rekt/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ limitations under the License.
package rekt

import (
"knative.dev/eventing/test/rekt/features/authz"
"testing"
"time"

"knative.dev/eventing/test/rekt/features/authz"

"knative.dev/reconciler-test/pkg/feature"

"knative.dev/pkg/system"
Expand Down
5 changes: 3 additions & 2 deletions test/rekt/features/authz/addressable_authz_conformance.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package authz
import (
"context"
"fmt"
"time"

"knative.dev/eventing/test/rekt/resources/eventpolicy"
"knative.dev/eventing/test/rekt/resources/pingsource"
"knative.dev/reconciler-test/pkg/environment"
"time"

"knative.dev/eventing/test/rekt/features/featureflags"

Expand Down Expand Up @@ -105,7 +106,7 @@ func addressableRejectsUnauthorizedRequest(gvr schema.GroupVersionResource, kind
eventpolicy.WithToRef(
gvr.GroupVersion().WithKind(kind),
name),
eventpolicy.WithFromSubject(fmt.Sprintf("system:serviceaccount:default:unknown-identity")),
eventpolicy.WithFromSubject("system:serviceaccount:default:unknown-identity"),
))
f.Setup(fmt.Sprintf("EventPolicy for %s %s is ready", kind, name), k8s.IsReady(gvr, name))

Expand Down
Loading