- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for setupClient (0.12 sec)
-
cmd/kubeadm/app/util/apiclient/idempotency_test.go
os.Exit(exitVal) } func TestCreateOrUpdateConfigMap(t *testing.T) { tests := []struct { name string setupClient func(*clientsetfake.Clientset) expectedError bool }{ { name: "create configmap success", setupClient: func(client *clientsetfake.Clientset) { client.PrependReactor("create", "configmaps", func(clientgotesting.Action) (bool, runtime.Object, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 11:14:32 UTC 2024 - 33.2K bytes - Viewed (0) -
pkg/volume/csi/csi_block_test.go
if err != nil { t.Fatalf("Failed to make a new Mapper: %v", err) } pvName := pv.GetName() nodeName := string(plug.host.GetNodeName()) csiMapper.csiClient = setupClient(t, true) attachID := getAttachmentName(csiMapper.volumeID, string(csiMapper.driverName), string(nodeName)) attachment := makeTestAttachment(attachID, nodeName, pvName) attachment.Status.Attached = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 26.5K bytes - Viewed (0) -
pkg/volume/csi/csi_mounter_test.go
t.Fatalf("failed to make a new Mounter: %v", err) } if mounter == nil { t.Fatal("failed to create CSI mounter") } csiMounter := mounter.(*csiMountMgr) csiMounter.csiClient = setupClient(t, true) attachID := getAttachmentName(csiMounter.volumeID, string(csiMounter.driverName), string(plug.host.GetNodeName())) attachment := &storage.VolumeAttachment{ ObjectMeta: meta.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 50.1K bytes - Viewed (0) -
pkg/volume/csi/csi_test.go
ProbeVolumePlugins(), "fakeNode", csiDriverInformer.Lister(), volumeAttachmentInformer.Lister(), ) attachDetachPlugMgr := attachDetachVolumeHost.GetPluginMgr() csiClient := setupClient(t, true) volSpec := test.specFunc(test.specName, test.driver, test.volName) pod := test.podFunc() attachName := getAttachmentName(test.volName, test.driver, string(attachDetachVolumeHost.GetNodeName()))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 15:55:13 UTC 2022 - 21.1K bytes - Viewed (0) -
pkg/volume/csi/csi_client_test.go
resp, err := c.nodeClient.NodeGetCapabilities(ctx, req) if err != nil { return []*csipbv1.NodeServiceCapability{}, err } return resp.GetCapabilities(), nil } func setupClient(t *testing.T, stageUnstageSet bool) csiClient { return newFakeCsiDriverClient(t, stageUnstageSet) } func setupClientWithExpansion(t *testing.T, stageUnstageSet bool, expansionSet bool) csiClient {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.9K bytes - Viewed (0) -
pkg/volume/csi/csi_attacher_test.go
if err0 != nil { t.Fatalf("failed to create new attacher: %v", err0) } csiAttacher := getCsiAttacherFromVolumeAttacher(attacher, tc.watchTimeout) csiAttacher.csiClient = setupClient(t, tc.stageUnstageSet) if tc.deviceMountPath != "" { tc.deviceMountPath = filepath.Join(tmpDir, tc.deviceMountPath) } // Add the volume to NodeStagedVolumes
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 58.1K bytes - Viewed (0)