diff --git a/test/integration/internal/controller/capsule_controller_test.go b/test/integration/controller/capsule_controller_test.go similarity index 98% rename from test/integration/internal/controller/capsule_controller_test.go rename to test/integration/controller/capsule_controller_test.go index 3bdd3fe8c..395dad569 100644 --- a/test/integration/internal/controller/capsule_controller_test.go +++ b/test/integration/controller/capsule_controller_test.go @@ -49,7 +49,7 @@ func setupTest(t *testing.T) { //logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true))) testEnv = &envtest.Environment{ - CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "..", "deploy", "kustomize", "crd", "bases")}, + CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "deploy", "kustomize", "crd", "bases")}, ErrorIfCRDPathMissing: true, // The BinaryAssetsDirectory is only required if you want to run the tests directly @@ -57,7 +57,7 @@ func setupTest(t *testing.T) { // default path defined in controller-runtime which is /usr/local/kubebuilder/. // Note that you must have the required binaries setup under the bin directory to perform // the tests directly. When we run make test it will be setup and used automatically. - BinaryAssetsDirectory: filepath.Join("..", "..", "..", "..", "tools", "bin", "k8s", + BinaryAssetsDirectory: filepath.Join("..", "..", "..", "tools", "bin", "k8s", fmt.Sprintf("1.28.0-%s-%s", runtime.GOOS, runtime.GOARCH)), }