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

ssa: Add test for CRD with regex validation #731

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions ssa/manager_wait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func TestWaitForSet(t *testing.T) {
t.Fatal(err)
}

if err := SetNativeKindsDefaults(objects); err != nil {
t.Fatal(err)
}

manager.SetOwnerLabels(objects, "infra", "default")

_, crd := getFirstObject(objects, "CustomResourceDefinition", "clustertests.testing.fluxcd.io")
Expand Down
7 changes: 7 additions & 0 deletions ssa/testdata/test5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ spec:
spec:
description: TestSpec defines the desired state of a test run
properties:
name:
description: name specifies the subject name of schema. If not configured,
the Schema CR name is used as the subject name.
maxLength: 255
minLength: 1
pattern: ^[^\\]*$
type: string
type:
description: Type of test
type: string
Expand Down
Loading