Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/cel/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ const (
grpcRouteKind = "GRPCRoute"
tcpRouteKind = "TCPRoute"
invalidKind = "InvalidKind"
serviceKind = "Service"
)

const (
gatewayGroup = "gateway.networking.k8s.io"
invalidGroup = "invalid.networking.k8s.io"
discoveryGroup = "discovery.k8s.io/v1"
coreGroup = "core"
emptyGroup = ""
)

// ClientSettingsPolicy validation errors.
Expand All @@ -44,6 +47,13 @@ const (
expectedMinReplicasLessThanOrEqualError = `minReplicas must be less than or equal to maxReplicas`
)

// UpstreamSettingsPolicy validation errors.
const (
expectedTargetRefKindServiceError = `TargetRefs Kind must be: Service`
expectedTargetRefGroupCoreError = `TargetRefs Group must be core`
expectedTargetRefNameUniqueError = `TargetRef Name must be unique`
)

const (
defaultNamespace = "default"
)
Expand Down
Loading
Loading