- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for clienttesting (0.29 sec)
-
pkg/controller/volume/pvprotection/pv_protection_controller_test.go
reactorfn: generateUpdateErrorFunc(t, 2 /* update fails twice*/), }, }, expectedActions: []clienttesting.Action{ // Fails clienttesting.NewUpdateAction(pvVer, "", deleted(pv())), // Fails too clienttesting.NewUpdateAction(pvVer, "", deleted(pv())), // Succeeds clienttesting.NewUpdateAction(pvVer, "", deleted(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) -
pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller_test.go
t.Log(dump.Pretty(action)) if action.Matches("create", "configmaps") { created = true obj := action.(clienttesting.CreateAction).GetObject().(*corev1.ConfigMap) ret[obj.Name] = obj } if action.Matches("update", "configmaps") { obj := action.(clienttesting.UpdateAction).GetObject().(*corev1.ConfigMap) ret[obj.Name] = obj } } return ret, created }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 14.6K bytes - Viewed (0) -
pkg/controller/volume/pvcprotection/pvc_protection_controller_test.go
}, }, expectedActions: []clienttesting.Action{ clienttesting.NewListAction(podGVR, podGVK, defaultNS, metav1.ListOptions{}), // Fails clienttesting.NewUpdateAction(pvcGVR, defaultNS, deleted(pvc())), clienttesting.NewListAction(podGVR, podGVK, defaultNS, metav1.ListOptions{}), // Fails too clienttesting.NewUpdateAction(pvcGVR, defaultNS, deleted(pvc())),
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/certificates/rootcacertpublisher/publisher_test.go
}, Data: map[string]string{"ca.crt": "fake"}, }, }, ExpectActions: func(t *testing.T, actions []clienttesting.Action) { if len(actions) != 1 { t.Fatal(actions) } if actions[0].GetVerb() != "update" { t.Fatal(actions) } actualObj := actions[0].(clienttesting.UpdateAction).GetObject() if actualObj.(*v1.ConfigMap).Annotations[DescriptionAnnotation] != Description {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:16 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultbinder/default_binder_test.go
client := fake.NewSimpleClientset(testPod) client.PrependReactor("create", "pods", func(action clienttesting.Action) (bool, runtime.Object, error) { if action.GetSubresource() != "binding" { return false, nil, nil } if tt.injectErr != nil { return true, nil, tt.injectErr } gotBinding = action.(clienttesting.CreateAction).GetObject().(*v1.Binding) return true, gotBinding, nil })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 23 02:17:34 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/kube/rpc_creds_test.go
"k8s.io/client-go/kubernetes/fake" clienttesting "k8s.io/client-go/testing" "istio.io/istio/pkg/test/util/retry" ) func Test_tokenSupplier_GetRequestMetadata(t *testing.T) { ctx := context.Background() cli := NewFakeClient() clientset := cli.Kube().(*fake.Clientset) clientset.PrependReactor("create", "serviceaccounts", func(action clienttesting.Action) (handled bool, ret runtime.Object, err error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 16 06:24:33 UTC 2022 - 2.4K bytes - Viewed (0) -
pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go
"k8s.io/apimachinery/pkg/util/yaml" rbacv1ac "k8s.io/client-go/applyconfigurations/rbac/v1" fakeclient "k8s.io/client-go/kubernetes/fake" rbaclisters "k8s.io/client-go/listers/rbac/v1" clienttesting "k8s.io/client-go/testing" "k8s.io/client-go/tools/cache" "k8s.io/kubernetes/pkg/controller" ) func TestSyncClusterRole(t *testing.T) { hammerRules := func() []rbacv1.PolicyRule {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
bindingGVR schema.GroupVersionResource policyGVK schema.GroupVersionKind bindingGVK schema.GroupVersionKind nativeTracker clienttesting.ObjectTracker policyAndBindingTracker clienttesting.ObjectTracker unstructuredTracker clienttesting.ObjectTracker } func NewPolicyTestContext[P, B runtime.Object, E Evaluator]( newPolicyAccessor func(P) PolicyAccessor, newBindingAccessor func(B) BindingAccessor,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0) -
pkg/scheduler/util/utils_test.go
actualPatchRequests := 0 var actualPatchData string cs := &clientsetfake.Clientset{} cs.AddReactor("patch", "pods", func(action clienttesting.Action) (bool, runtime.Object, error) { actualPatchRequests++ patch := action.(clienttesting.PatchAction) actualPatchData = string(patch.GetPatch()) // For this test, we don't care about the result of the patched pod, just that we got the expected
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 21 01:40:44 UTC 2023 - 14.5K bytes - Viewed (0) -
pkg/controller/podgc/gc_controller_test.go
actions := client.Actions() var patchAction clienttesting.PatchAction var deleteAction clienttesting.DeleteAction for _, action := range actions { if action.GetVerb() == "patch" { patchAction = action.(clienttesting.PatchAction) } if action.GetVerb() == "delete" { deleteAction = action.(clienttesting.DeleteAction) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 08:16:48 UTC 2024 - 29K bytes - Viewed (0)