- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AssertExpectations (0.18 sec)
-
cni/pkg/nodeagent/server_test.go
m := getFakeDPWithIPSet(server, fakeClientSet, set) expectPodAddedToIPSet(fakeIPSetDeps, podIP, pod.ObjectMeta) err := m.AddPodToMesh(fakeCtx, pod, podIPs, "") assert.NoError(t, err) fakeIPSetDeps.AssertExpectations(t) pod, err = fakeClientSet.CoreV1().Pods("test").Get(fakeCtx, "test", metav1.GetOptions{}) assert.NoError(t, err) assert.Equal(t, len(pod.Annotations), 1)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 18.7K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
types.MergePatchType, labelsPatch, metav1.PatchOptions{}) assert.NoError(t, err) waitForMockCalls() assertPodAnnotated(t, client, pod) // Assert expected calls actually made fs.AssertExpectations(t) } func TestExistingPodAddedWhenDualStack(t *testing.T) { setupLogging() NodeName = "testnode" ctx, cancel := context.WithCancel(context.Background()) defer cancel() pod := &corev1.Pod{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 22.1K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
// Push it thru the handler pluginServer.ReconcileCNIAddEvent(ctx, addEvent) waitForMockCalls() assertPodAnnotated(t, client, pod) // Assert expected calls actually made fs.AssertExpectations(t) } func TestGetPodWithRetry(t *testing.T) { fakePodIP := "11.1.1.12" setupLogging() NodeName = "testnode" ctx, cancel := context.WithCancel(context.Background()) defer cancel()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0)