Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for YAMLSuccessfullyInterpretVK (0.25 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/meta_test.go

    )
    
    func TestInterpret(t *testing.T) {
    	testCases := []struct {
    		name     string
    		input    string
    		expected *schema.GroupVersionKind
    		errFn    func(error) bool
    	}{
    		{
    			name: "YAMLSuccessfullyInterpretVK",
    			input: `apiVersion: v1
    kind: Service`,
    			expected: &schema.GroupVersionKind{Version: "v1", Kind: "Service"},
    		},
    		{
    			name: "YAMLSuccessfullyInterpretGVK",
    			input: `apiVersion: core/v2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 27 09:44:59 UTC 2019
    - 4.2K bytes
    - Viewed (0)
Back to top