@@ -34,13 +34,13 @@ func TestClientNew(t *testing.T) {
34
34
catalog : & catalogd.ClusterCatalog {ObjectMeta : metav1.ObjectMeta {Name : "catalog-1" }},
35
35
fetcher : fetcherFunc (func (context.Context , * catalogd.ClusterCatalog ) (fs.FS , error ) { return testFS , nil }),
36
36
assert : func (t * testing.T , dc * declcfg.DeclarativeConfig , err error ) {
37
- assert .ErrorContains (t , err , `catalog "catalog-1" is not unpacked ` )
37
+ assert .ErrorContains (t , err , `catalog "catalog-1" is not yet being served ` )
38
38
},
39
39
},
40
40
{
41
41
name : "unpacked, fetcher returns error" ,
42
42
catalog : & catalogd.ClusterCatalog {
43
- Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeUnpacked , Status : metav1 .ConditionTrue }}},
43
+ Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeServing , Status : metav1 .ConditionTrue }}},
44
44
},
45
45
fetcher : fetcherFunc (func (context.Context , * catalogd.ClusterCatalog ) (fs.FS , error ) { return nil , errors .New ("fetch error" ) }),
46
46
assert : func (t * testing.T , dc * declcfg.DeclarativeConfig , err error ) {
@@ -50,7 +50,7 @@ func TestClientNew(t *testing.T) {
50
50
{
51
51
name : "unpacked, invalid package path" ,
52
52
catalog : & catalogd.ClusterCatalog {
53
- Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeUnpacked , Status : metav1 .ConditionTrue }}},
53
+ Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeServing , Status : metav1 .ConditionTrue }}},
54
54
},
55
55
fetcher : fetcherFunc (func (context.Context , * catalogd.ClusterCatalog ) (fs.FS , error ) { return testFS , nil }),
56
56
pkgName : "/" ,
@@ -61,7 +61,7 @@ func TestClientNew(t *testing.T) {
61
61
{
62
62
name : "unpacked, package missing" ,
63
63
catalog : & catalogd.ClusterCatalog {
64
- Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeUnpacked , Status : metav1 .ConditionTrue }}},
64
+ Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeServing , Status : metav1 .ConditionTrue }}},
65
65
},
66
66
pkgName : "pkg-missing" ,
67
67
fetcher : fetcherFunc (func (context.Context , * catalogd.ClusterCatalog ) (fs.FS , error ) { return testFS , nil }),
@@ -73,7 +73,7 @@ func TestClientNew(t *testing.T) {
73
73
{
74
74
name : "unpacked, invalid package present" ,
75
75
catalog : & catalogd.ClusterCatalog {
76
- Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeUnpacked , Status : metav1 .ConditionTrue }}},
76
+ Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeServing , Status : metav1 .ConditionTrue }}},
77
77
},
78
78
pkgName : "invalid-pkg-present" ,
79
79
fetcher : fetcherFunc (func (context.Context , * catalogd.ClusterCatalog ) (fs.FS , error ) {
@@ -89,7 +89,7 @@ func TestClientNew(t *testing.T) {
89
89
{
90
90
name : "unpacked, package present" ,
91
91
catalog : & catalogd.ClusterCatalog {
92
- Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeUnpacked , Status : metav1 .ConditionTrue }}},
92
+ Status : catalogd.ClusterCatalogStatus {Conditions : []metav1.Condition {{Type : catalogd .TypeServing , Status : metav1 .ConditionTrue }}},
93
93
},
94
94
pkgName : "pkg-present" ,
95
95
fetcher : fetcherFunc (func (context.Context , * catalogd.ClusterCatalog ) (fs.FS , error ) { return testFS , nil }),
0 commit comments