- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for Equal (0.14 sec)
-
cmd/erasure-metadata.go
} // ReplicationInfoEquals returns true if server-side replication related fields are equal, false otherwise. func (fi FileInfo) ReplicationInfoEquals(ofi FileInfo) bool { switch { case fi.MarkDeleted != ofi.MarkDeleted, !fi.ReplicationState.Equal(ofi.ReplicationState): return false } return true } // objectPartIndex - returns the index of matching object part number.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 28 17:53:50 GMT 2024 - 19.2K bytes - Viewed (1) -
cni/pkg/nodeagent/net_test.go
err := netServer.RemovePodFromMesh(ctx, pod) assert.NoError(t, err) assert.Equal(t, ztunnelServer.deletedPods.Load(), 1) assert.Equal(t, nlDeps.DelInpodMarkIPRuleCnt.Load(), 1) assert.Equal(t, nlDeps.DelLoopbackRoutesCnt.Load(), 1) // make sure the uid was taken from cache and netns closed netns := fixture.podNsMap.Take(string(pod.UID)) assert.Equal(t, nil, netns) // run gc to clean up ns:
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
testDoAddRun(t, cniConf, testNSName, pod, ns) wasCalled := serverClose() // Pod in namespace with enabled ambient label, should be added to mesh assert.Equal(t, wasCalled, true) } func TestCmdAddAmbientEnabledOnNSServerFails(t *testing.T) { url, serverClose := setupCNIEventClientWithMockServer(true) cniConf := buildMockConf(true, url)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 17.5K bytes - Viewed (0) -
cmd/post-policy_test.go
expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat)) // Add the bucket condition, only accept buckets equal to the one passed. bucketConditionStr := fmt.Sprintf(`["eq", "$bucket", "%s"]`, bucketName) // Add the key condition, only accept keys equal to the one passed. keyConditionStr := fmt.Sprintf(`["eq", "$key", "%s/upload.txt"]`, objectKey)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 19 16:45:54 GMT 2024 - 29.6K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
Netns: "/var/netns/foo", PodName: "pod-bingo", PodNamespace: "funkyns", } payload, _ := json.Marshal(valid) addEvent, err := processAddEvent(payload) assert.NoError(t, err) assert.Equal(t, valid, addEvent) } func TestProcessAddEventBadPayload(t *testing.T) { valid := CNIPluginAddEvent{ Netns: "/var/netns/foo", PodName: "pod-bingo", PodNamespace: "funkyns", }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu May 02 21:29:40 GMT 2024 - 5.4K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
}, }, }, expectedRevision: "test-anno", }, } for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.name), func(t *testing.T) { assert.Equal(t, c.expectedRevision, extractRevisionFromPod(c.pod)) }) } } func Test_getNamespaces(t *testing.T) { createNamespace := func(name string, labels map[string]string) *corev1.Namespace { return &corev1.Namespace{
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu May 02 21:29:40 GMT 2024 - 2.9K bytes - Viewed (0) -
cmd/metacache-entries.go
// check both fileInfo's have same number of versions, if not skip // the `other` entry. if len(eVers.versions) != len(oVers.versions) { eTime := eVers.latestModtime() oTime := oVers.latestModtime() if !eTime.Equal(oTime) { if eTime.After(oTime) { return e, false } return other, false } // Tiebreak on version count. if len(eVers.versions) > len(oVers.versions) { return e, false }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 19 16:43:43 GMT 2024 - 23.2K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
} handlers := setupHandlers(ctx, client, server, "istio-system") client.RunAndWait(ctx.Done()) disabledPod, err := handlers.GetPodIfAmbient(pod.Name, ns.Name) assert.NoError(t, err) assert.Equal(t, disabledPod, nil) } func TestAmbientEnabledReturnsErrorIfBogusNS(t *testing.T) { setupLogging() NodeName = "testnode" ctx, cancel := context.WithCancel(context.Background()) defer cancel()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 15.8K bytes - Viewed (0) -
cmd/site-replication.go
latestID = dID latestPeers = ps.Peers } } latestPeerName = info.Sites[latestID].Name for dID, ps := range info.PeerStates { // If latest peers ILM expiry flags are equal to current peer, no need to heal flagEqual := true for id, peer := range latestPeers { if !(ps.Peers[id].ReplicateILMExpiry == peer.ReplicateILMExpiry) { flagEqual = false break } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 01:09:56 GMT 2024 - 184.2K bytes - Viewed (1) -
cmd/storage-datatypes.go
return false } if fi.IsCompressed() != ofi.IsCompressed() { return false } if !fi.TransitionInfoEquals(ofi) { return false } if !fi.ModTime.Equal(ofi.ModTime) { return false } return fi.Erasure.Equal(ofi.Erasure) } // GetDataDir returns an expected dataDir given FileInfo // - deleteMarker returns "delete-marker" // - returns "legacy" if FileInfo is XLV1 and DataDir is
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 23 17:15:52 GMT 2024 - 15.3K bytes - Viewed (0)