Skip to content

Commit dca5343

Browse files
committed
Fix resource file names
Signed-off-by: Per G. da Silva <[email protected]>
1 parent 2ff3585 commit dca5343

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

pkg/controller/registry/resolver/resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
const (
26-
runtimeConstraintsFilePath = "runtime_constraints.yaml"
26+
runtimeConstraintsFilePath = "runtime_constraints.json"
2727
)
2828

2929
type OperatorResolver interface {

pkg/controller/registry/resolver/resolver_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ func TestNewDefaultSatResolver_BadClusterRuntimeConstraintsFile(t *testing.T) {
22292229
}
22302230
}()
22312231

2232-
runtimeConstraintsFilePath := "testdata/bad_runtime_constraints.yaml"
2232+
runtimeConstraintsFilePath := "testdata/bad_runtime_constraints.json"
22332233
// set the runtime constraints env var to something that isn't a valid filesystem path
22342234
require.Nil(t, os.Setenv(runtime_constraints.RuntimeConstraintEnvVarName, runtimeConstraintsFilePath))
22352235
_ = NewDefaultSatResolver(sourceProvider, catSrcLister, logger)
@@ -2243,7 +2243,7 @@ func TestNewDefaultSatResolver_GoodClusterRuntimeConstraintsFile(t *testing.T) {
22432243
logger := logrus.New()
22442244
t.Cleanup(func() { _ = os.Unsetenv(runtime_constraints.RuntimeConstraintEnvVarName) })
22452245

2246-
runtimeConstraintsFilePath := "testdata/runtime_constraints.yaml"
2246+
runtimeConstraintsFilePath := "testdata/runtime_constraints.json"
22472247
// set the runtime constraints env var to something that isn't a valid filesystem path
22482248
require.Nil(t, os.Setenv(runtime_constraints.RuntimeConstraintEnvVarName, runtimeConstraintsFilePath))
22492249
resolver := NewDefaultSatResolver(sourceProvider, catSrcLister, logger)

0 commit comments

Comments
 (0)