Skip to content

Commit 21ba6a3

Browse files
Merge pull request #1299 from aguidirh/OCPBUGS-61497
OCPBUGS-61497: fix: return only requested version
2 parents 8fbbf27 + eeccf40 commit 21ba6a3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require (
1616
github.com/openshift/api v0.0.0-20240529192326-16d44e6d3e7d
1717
github.com/operator-framework/operator-registry v1.50.0
1818
github.com/otiai10/copy v1.14.1
19-
github.com/sherine-k/catalog-filter v0.0.4
19+
github.com/sherine-k/catalog-filter v0.0.5
2020
github.com/sirupsen/logrus v1.9.3
2121
github.com/spf13/cobra v1.10.1
2222
github.com/spf13/pflag v1.0.9

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL
361361
github.com/secure-systems-lab/go-securesystemslib v0.9.1/go.mod h1:np53YzT0zXGMv6x4iEWc9Z59uR+x+ndLwCLqPYpLXVU=
362362
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
363363
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
364-
github.com/sherine-k/catalog-filter v0.0.4 h1:UWM3XaktjbvKw5ktC2NoxQLP+6KNbvaplwiAaVV411g=
365-
github.com/sherine-k/catalog-filter v0.0.4/go.mod h1:NQ667IgdlOYYHeLwppvrtm5TtYIn7b3CCyYKGT2e3rI=
364+
github.com/sherine-k/catalog-filter v0.0.5 h1:RExES+TRnkIcK6GwMBXGbku1X5C11Wr03FHQj38f060=
365+
github.com/sherine-k/catalog-filter v0.0.5/go.mod h1:NQ667IgdlOYYHeLwppvrtm5TtYIn7b3CCyYKGT2e3rI=
366366
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
367367
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
368368
github.com/sigstore/fulcio v1.6.6 h1:XaMYX6TNT+8n7Npe8D94nyZ7/ERjEsNGFC+REdi/wzw=

internal/pkg/operator/catalog_handler_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import (
1010
"slices"
1111
"testing"
1212

13+
"github.com/operator-framework/operator-registry/alpha/declcfg"
14+
"github.com/stretchr/testify/assert"
15+
1316
"github.com/openshift/oc-mirror/v2/internal/pkg/api/v2alpha1"
1417
"github.com/openshift/oc-mirror/v2/internal/pkg/common"
1518
clog "github.com/openshift/oc-mirror/v2/internal/pkg/log"
16-
"github.com/operator-framework/operator-registry/alpha/declcfg"
17-
"github.com/stretchr/testify/assert"
1819
)
1920

2021
func TestFilterRelatedImagesFromCatalog(t *testing.T) {
@@ -1144,7 +1145,7 @@ func TestFilterCatalog(t *testing.T) {
11441145
},
11451146

11461147
expectedBundles: []string{},
1147-
expectedError: errors.New("package \"3scale-operator\" channel \"threescale-mas\" has version range \">=77.77.77 <=77.77.77\" that results in an empty channel"),
1148+
expectedError: errors.New("error finding specific bundle: specific version 77.77.77 not found in bundles"),
11481149
expectedWarning: ""},
11491150
}
11501151

0 commit comments

Comments
 (0)