Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,718 for testPass (0.22 sec)

  1. pkg/registry/discovery/endpointslice/strategy_test.go

    				},
    			},
    		},
    	}
    
    	for _, testcase := range testcases {
    		t.Run(testcase.name, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.TopologyAwareHints, testcase.hintsGateEnabled)
    
    			dropDisabledFieldsOnUpdate(testcase.oldEPS, testcase.newEPS)
    			if !apiequality.Semantic.DeepEqual(testcase.newEPS, testcase.expectedEPS) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/matcher/string_test.go

    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    )
    
    type testCase struct {
    	name   string
    	v      string
    	prefix string
    	want   *matcher.StringMatcher
    }
    
    func TestStringMatcherWithPrefix(t *testing.T) {
    	testCases := []testCase{
    		{
    			name:   "wildcardAsRequired",
    			v:      "*",
    			prefix: "abc",
    			want:   StringMatcherRegex(".+"),
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 17 22:42:11 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/upgrade_test.go

    			shouldError:      false,
    		},
    	}
    
    	for i, testCase := range testCases {
    		server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    			upgrader := NewResponseUpgrader()
    			conn := upgrader.UpgradeResponse(w, req, nil)
    			haveErr := conn == nil
    			if e, a := testCase.shouldError, haveErr; e != a {
    				t.Fatalf("%d: expected shouldErr=%t, got %t", i, testCase.shouldError, haveErr)
    			}
    			if haveErr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 20:10:42 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/nodeunschedulable/node_unschedulable_test.go

    				},
    			},
    			expectedHint: framework.Queue,
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			logger, _ := ktesting.NewTestContext(t)
    			pl := &NodeUnschedulable{}
    			got, err := pl.isSchedulableAfterNodeChange(logger, testCase.pod, testCase.oldObj, testCase.newObj)
    			if err != nil && !testCase.expectedErr {
    				t.Errorf("unexpected error: %v", err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 16 12:50:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/options/api_enablement_test.go

    	testGroupRegistry := fakeGroupRegistry{}
    
    	for _, testcase := range testCases {
    		t.Run(testcase.name, func(t *testing.T) {
    			errs := testcase.testOptions.Validate(testGroupRegistry)
    			if len(testcase.expectErr) != 0 && !strings.Contains(utilerrors.NewAggregate(errs).Error(), testcase.expectErr) {
    				t.Errorf("got err: %v, expected err: %s", errs, testcase.expectErr)
    			}
    
    			if len(testcase.expectErr) == 0 && len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 09 07:30:43 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  6. internal/config/identity/openid/jwt_test.go

    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			claims := map[string]interface{}{}
    			claims["exp"] = testCase.exp
    			err := updateClaimsExpiry(testCase.dsecs, claims)
    			if err != nil && !testCase.expectedFailure {
    				t.Errorf("Expected success, got failure %s", err)
    			}
    			if err == nil && testCase.expectedFailure {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. internal/hash/reader_test.go

    			success:    false,
    		},
    	}
    
    	for i, testCase := range testCases {
    		t.Run(fmt.Sprintf("case-%d", i+1), func(t *testing.T) {
    			_, err := NewReader(context.Background(), testCase.src, testCase.size, testCase.md5hex, testCase.sha256hex, testCase.actualSize)
    			if err != nil && testCase.success {
    				t.Errorf("Test %q: Expected success, but got error %s instead", testCase.desc, err)
    			}
    			if err == nil && !testCase.success {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. internal/disk/stat_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp("", "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    			tmpfile.WriteString(testCase.stat)
    			tmpfile.Sync()
    			tmpfile.Close()
    
    			iostats, err := readDriveStats(tmpfile.Name())
    			if err != nil && !testCase.expectErr {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. internal/amztime/iso8601_time_test.go

    			expectedOutput: "2009-11-13T04:51:01.941Z",
    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.expectedOutput, func(t *testing.T) {
    			gotOutput := ISO8601Format(testCase.date)
    			t.Log("Go", testCase.date.Format(iso8601TimeFormat))
    			if gotOutput != testCase.expectedOutput {
    				t.Errorf("Expected %s, got %s", testCase.expectedOutput, gotOutput)
    			}
    		})
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Dec 12 18:28:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. internal/http/listener_test.go

    	}
    
    	for testIdx, testCase := range testCases {
    		listener, listenErrs := newHTTPListener(context.Background(),
    			testCase.serverAddrs,
    			TCPOptions{},
    		)
    		for i, expectedListenErr := range testCase.expectedListenErrs {
    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top