Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for expectActions (0.17 sec)

  1. pkg/controller/endpointslice/endpointslice_controller_test.go

    		t.Errorf("Expected 2 more actions, got %d", len(client.Actions())-numActionsBefore)
    	}
    
    	// only 2 slices should match, 2 should be deleted, 1 should be updated as a placeholder
    	expectAction(t, client.Actions(), numActionsBefore, "update", "endpointslices")
    	expectAction(t, client.Actions(), numActionsBefore+1, "delete", "endpointslices")
    
    	// ensure cache mutation has not occurred
    	cmc.Check(t)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  2. pkg/controller/replicaset/replica_set_test.go

    	if err != nil {
    		t.Errorf("Couldn't get key for object %#v: %v", rsSpec, err)
    	}
    
    	// Lowering expectations should lead to a sync that creates a replica, however the
    	// fakePodControl error will prevent this, leaving expectations at 0, 0
    	manager.expectations.CreationObserved(logger, rsKey)
    	rsSpec.Status.Replicas = 1
    	rsSpec.Status.ReadyReplicas = 1
    	rsSpec.Status.AvailableReplicas = 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  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. 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)
  7. 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)
  8. 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)
  9. doc/next/6-stdlib/3-structs.md

    In this release, the only such type is
    [`HostLayout`](/pkg/structs#HostLayout)
    which indicates that a structure with a field of that
    type has a layout that conforms to host platform
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:06:02 UTC 2024
    - 356 bytes
    - Viewed (0)
  10. src/structs/hostlayout.go

    // license that can be found in the LICENSE file.
    
    package structs
    
    // HostLayout marks a struct as using host memory layout. A struct with a
    // field of type HostLayout will be laid out in memory according to host
    // expectations, generally following the host's C ABI.
    //
    // HostLayout does not affect layout within any other struct-typed fields
    // of the containing struct, nor does it affect layout of structs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top