Skip to content

Commit 9db5fb9

Browse files
authored
Merge pull request #106 from apelisse/add-mode-objects
Add more objects in Benchmarks and Tests
2 parents f88d189 + 5b20433 commit 9db5fb9

File tree

6 files changed

+7334
-18
lines changed

6 files changed

+7334
-18
lines changed

internal/cli/main_test.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,25 @@ func TestFieldSet(t *testing.T) {
197197
typeName: "io.k8s.api.core.v1.Pod",
198198
},
199199
expectedOutputPath: testdata("podset.json"),
200+
}, {
201+
options: Options{
202+
schemaPath: testdata("k8s-schema.yaml"),
203+
fieldset: testdata("node.yaml"),
204+
typeName: "io.k8s.api.core.v1.Node",
205+
},
206+
expectedOutputPath: testdata("nodeset.json"),
207+
}, {
208+
options: Options{
209+
schemaPath: testdata("k8s-schema.yaml"),
210+
fieldset: testdata("endpoints.yaml"),
211+
typeName: "io.k8s.api.core.v1.Endpoints",
212+
},
213+
expectedOutputPath: testdata("endpointsset.json"),
200214
}}
201215

202216
for _, tt := range cases {
203217
tt := tt
204-
t.Run(tt.options.fieldset, func(t *testing.T) {
218+
t.Run(tt.options.typeName, func(t *testing.T) {
205219
op, err := tt.options.Resolve()
206220
if err != nil {
207221
t.Fatal(err)

0 commit comments

Comments
 (0)