Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for expectedCalls (0.28 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    		expectedAuthorized bool
    		expectedCalls      int
    	}
    
    	tests := []webhookCacheTestCase{
    		// server error and 429's retry
    		{name: "server errors retry", attr: aliceAttr, allow: false, statusCode: 500, expectedErr: true, expectedAuthorized: false, expectedCalls: 5},
    		{name: "429s retry", attr: aliceAttr, allow: false, statusCode: 429, expectedErr: true, expectedAuthorized: false, expectedCalls: 5},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

         */
        public BlockingHandler expectConcurrentAndBlock(String... expectedCalls) {
            return expectConcurrentAndBlock(expectedCalls.length, expectedCalls);
        }
    
        /**
    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. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildParallelIntegrationTest.groovy

                        }
                    }
                """
            }
            (1..maxWorkers).each {
                dependency "org.test:sub${it}:1.0"
                expectedCalls << 'sub' + it
            }
    
            server.expectConcurrent(expectedCalls)
    
            then:
            execute(buildA, "jar", "--parallel", "--max-workers=$maxWorkers")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    		expectedAuthorized bool
    		expectedCalls      int
    	}
    
    	tests := []webhookCacheTestCase{
    		// server error and 429's retry
    		{name: "server errors retry", attr: aliceAttr, allow: false, statusCode: 500, expectedErr: true, expectedAuthorized: false, expectedCalls: 5},
    		{name: "429s retry", attr: aliceAttr, allow: false, statusCode: 429, expectedErr: true, expectedAuthorized: false, expectedCalls: 5},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	}
    	expectedCalls := (int64(numPods) + deleteCollectionPageSize - 1) / deleteCollectionPageSize
    	if listCalls := atomic.LoadInt64(&storeWithCounter.listCounter); listCalls != expectedCalls {
    		t.Errorf("Unexpected number of list calls: %d, expected: %d", listCalls, expectedCalls)
    	}
    
    	for i := 0; i < numPods; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  6. security/pkg/credentialfetcher/plugin/gce_test.go

    		expectedToken string
    		expectedCall  int
    		expectedErr   error
    	}{
    		"get VM credential": {
    			jwt:           thirdPartyJwt,
    			jwtPath:       fmt.Sprintf("/tmp/security-pkg-credentialfetcher-plugin-gcetest-%s", uuid.New().String()),
    			expectedToken: thirdPartyJwt,
    			expectedCall:  1,
    		},
    		"jwt path not set": {
    			jwt:          thirdPartyJwt,
    			expectedCall: 1,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 03 18:09:59 UTC 2021
    - 10.1K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesDuringTheBuildFileSystemWatchingIntegrationTest.groovy

            assert getProjectFilesInVfs() == expected
        }
    
        private void runWithFileSystemWatchingAndMakeChangesWhen(String task, String expectedCall, Closure action) {
            def handle = withWatchFs().executer.withTasks(task).start()
            def userInput = server.expectAndBlock(expectedCall)
            userInput.waitForAllPendingCalls()
            action()
            userInput.releaseAll()
            result = handle.waitForFinish()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. operator/pkg/object/objects_test.go

    					t.Errorf("error reading test data file: %v", err)
    				}
    				expectedYAMLs := strings.Split(string(expectedYAML), "---")
    				if len(expectedYAMLs) != len(objects) {
    					t.Errorf("expected %d objects, got %d", len(expectedYAMLs), len(objects))
    				}
    				for i, obj := range objects {
    					assert.Equal(t, true, compareYAMLContent(string(obj.yaml), expectedYAMLs[i]))
    				}
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top