You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/crd/parser_integration_test.go
+43Lines changed: 43 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,49 @@ var _ = Describe("CRD Generation From Parsing to CustomResourceDefinition", func
104
104
Expect(parser.CustomResourceDefinitions[groupKind]).To(Equal(crd), "type not as expected, check pkg/crd/testdata/README.md for more details.\n\nDiff:\n\n%s", cmp.Diff(parser.CustomResourceDefinitions[groupKind], crd))
105
105
})
106
106
107
+
It("should generate plural words for Kind correctly", func() {
108
+
By("switching into testdata to appease go modules")
// clear the annotations -- we don't care about the attribution annotation
144
+
crd.Annotations=nil
145
+
146
+
By("comparing the two")
147
+
Expect(parser.CustomResourceDefinitions[groupKind]).To(Equal(crd), "type not as expected, check pkg/crd/testdata/README.md for more details.\n\nDiff:\n\n%s", cmp.Diff(parser.CustomResourceDefinitions[groupKind], crd))
148
+
})
149
+
107
150
It("should skip api internal package", func() {
108
151
By("switching into testdata to appease go modules")
0 commit comments