- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for expectAction (0.4 sec)
-
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) -
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) -
src/internal/trace/testtrace/expectation.go
"regexp" "strconv" "strings" ) // Expectation represents the expected result of some operation. type Expectation struct { failure bool errorMatcher *regexp.Regexp } // ExpectSuccess returns an Expectation that trivially expects success. func ExpectSuccess() *Expectation { return new(Expectation) } // Check validates whether err conforms to the expectation. Returns // an error if it does not conform. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/proxy/util/nodeport_addresses_test.go
} return nil } func TestGetNodeIPs(t *testing.T) { type expectation struct { matchAll bool ips sets.Set[string] } testCases := []struct { name string cidrs []string itfAddrsPairs []InterfaceAddrsPair expected map[v1.IPFamily]expectation }{ { name: "IPv4 single", cidrs: []string{"10.20.30.0/24"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 13:25:06 UTC 2024 - 13.7K bytes - Viewed (0) -
src/internal/trace/testtrace/format.go
package testtrace import ( "bytes" "fmt" "internal/trace/raw" "internal/txtar" "io" ) // ParseFile parses a test file generated by the testgen package. func ParseFile(testPath string) (io.Reader, *Expectation, error) { ar, err := txtar.ParseFile(testPath) if err != nil { return nil, nil, fmt.Errorf("failed to read test file for %s: %v", testPath, err) } if len(ar.Files) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsFixture.groovy
modelsCreated(new ModelRequestExpectation(path, modelNames)) } void modelsCreated(ModelRequestExpectation expectation) { projectsConfigured(expectation.path) runsTasks = false loadsOnStore = false models.add(expectation) } void modelsQueriedAndNotPresent(String... paths) { for (path in paths) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 17.2K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheParallelTaskIntegrationTest.groovy
@Rule BlockingHttpServer server = new BlockingHttpServer() @Requires(value = IntegTestPreconditions.NotParallelExecutor, reason = """ Don't run in parallel mode, as the expectation for the setup build are incorrect and running in parallel does not really make any difference to the coverage """) def "runs tasks in different projects in parallel by default"() { server.start()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 7.2K bytes - Viewed (0) -
cmd/signature-v4-utils.go
// // According to // http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.20 // Expect header is always of form: // // Expect = "Expect" ":" 1#expectation // expectation = "100-continue" | expectation-extension // // So it safe to assume that '100-continue' is what would // be sent, for the time being keep this work around.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 9.1K bytes - Viewed (0) -
src/internal/runtime/exithook/hooks.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package exithook provides limited support for on-exit cleanup. // // CAREFUL! The expectation is that Add should only be called // from a safe context (e.g. not an error/panic path or signal // handler, preemption enabled, allocation allowed, write barriers // allowed, etc), and that the exit function F will be invoked under
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/kubelet/prober/prober_manager_test.go
if !ok { t.Fatalf("Missing expectation for test case: %v", c.Name) } if expected != *c.Started { t.Errorf("Unexpected startup for container %v: Expected %v but got %v", c.Name, expected, *c.Started) } } { expected, ok := tc.expectedReadiness[probeKey{testPodUID, c.Name, readiness}] if !ok { t.Fatalf("Missing expectation for test case: %v", c.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 18.8K bytes - Viewed (0)