Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newTestPlugin (0.2 sec)

  1. pkg/volume/csi/csi_plugin_test.go

    	})
    }
    
    func TestPluginGetPluginName(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    	if plug.GetPluginName() != "kubernetes.io/csi" {
    		t.Errorf("unexpected plugin name %v", plug.GetPluginName())
    	}
    }
    
    func TestPluginGetVolumeName(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    	testCases := []struct {
    		name       string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_block_test.go

    	if err != nil {
    		t.Fatalf("Failed to create a fakeDriver: %v", err)
    	}
    
    	// after the driver is created, create the plugin. newTestPlugin waits for the informer to sync,
    	// such that csiMapper.SetUpDevice below sees the VolumeAttachment object in the lister.
    
    	plug, tmpDir := newTestPlugin(t, fakeClient)
    	defer os.RemoveAll(tmpDir)
    
    	csiMapper, _, _, err := prepareBlockMapperTest(plug, "test-pv", t)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  3. pkg/volume/util/operationexecutor/operation_generator_test.go

    }
    
    func initTestPlugins(t *testing.T, plugs []volume.VolumePlugin, pluginName string) (*volume.VolumePluginMgr, string) {
    	client := fakeclient.NewSimpleClientset()
    	pluginMgr, _, tmpDir := csitesting.NewTestPlugin(t, client)
    
    	err := pluginMgr.InitPlugins(plugs, nil, pluginMgr.Host)
    	if err != nil {
    		t.Fatalf("Can't init volume plugins: %v", err)
    	}
    
    	_, e := pluginMgr.FindPluginByName(pluginName)
    	if e != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top