Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 532 for testCases (0.3 sec)

  1. pkg/kubelet/kubelet_pods_test.go

    fe00::2	ip6-allrouters
    203.0.113.1	podFoo.domainFoo	podFoo
    fd00::6	podFoo.domainFoo	podFoo
    `,
    		},
    	}
    
    	for _, testCase := range testCases {
    		actualContent := managedHostsFileContent(testCase.hostIPs, testCase.hostName, testCase.hostDomainName, testCase.hostAliases)
    		assert.Equal(t, testCase.expectedContent, string(actualContent), "hosts file content not expected")
    	}
    }
    
    func TestRunInContainerNoSuchPod(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/envoyfilter/cluster_patch_test.go

    			Http2ProtocolOptions: &core.Http2ProtocolOptions{
    				AllowConnect:  true,
    				AllowMetadata: true,
    			}, LbPolicy: cluster.Cluster_RING_HASH, DnsLookupFamily: cluster.Cluster_V6_ONLY,
    		},
    	}
    
    	testCases := []struct {
    		name         string
    		input        []*cluster.Cluster
    		proxy        *model.Proxy
    		host         string
    		patchContext networking.EnvoyFilter_PatchContext
    		output       []*cluster.Cluster
    	}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  3. pkg/serviceaccount/jwt_test.go

    	}
    	differentIssuerToken, err := differentIssuerGenerator.GenerateToken(serviceaccount.LegacyClaims(*serviceAccount, *rsaSecret))
    	if err != nil {
    		t.Fatalf("error generating token: %v", err)
    	}
    
    	testCases := map[string]struct {
    		Client clientset.Interface
    		Keys   []interface{}
    		Token  string
    
    		ExpectedErr      bool
    		ExpectedOK       bool
    		ExpectedUserName string
    		ExpectedUserUID  string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go

    			specChanged: true,
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			w := !plcSpecEqualish(testCase.expected, testCase.actual)
    			if testCase.specChanged != w {
    				t.Errorf("Expected priorityLevelSpecChanged to return %t, but got: %t - diff: %s", testCase.specChanged, w,
    					cmp.Diff(testCase.expected, testCase.actual))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. pkg/apis/core/validation/validation_test.go

    		},
    	}
    	for _, testCase := range testCases {
    		errs := ValidateNode(&testCase.node)
    		if len(errs) == 0 && testCase.expectError {
    			t.Errorf("expected failure for %s, but there were none", testCase.node.Name)
    			return
    		}
    		if len(errs) != 0 && !testCase.expectError {
    			t.Errorf("expected success for %s, but there were errors: %v", testCase.node.Name, errs)
    			return
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  6. pkg/config/validation/agent/validation_test.go

    				t.Errorf("expected an error for each field %v", err)
    			}
    		default:
    			t.Errorf("expected a multi error as output")
    		}
    	}
    }
    
    func TestValidateTLS(t *testing.T) {
    	testCases := []struct {
    		name  string
    		tls   *networking.ClientTLSSettings
    		valid bool
    	}{
    		{
    			name: "SIMPLE: Credential Name set correctly",
    			tls: &networking.ClientTLSSettings{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  7. src/index/suffixarray/suffixarray_test.go

    	"io/fs"
    	"math/rand"
    	"os"
    	"path/filepath"
    	"regexp"
    	"slices"
    	"sort"
    	"strings"
    	"testing"
    )
    
    type testCase struct {
    	name     string   // name of test case
    	source   string   // source to index
    	patterns []string // patterns to lookup
    }
    
    var testCases = []testCase{
    	{
    		"empty string",
    		"",
    		[]string{
    			"",
    			"foo",
    			"(foo)",
    			".*",
    			"a*",
    		},
    	},
    
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    	ipv6BaseEstimatedCost := checker.CostEstimate{Min: 2, Max: 2}
    	ipv6BaseRuntimeCost := uint64(2)
    
    	type testCase struct {
    		ops                []string
    		expectEsimatedCost func(checker.CostEstimate) checker.CostEstimate
    		expectRuntimeCost  func(uint64) uint64
    	}
    
    	cases := []testCase{
    		{
    			// For just parsing the IP, the cost is expected to be the base.
    			ops:                []string{""},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  9. src/encoding/binary/binary_test.go

    		B foo
    		C Struct
    	}
    
    	testcases := []struct {
    		val  any
    		want int
    	}{
    		{new(foo), 1},
    		{new([1]foo), 0},
    		{make([]foo, 1), 0},
    		{new(bar), 1},
    		{new(bar), 0},
    		{new(struct{ A Struct }), 1},
    		{new(struct{ A Struct }), 0},
    		{new([1]struct{ A Struct }), 0},
    		{make([]struct{ A Struct }, 1), 0},
    	}
    
    	for _, tc := range testcases {
    		if Size(tc.val) == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    		},
    	}
    
    	for k, testCase := range testCases {
    		req, _ := http.NewRequest("GET", "/", nil)
    		if !testCase.Insecure {
    			req.TLS = &tls.ConnectionState{PeerCertificates: testCase.Certs}
    		}
    
    		// this effectively tests the simple dynamic verify function.
    		a := New(testCase.Opts, testCase.User)
    
    		resp, ok, err := a.AuthenticateRequest(req)
    
    		if testCase.ExpectErr && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top