Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testRecognizer (0.17 sec)

  1. pkg/controller/certificates/approver/sarapprove_test.go

    		},
    	}
    
    	testRecognizer(t, badCases, isNodeClientCert, false)
    	testRecognizer(t, badCases, isSelfNodeClientCert, false)
    
    	// cn different then requestor
    	differentCN := []func(b *csrBuilder){
    		func(b *csrBuilder) {
    			b.requestor = "joe"
    		},
    		func(b *csrBuilder) {
    			b.cn = "system:node:bar"
    		},
    	}
    
    	testRecognizer(t, differentCN, isNodeClientCert, true)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 21:12:04 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go

    func (d *testBufferedMarshalable) Size() int {
    	return len(d.data)
    }
    
    func (d *testBufferedMarshalable) DeepCopyObject() runtime.Object {
    	panic("testBufferedMarshalable does not support DeepCopy")
    }
    
    func TestRecognize(t *testing.T) {
    	s := protobuf.NewSerializer(nil, nil)
    	ignores := [][]byte{
    		nil,
    		{},
    		[]byte("k8s"),
    		{0x6b, 0x38, 0x73, 0x01},
    	}
    	for i, data := range ignores {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top