|
9 | 9 | "github.com/otiai10/copy" |
10 | 10 | "github.com/sirupsen/logrus" |
11 | 11 | "github.com/stretchr/testify/require" |
12 | | - "gopkg.in/yaml.v2" |
| 12 | + "gopkg.in/yaml.v3" |
13 | 13 |
|
14 | 14 | "github.com/operator-framework/operator-registry/pkg/api" |
15 | 15 | "github.com/operator-framework/operator-registry/pkg/registry" |
@@ -206,13 +206,16 @@ func TestQuerierForDirectory(t *testing.T) { |
206 | 206 | {"etcd", "stable", "etcdoperator.v0.6.1", ""}, |
207 | 207 | {"etcd", "stable", "etcdoperator.v0.9.0", "etcdoperator.v0.6.1"}, |
208 | 208 | {"etcd", "stable", "etcdoperator.v0.9.2", "etcdoperator.v0.9.1"}, |
209 | | - {"etcd", "stable", "etcdoperator.v0.9.2", "etcdoperator.v0.9.0"}}, etcdChannelEntriesThatProvide) |
| 209 | + {"etcd", "stable", "etcdoperator.v0.9.2", "etcdoperator.v0.9.0"}, |
| 210 | + }, etcdChannelEntriesThatProvide) |
210 | 211 |
|
211 | 212 | etcdLatestChannelEntriesThatProvide, err := store.GetLatestChannelEntriesThatProvide(context.TODO(), "etcd.database.coreos.com", "v1beta2", "EtcdCluster") |
212 | 213 | require.NoError(t, err) |
213 | | - require.ElementsMatch(t, []*registry.ChannelEntry{{"etcd", "alpha", "etcdoperator.v0.9.2", "etcdoperator.v0.9.0"}, |
| 214 | + require.ElementsMatch(t, []*registry.ChannelEntry{ |
| 215 | + {"etcd", "alpha", "etcdoperator.v0.9.2", "etcdoperator.v0.9.0"}, |
214 | 216 | {"etcd", "beta", "etcdoperator.v0.9.0", "etcdoperator.v0.6.1"}, |
215 | | - {"etcd", "stable", "etcdoperator.v0.9.2", "etcdoperator.v0.9.0"}}, etcdLatestChannelEntriesThatProvide) |
| 217 | + {"etcd", "stable", "etcdoperator.v0.9.2", "etcdoperator.v0.9.0"}, |
| 218 | + }, etcdLatestChannelEntriesThatProvide) |
216 | 219 |
|
217 | 220 | etcdBundleByProvides, err := store.GetBundleThatProvides(context.TODO(), "etcd.database.coreos.com", "v1beta2", "EtcdCluster") |
218 | 221 | require.NoError(t, err) |
|
0 commit comments