Skip to content

Commit edf884a

Browse files
committed
Move the e2e test library and existing projects to test folder
1 parent 4df5432 commit edf884a

File tree

66 files changed

+48
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+48
-37
lines changed

test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ function test_crd_validation {
535535
kubebuilder generate
536536
header_text "generating and testing CRD..."
537537
kubebuilder create config --crds --output crd-validation.yaml
538-
diff crd-validation.yaml $kb_orig/test/resource/expected/crd-expected.yaml
538+
diff crd-validation.yaml $kb_orig/test/data/resource/expected/crd-expected.yaml
539539

540540
kubebuilder create config --controller-image myimage:v1 --name myextensionname --output install.yaml
541541
kubebuilder create controller --group got --version v1beta1 --kind House
@@ -568,9 +568,9 @@ function test_vendor_update {
568568
function test_docs {
569569
header_text "building docs"
570570
kubebuilder docs --docs-copyright "Hello" --title "World" --cleanup=false --brodocs=false
571-
diff docs/reference/includes "$kb_orig/test/docs/expected/includes"
572-
diff docs/reference/manifest.json "$kb_orig/test/docs/expected/manifest.json"
573-
diff docs/reference/config.yaml "$kb_orig/test/docs/expected/config.yaml"
571+
diff docs/reference/includes "$kb_orig/test/data/docs/expected/includes"
572+
diff docs/reference/manifest.json "$kb_orig/test/data/docs/expected/manifest.json"
573+
diff docs/reference/config.yaml "$kb_orig/test/data/docs/expected/config.yaml"
574574

575575
header_text "testing doc annotations"
576576
sed -i -e '/type Bee struct/ i \
@@ -579,7 +579,7 @@ function test_docs {
579579
' pkg/apis/insect/v1beta1/bee_types.go
580580

581581
kubebuilder docs --brodocs=false --cleanup=false
582-
diff docs/reference/config.yaml "$kb_orig/test/docs/expected/config-annotated.yaml"
582+
diff docs/reference/config.yaml "$kb_orig/test/data/docs/expected/config-annotated.yaml"
583583
}
584584

585585
function generate_controller {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)