- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for expectedActions (0.31 sec)
-
pkg/controller/serviceaccount/tokens_controller_test.go
for i, action := range actions { if len(tc.ExpectedActions) < i+1 { t.Errorf("%s: %d unexpected actions: %+v", k, len(actions)-len(tc.ExpectedActions), actions[i:]) break } expectedAction := tc.ExpectedActions[i] if !reflect.DeepEqual(expectedAction, action) { t.Errorf("%s:\nExpected:\n%s\ngot:\n%s", k, dump.Pretty(expectedAction), dump.Pretty(action)) continue } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 21.5K bytes - Viewed (0) -
pkg/controlplane/controller/legacytokentracking/controller_test.go
nextCreateAt []time.Time clientObjects []runtime.Object existingConfigMap *corev1.ConfigMap expectedErr error expectedActions []core.Action }{ { name: "create configmap [no cache, no live object]", clientObjects: []runtime.Object{}, expectedActions: []core.Action{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 19 17:33:34 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/controller/volume/pvcprotection/pvc_protection_controller_test.go
} actions := client.Actions() for i, action := range actions { if len(test.expectedActions) < i+1 { t.Errorf("Test %q: %d unexpected actions: %+v", test.name, len(actions)-len(test.expectedActions), dump.Pretty(actions[i:])) break } expectedAction := test.expectedActions[i] if !reflect.DeepEqual(expectedAction, action) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 15.5K bytes - Viewed (0) -
pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner_test.go
if len(actions) != len(tc.ExpectedActions) { t.Fatalf("got %d actions, wanted %d actions", len(actions), len(tc.ExpectedActions)) } for i, action := range actions { if len(tc.ExpectedActions) < i+1 { t.Errorf("%s: %d unexpected actions: %+v", k, len(actions)-len(tc.ExpectedActions), actions[i:]) break } expectedAction := tc.ExpectedActions[i]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 03:52:06 UTC 2023 - 21.1K bytes - Viewed (0) -
security/pkg/k8s/configutil_test.go
} for i, action := range actual { expectedAction := expected[i] verb := expectedAction.GetVerb() resource := expectedAction.GetResource().Resource if !action.Matches(verb, resource) { return fmt.Errorf("unexpected %dth action, want \n%+v but got \n%+v\n%v", i, expectedAction, action, cmp.Diff(expectedAction, action)) } } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 08 21:58:25 UTC 2024 - 13K bytes - Viewed (0) -
pkg/controller/volume/pvprotection/pv_protection_controller_test.go
updatedPV *v1.PersistentVolume // List of expected kubeclient actions that should happen during the // test. expectedActions []clienttesting.Action }{ // PV events // { name: "PV without finalizer -> finalizer is added", updatedPV: pv(), expectedActions: []clienttesting.Action{ clienttesting.NewUpdateAction(pvVer, "", withProtectionFinalizer(pv())), }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 7.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go
"/apis/foo-group/foo-version/namespaces/{namespace}/foos": {expectNamespaceParam: true, expectNameParam: false, expectedActions: sets.NewString("post", "list", "deletecollection")}, "/apis/foo-group/foo-version/namespaces/{namespace}/foos/{name}": {expectNamespaceParam: true, expectNameParam: true, expectedActions: sets.NewString("get", "put", "patch", "delete")},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 26.2K bytes - Viewed (0) -
pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go
if len(fakeClient.Actions()) != 0 { t.Fatalf("unexpected actions %#v", fakeClient.Actions()) } return } expectedActions := 1 if !serverSideApplyEnabled { expectedActions = 2 } if len(fakeClient.Actions()) != expectedActions { t.Fatalf("unexpected actions %#v", fakeClient.Actions()) } action := fakeClient.Actions()[0]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 9K bytes - Viewed (0) -
pkg/kubelet/kubelet_node_status_test.go
return } // patch, then patch, get, patch, get, patch, ... up to initial patch + nodeStatusUpdateRetry patches expectedActions := 2*tc.wantPatches - 2 if tc.wantPatches == 1 { expectedActions = 1 } require.Len(t, actions, expectedActions) for i, action := range actions { if i%2 == 0 && i > 0 { require.IsType(t, core.GetActionImpl{}, action) continue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 19:23:19 UTC 2024 - 115.8K bytes - Viewed (0) -
pkg/kubelet/status/status_manager_test.go
} } func verifyActions(t *testing.T, manager *manager, expectedActions []core.Action) { t.Helper() manager.consumeUpdates() actions := manager.kubeClient.(*fake.Clientset).Actions() defer manager.kubeClient.(*fake.Clientset).ClearActions() if len(actions) != len(expectedActions) { t.Fatalf("unexpected actions: %s", cmp.Diff(expectedActions, actions)) } for i := 0; i < len(actions); i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 68.1K bytes - Viewed (0)