- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for clienttesting (0.25 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/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) -
istioctl/pkg/wait/wait_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" dynamicfake "k8s.io/client-go/dynamic/fake" clienttesting "k8s.io/client-go/testing" "istio.io/istio/istioctl/pkg/cli" "istio.io/istio/pilot/pkg/xds" "istio.io/istio/pkg/config/schema/gvk" "istio.io/istio/pkg/config/schema/gvr" ) func TestWaitCmd(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 08:28:50 UTC 2024 - 6.8K bytes - Viewed (0)