Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 81 for expectActions (0.31 sec)

  1. pkg/controller/controller_utils_test.go

    			assert.NoError(t, err, "Could not get expectations for rc, exists %v and err %v", exists, err)
    			assert.True(t, exists, "Could not get expectations for rc, exists %v and err %v", exists, err)
    
    			add, del := podExp.GetExpectations()
    			assert.Equal(t, test.wantPodExpectations[0], add, "Unexpected pod expectations %#v", podExp)
    			assert.Equal(t, test.wantPodExpectations[1], del, "Unexpected pod expectations %#v", podExp)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedSpecInterceptor.groovy

            }
            // Trigger validation failures early so they can still fail the test the usual way
            try {
                allResettableExpectationsOf(invocation.instance).forEach { expectations ->
                    expectations.resetExpectations()
                }
            } catch (Throwable ex) {
                expectedFailure(ex, feature)
                ignoreCleanupAssertionsOf(invocation)
                return true
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 13:10:05 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ResettableExpectations.java

    package org.gradle.test.fixtures;
    
    /**
     * Allows {@link org.gradle.integtests.fixtures.ToBeFixedForConfigurationCacheExtension} to verify
     * test expectations before cleanup so they can be silenced if necessary.
     */
    public interface ResettableExpectations {
        /**
         * Resets all pending expectations after verifying them.
         * Must throw when a verification fails.
         */
        void resetExpectations();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. releasenotes/notes/49539.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    issue:
      - 49539
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 07:24:47 UTC 2024
    - 270 bytes
    - Viewed (0)
  5. pkg/controller/replicaset/replica_set.go

    	}
    
    	logger.V(4).Info("Deleting", "replicaSet", klog.KObj(rs))
    
    	// Delete expectations for the ReplicaSet so if we create a new one with the same name it starts clean
    	rsc.expectations.DeleteExpectations(logger, key)
    
    	rsc.queue.Add(key)
    }
    
    // When a pod is created, enqueue the replica set that manages it and update its expectations.
    func (rsc *ReplicaSetController) addPod(logger klog.Logger, obj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  6. pilot/pkg/xds/mesh_network_test.go

    	networkView []string
    
    	labels map[string]string
    
    	proxy *model.Proxy
    
    	expectations         map[string][]string
    	weightedExpectations map[string][]xdstest.LocLbEpInfo
    }
    
    func (w *workload) Expect(target *workload, ips ...string) {
    	if w.expectations == nil {
    		w.expectations = map[string][]string{}
    	}
    	w.expectations[target.clusterName("")] = ips
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller.go

    	key, err := controller.KeyFunc(ds)
    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", ds, err))
    		return
    	}
    
    	// Delete expectations for the DaemonSet so if we create a new one with the same name it starts clean
    	dsc.expectations.DeleteExpectations(logger, key)
    
    	dsc.queue.Add(key)
    }
    
    // Run begins watching and syncing daemon sets.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  8. tests/integration/security/normalization_test.go

    	}
    	framework.NewTest(t).
    		Run(func(t framework.TestContext) {
    			cases := []struct {
    				name         string
    				ntype        meshconfig.MeshConfig_ProxyPathNormalization_NormalizationType
    				expectations []expect
    			}{
    				{
    					"None",
    					meshconfig.MeshConfig_ProxyPathNormalization_NONE,
    					[]expect{
    						{"/", "/"},
    						{"/app#foo", "/app"},
    						{"/app/", "/app/"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. pkg/controlplane/controller/defaultservicecidr/default_servicecidr_controller_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			client, controller := newController(t, tc.cidrs)
    			controller.sync()
    			expectAction(t, client.Actions(), tc.actions)
    		})
    	}
    }
    
    func expectAction(t *testing.T, actions []k8stesting.Action, expected [][]string) {
    	t.Helper()
    	if len(actions) != len(expected) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 14 23:31:58 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. pkg/controlplane/controller/systemnamespaces/system_namespaces_controller_test.go

    				create := action.(k8stesting.CreateAction)
    				namespaceInformer.Informer().GetIndexer().Add(create.GetObject())
    				return true, create.GetObject(), nil
    			})
    
    			controller.sync()
    
    			expectAction(t, clientset.Actions(), test.actions)
    			namespaces, err := controller.namespaceLister.List(labels.Everything())
    			if err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    
    			got := map[string]bool{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top