- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 316 for tc (0.16 sec)
-
pkg/controller/bootstrap/tokencleaner.go
func (tc *TokenCleaner) processNextWorkItem(ctx context.Context) bool { key, quit := tc.queue.Get() if quit { return false } defer tc.queue.Done(key) if err := tc.syncFunc(ctx, key); err != nil { tc.queue.AddRateLimited(key) utilruntime.HandleError(fmt.Errorf("Sync %v failed with : %v", key, err)) return true } tc.queue.Forget(key) return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 6.3K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { rnr, err := newInternal(tc.handler) assert.NoError(t, err) err = rnr.Add(tc.counterName) if tc.err != nil { assert.ErrorContains(t, err, tc.err.Error()) } else { assert.NoError(t, err) } // validate number of requests assert.Equal(t, tc.netlinkCalls, len(tc.handler.requests))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0) -
pilot/pkg/security/authz/model/generator_test.go
if err != nil { t.Errorf("both permission and principal returned error") } } else { _, err1 := tc.g.principal(tc.key, tc.value, tc.forTCP, false) _, err2 := tc.g.permission(tc.key, tc.value, tc.forTCP) if err1 == nil || err2 == nil { t.Fatalf("wanted error") } return } if diff := cmp.Diff(got, tc.want, protocmp.Transform()); diff != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 13K bytes - Viewed (0) -
pilot/pkg/networking/core/accesslog_test.go
tcp: &tcp.TcpProxy{}, class: networking.ListenerClassSidecarInbound, expected: &tcp.TcpProxy{}, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { b.setTCPAccessLog(tc.push, tc.proxy, tc.tcp, tc.class, nil) assert.Equal(t, tc.expected, tc.tcp) }) } } func TestSetHttpAccessLog(t *testing.T) { b := newAccessLogBuilder() env := newTestEnviroment()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:30 UTC 2024 - 19.9K bytes - Viewed (0) -
tests/integration/pilot/revisions/revision_tag_test.go
baseArgs := []string{"tag"} for _, tc := range tcs { t.NewSubTest(tc.name).Run(func(t framework.TestContext) { tagSetArgs := append(baseArgs, "set", tc.tag, "--revision", tc.revision, "--skip-confirmation", "--overwrite") tagSetArgs = append(tagSetArgs, "--manifests", filepath.Join(env.IstioSrc, "manifests")) tagRemoveArgs := append(baseArgs, "remove", tc.tag, "-y") _, cmdErr, _ := istioCtl.Invoke(tagSetArgs)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 4.2K bytes - Viewed (0) -
pkg/kubelet/util/swap/swap_util_test.go
{ name: "empty lines", procSwapsContent: ` `, expectedEnabled: false, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { isEnabled := isSwapOnAccordingToProcSwaps([]byte(tc.procSwapsContent)) if isEnabled != tc.expectedEnabled { t.Errorf("expected %v, got %v", tc.expectedEnabled, isEnabled) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 1.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/token_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { token := outputapiv1alpha3.BootstrapToken{ BootstrapToken: bootstraptokenv1.BootstrapToken{ Token: &bootstraptokenv1.BootstrapTokenString{ID: tc.id, Secret: tc.secret}, Description: tc.description, Usages: tc.usages, Groups: tc.extraGroups, }, } buf := bytes.Buffer{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 05:47:48 UTC 2024 - 13.6K bytes - Viewed (0) -
pkg/kubelet/volumemanager/reconciler/reconstruct_test.go
if !reflect.DeepEqual(sets.List(volumesFailedReconstruction), tc.expectedVolumesFailedReconstruction) { t.Errorf("Expected volumesFailedReconstruction:\n%v\n got:\n%v", tc.expectedVolumesFailedReconstruction, sets.List(volumesFailedReconstruction)) } if tc.verifyFunc != nil { if err := tc.verifyFunc(rcInstance, fakePlugin); err != nil { t.Errorf("Test %s failed: %v", tc.name, err) } } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.8K bytes - Viewed (0) -
pkg/kubelet/network/dns/dns_test.go
}, } for _, tc := range testCases { options := mergeDNSOptions(tc.existingDNSConfigOptions, tc.dnsConfigOptions) // Options order may be changed after conversion. if !sets.New[string](options...).Equal(sets.New[string](tc.expectedOptions...)) { t.Errorf("%s: mergeDNSOptions(%v, %v)=%v, want %v", tc.desc, tc.existingDNSConfigOptions, tc.dnsConfigOptions, options, tc.expectedOptions) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager_test.go
assert.NoError(t, err) for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { // We don't validate the result. It was parsed with the json parser, we trust that. _, err = m.parseUserNsFileAndRecord(types.UID(tc.name), []byte(tc.file)) if (tc.success && err == nil) || (!tc.success && err != nil) { return } t.Errorf("expected success: %v but got error: %v", tc.success, err) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 14.6K bytes - Viewed (0)