Skip to content

Commit 92e4e7a

Browse files
committed
🏃 drop API tests scaffolding in 'create api'
This change removes the scaffolding of API tests during the 'create api' workflow. Users didn't find the API tests useful.
1 parent aedffed commit 92e4e7a

File tree

7 files changed

+0
-466
lines changed

7 files changed

+0
-466
lines changed

pkg/scaffold/api.go

-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ func (api *API) scaffoldV2() error {
157157
Path: filepath.Join("api", r.Version, fmt.Sprintf("%s_types.go", strings.ToLower(r.Kind))),
158158
},
159159
Resource: r},
160-
&resourcev2.VersionSuiteTest{Resource: r},
161-
&resourcev2.TypesTest{Resource: r},
162160
&resourcev2.Group{Resource: r},
163161
&resourcev2.CRDSample{Resource: r},
164162
&crdv2.EnableWebhookPatch{Resource: r},

pkg/scaffold/v2/typestest.go

-123
This file was deleted.

pkg/scaffold/v2/version_suitetest.go

-111
This file was deleted.

testdata/project-v2/api/v1/captain_types_test.go

-77
This file was deleted.

0 commit comments

Comments
 (0)