Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for tc (0.06 sec)

  1. pkg/proxy/nftables/proxier_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			name := servicePortEndpointChainNameBase(&tc.spn, tc.protocol, tc.endpoint)
    			if name != tc.expected {
    				t.Errorf("expected %q, got %q", tc.expected, name)
    			}
    		})
    	}
    }
    
    func TestProxier_OnServiceCIDRsChanged(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 173.5K bytes
    - Viewed (0)
  2. src/crypto/x509/verify_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			roots, intermediates, leaf := buildTrustGraph(t, tc.graph)
    			chains, err := leaf.Verify(VerifyOptions{
    				Roots:         roots,
    				Intermediates: intermediates,
    			})
    			if err != nil && err.Error() != tc.expectedErr {
    				t.Fatalf("unexpected error: got %q, want %q", err, tc.expectedErr)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  3. pkg/proxy/ipvs/proxier_test.go

    			ok:           false,
    		},
    	}
    
    	for _, tc := range testCases {
    		ipvs := &fakeIpvs{tc.ipvsErr, false}
    		versioner := &fakeIPSetVersioner{version: tc.ipsetVersion, err: tc.ipsetErr}
    		err := CanUseIPVSProxier(ctx, ipvs, versioner, tc.scheduler)
    		if (err == nil) != tc.ok {
    			t.Errorf("Case [%s], expect %v, got err: %v", tc.name, tc.ok, err)
    		}
    	}
    }
    
    func TestGetNodeIPs(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  4. pkg/apis/batch/validation/validation_test.go

    	for k, tc := range cases {
    		t.Run(k, func(t *testing.T) {
    			tc.old.ResourceVersion = "1"
    			update := tc.old.DeepCopy()
    			tc.update(update)
    			errs := ValidateJobUpdate(update, &tc.old, tc.opts)
    			var wantErrs field.ErrorList
    			if tc.err != nil {
    				wantErrs = append(wantErrs, tc.err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch_test.go

    						return
    					}
    				})
    
    				t.Run(schema.Name()+"/ThreeWay", func(t *testing.T) {
    					threeWay, err := CreateThreeWayMergePatch([]byte(tc.Original), []byte(tc.Modified), []byte(tc.Current), schema, false)
    					if err != nil {
    						if len(tc.ExpectedThreeWayErr) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 130.4K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/cluster_builder_test.go

    			result := getTLSContext(t, ec.cluster)
    			if diff := cmp.Diff(result, tc.expectTLSContext, protocmp.Transform()); diff != "" {
    				t.Errorf("got diff: `%v", diff)
    			}
    
    			if tc.enableAutoSni {
    				if tc.destRule.GetTrafficPolicy().GetTls().Sni == "" {
    					assert.Equal(t, ec.httpProtocolOptions.UpstreamHttpProtocolOptions.AutoSni, true)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/runtime/framework_test.go

    			},
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			fw, err := NewFramework(ctx, registry, &config.KubeSchedulerProfile{Plugins: tc.plugins})
    			if err != nil {
    				if tc.wantErr == "" || !strings.Contains(err.Error(), tc.wantErr) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/cluster_test.go

    			}
    			clusters, removed, delta := cg.DeltaClusters(proxy, tc.configUpdated,
    				&model.WatchedResource{ResourceNames: tc.watchedResourceNames})
    			if delta != tc.usedDelta {
    				t.Errorf("un expected delta, want %v got %v", tc.usedDelta, delta)
    			}
    			assert.Equal(t, removed, tc.removedClusters)
    			assert.Equal(t, xdstest.MapKeys(xdstest.ExtractClusters(clusters)), tc.expectedClusters)
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/gateway_test.go

    				tc.routeName, tc.proxyConfig, tc.transportProtocol, cg.PushContext())
    			if diff := cmp.Diff(tc.result.tlsContext, ret.tlsContext, protocmp.Transform()); diff != "" {
    				t.Errorf("got diff in tls context: %v", diff)
    			}
    			if !reflect.DeepEqual(tc.result.httpOpts, ret.httpOpts) {
    				t.Errorf("expecting httpopts:\n %+v \nbut got:\n %+v", tc.result.httpOpts, ret.httpOpts)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 144K bytes
    - Viewed (0)
  10. pkg/apis/apps/validation/validation_test.go

    		isValid:    true,
    	},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := ValidateControllerRevisionUpdate(&tc.newHistory, &tc.oldHistory)
    			if tc.isValid && len(errs) > 0 {
    				t.Errorf("%v: unexpected error: %v", tc.name, errs)
    			}
    			if !tc.isValid && len(errs) == 0 {
    				t.Errorf("%v: unexpected non-error", tc.name)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
Back to top