Skip to content

Commit 70d9d61

Browse files
committed
Fix crd registration test
1 parent d56e533 commit 70d9d61

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

operator/config/crd/bases/crds_test.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ import (
1919

2020
func TestCRDS(t *testing.T) {
2121
names := map[string]struct{}{
22-
"clusters.redpanda.vectorized.io": {},
23-
"consoles.cluster.redpanda.com": {},
24-
"consoles.redpanda.vectorized.io": {},
25-
"nodepools.cluster.redpanda.com": {},
26-
"redpandas.cluster.redpanda.com": {},
27-
"redpandaroles.cluster.redpanda.com": {},
28-
"schemas.cluster.redpanda.com": {},
29-
"shadowlinks.cluster.redpanda.com": {},
30-
"topics.cluster.redpanda.com": {},
31-
"users.cluster.redpanda.com": {},
22+
"clusters.redpanda.vectorized.io": {},
23+
"consoles.cluster.redpanda.com": {},
24+
"consoles.redpanda.vectorized.io": {},
25+
"nodepools.cluster.redpanda.com": {},
26+
"redpandas.cluster.redpanda.com": {},
27+
"redpandaroles.cluster.redpanda.com": {},
28+
"schemas.cluster.redpanda.com": {},
29+
"shadowlinks.cluster.redpanda.com": {},
30+
"stretchclusters.cluster.redpanda.com": {},
31+
"topics.cluster.redpanda.com": {},
32+
"users.cluster.redpanda.com": {},
3233
}
3334

3435
foundNames := map[string]struct{}{}
@@ -44,6 +45,7 @@ func TestCRDS(t *testing.T) {
4445
require.Equal(t, "redpandaroles.cluster.redpanda.com", crds.Role().Name)
4546
require.Equal(t, "schemas.cluster.redpanda.com", crds.Schema().Name)
4647
require.Equal(t, "shadowlinks.cluster.redpanda.com", crds.ShadowLink().Name)
48+
require.Equal(t, "stretchclusters.cluster.redpanda.com", crds.StretchCluster().Name)
4749
require.Equal(t, "topics.cluster.redpanda.com", crds.Topic().Name)
4850
require.Equal(t, "users.cluster.redpanda.com", crds.User().Name)
4951
}

0 commit comments

Comments
 (0)