Skip to content

Commit 2a27849

Browse files
committed
Fixup unit test config paths
Signed-off-by: Todd Short <[email protected]>
1 parent 69760fb commit 2a27849

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

api/v1/clustercatalog_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"sigs.k8s.io/yaml"
2121
)
2222

23-
const crdFilePath = "../../config/base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml"
23+
const crdFilePath = "../../helm/olmv1/base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml"
2424

2525
func TestImageSourceCELValidationRules(t *testing.T) {
2626
validators := fieldValidatorsFromFile(t, crdFilePath)

hack/tools/crd-generator/main_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ func TestRunGenerator(t *testing.T) {
2929
runGenerator(dir, controllerToolsVersion)
3030

3131
f1 := filepath.Join(dir, "standard/olm.operatorframework.io_clusterextensions.yaml")
32-
f2 := "config/base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensions.yaml"
32+
f2 := "helm/olmv1/base/operator-controller/crd/standard/olm.operatorframework.io_clusterextensions.yaml"
3333
fmt.Printf("comparing: %s to %s\n", f1, f2)
3434
compareFiles(t, f1, f2)
3535

3636
f1 = filepath.Join(dir, "standard/olm.operatorframework.io_clustercatalogs.yaml")
37-
f2 = "config/base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml"
37+
f2 = "helm/olmv1/base/catalogd/crd/standard/olm.operatorframework.io_clustercatalogs.yaml"
3838
fmt.Printf("comparing: %s to %s\n", f1, f2)
3939
compareFiles(t, f1, f2)
4040

4141
f1 = filepath.Join(dir, "experimental/olm.operatorframework.io_clusterextensions.yaml")
42-
f2 = "config/base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensions.yaml"
42+
f2 = "helm/olmv1/base/operator-controller/crd/experimental/olm.operatorframework.io_clusterextensions.yaml"
4343
fmt.Printf("comparing: %s to %s\n", f1, f2)
4444
compareFiles(t, f1, f2)
4545

4646
f1 = filepath.Join(dir, "experimental/olm.operatorframework.io_clustercatalogs.yaml")
47-
f2 = "config/base/catalogd/crd/experimental/olm.operatorframework.io_clustercatalogs.yaml"
47+
f2 = "helm/olmv1/base/catalogd/crd/experimental/olm.operatorframework.io_clustercatalogs.yaml"
4848
fmt.Printf("comparing: %s to %s\n", f1, f2)
4949
compareFiles(t, f1, f2)
5050
}

internal/operator-controller/controllers/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var config *rest.Config
9595
func TestMain(m *testing.M) {
9696
testEnv := &envtest.Environment{
9797
CRDDirectoryPaths: []string{
98-
filepath.Join("..", "..", "..", "config", "base", "operator-controller", "crd", "experimental"),
98+
filepath.Join("..", "..", "..", "helm", "olmv1", "base", "operator-controller", "crd", "experimental"),
9999
},
100100
ErrorIfCRDPathMissing: true,
101101
}

0 commit comments

Comments
 (0)