- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 108 for expectAction (0.95 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) -
pkg/volume/util/subpath/subpath_linux_test.go
} logActions := fm.GetLog() if len(test.expectAction) == 0 && len(logActions) > 0 { t.Errorf("test %q failed: expected no actions, got %v", test.name, logActions) } if len(test.expectAction) > 0 { foundMatchingAction := false testAction := test.expectAction[0] for _, action := range logActions { if action.Action == testAction.Action {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 10 16:52:55 UTC 2021 - 37.3K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/controller/repairip_test.go
for _, ip := range test.expectedIPs { _, err := r.ipAddressLister.Get(ip) if err != nil { t.Errorf("Unexpected error trying to get IPAddress %s object: %v", ip, err) } } expectAction(t, c.Actions(), test.actions) expectEvents(t, recorder.Events, test.events) }) } } func TestRepairIPAddress_syncIPAddress(t *testing.T) { tests := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 20.3K bytes - Viewed (0) -
pkg/controller/servicecidrs/servicecidrs_controller_test.go
// so we skup the errors and only assert on the actions // https://github.com/kubernetes/kubernetes/issues/99953 _ = controller.sync(tCtx, tc.cidrSynced) expectAction(t, client.Actions(), tc.actions) }) } } func makeServiceCIDR(name, primary, secondary string) *networkingapiv1alpha1.ServiceCIDR { serviceCIDR := &networkingapiv1alpha1.ServiceCIDR{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 22K 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) -
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)