- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for expectAction (0.16 sec)
-
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) -
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) -
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) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ArtifactResolutionExpectationSpec.groovy
/** * Setup expectation when resolving with module metadata * @param expectation */ void withModuleMetadata(@DelegatesTo(value = SingleArtifactResolutionResultSpec, strategy = Closure.DELEGATE_FIRST) Closure<?> expectation) { expectation.resolveStrategy = Closure.DELEGATE_FIRST expectation.delegate = withModuleMetadataSpec expectation() } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go
Type: "unsupported", }, }, }, endpoints: nil, clusterMode: expectation{error: true}, endpointMode: expectation{error: true}, }, { name: "missing service", services: nil, endpoints: nil, clusterMode: expectation{error: true}, endpointMode: expectation{error: true}, }, } for _, test := range tests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:27 UTC 2023 - 8.6K bytes - Viewed (0) -
pkg/controller/certificates/rootcacertpublisher/publisher_test.go
AddedNamespace *v1.Namespace UpdatedNamespace *v1.Namespace DeletedConfigMap *v1.ConfigMap UpdatedConfigMap *v1.ConfigMap ExpectActions []action }{ "create new namespace": { AddedNamespace: newNs, ExpectActions: []action{{verb: "create", name: RootCACertConfigMapName}}, }, "delete other configmap": { ExistingConfigMaps: []*v1.ConfigMap{otherConfigMap, caConfigMap},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:16 UTC 2023 - 7.9K bytes - Viewed (0) -
platforms/software/maven/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/maven/AbstractMavenPublishIntegTest.groovy
MavenArtifactResolutionExpectation expectation = new MavenArtifactResolutionExpectation(dependencyNotation, this) expectation.dependency = convertDependencyNotation(dependencyNotation) expectationSpec.resolveStrategy = Closure.DELEGATE_FIRST expectationSpec.delegate = expectation expectationSpec() expectation.validate() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 8.1K bytes - Viewed (0) -
platforms/software/ivy/src/testFixtures/groovy/org/gradle/api/publish/ivy/AbstractIvyPublishIntegTest.groovy
IvyArtifactResolutionExpectation expectation = new IvyArtifactResolutionExpectation(dependencyNotation) expectation.dependency = convertDependencyNotation(dependencyNotation) expectationSpec.resolveStrategy = Closure.DELEGATE_FIRST expectationSpec.delegate = expectation expectationSpec() expectation.validate() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 7.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/argposition_test.go
Line: 42, Column: 91, }, }, } for _, decl := range f.Decls { if fdecl, ok := decl.(*ast.FuncDecl); ok { ast.Walk(&Visitor{expectation, fset, t}, fdecl.Body) } } for ident, positions := range expectation { for _, position := range positions { if !position.Visited { t.Errorf("Position %d:%d missed for %s ident", position.Line, position.Column, ident) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 3.1K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ResourceHandlerWrapper.java
private final boolean autoRelease; private boolean started; private boolean received; ResourceHandlerWrapper(Lock lock, ResourceExpectation expectation, WaitPrecondition owner, boolean isAutoRelease) { this.lock = lock; handler = expectation.create(this); this.owner = owner; this.autoRelease = isAutoRelease; } public String getDisplayName() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.7K bytes - Viewed (0)