Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for expectActions (0.27 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. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

            List<ResourceExpectation> expectations = new ArrayList<>();
            for (ExpectedRequest call : expectedCalls) {
                expectations.add((ResourceExpectation) call);
            }
            addNonBlockingHandler(expectations);
        }
    
        private void addNonBlockingHandler(final Collection<? extends ResourceExpectation> expectations) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy

            return new URI("sftp://${hostAddress}:${port}")
        }
    
        void allowAll() {
            expectations << new SftpAllowAll()
        }
    
        void allowInit() {
            expectations << new SftpAllow(SftpConstants.SSH_FXP_INIT)
        }
    
        void expectLstat(String path) {
            expectations << new SftpExpectOnePath(SftpConstants.SSH_FXP_LSTAT, "LSTAT", path)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectAllRequestsThenReleaseAll.java

        ExpectAllRequestsThenReleaseAll(Lock lock, int testId, Duration timeout, WaitPrecondition previous, Collection<? extends ResourceExpectation> expectations, Executor executor) {
            super(lock, testId, timeout, expectations.size(), previous, expectations, executor);
        }
    
        @Override
        void doReleaseAction(BlockingHttpServer.BlockingHandler handler, int yetToBeReceived) {
            handler.releaseAll();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.groovy

            try {
                if (failure != null) {
                    throw failure
                }
                for (ServerExpectation e in expectations) {
                    e.assertMet()
                }
            } finally {
                failure = null
                expectations.clear()
            }
        }
    
        @Override
        protected void after() {
            stop()
            resetExpectations()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. pkg/controller/controller_utils.go

    		if exp.Fulfilled() {
    			logger.V(4).Info("Controller expectations fulfilled", "expectations", exp)
    			return true
    		} else if exp.isExpired() {
    			logger.V(4).Info("Controller expectations expired", "expectations", exp)
    			return true
    		} else {
    			logger.V(4).Info("Controller still waiting on expectations", "expectations", exp)
    			return false
    		}
    	} else if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/derived/MultiProjectVariantResolutionIntegrationTest.groovy

                        @Internal
                        List<String> expectations = []
    
                        @TaskAction
                        void assertThat() {
                            logger.lifecycle 'Found files: {}', artifacts.files*.name
                            assert artifacts.files*.name == expectations
                        }
                    }
    
                    tasks.register('resolve', Resolve) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top