- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for NewTestPlugin (0.18 sec)
-
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) -
pkg/volume/plugins_test.go
return ReconstructedVolume{}, nil } func newTestPlugin() []VolumePlugin { return []VolumePlugin{&testPlugins{}} } func TestVolumePluginMgrFunc(t *testing.T) { vpm := VolumePluginMgr{} var prober DynamicPluginProber = nil // TODO (#51147) inject mock vpm.InitPlugins(newTestPlugin(), prober, nil) plug, err := vpm.FindPluginByName(testPluginName) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/volume/csi/csi_mounter_test.go
return fmt.Errorf("failed to save volume info file: %s", err) } return nil } func TestMounterGetPath(t *testing.T) { plug, tmpDir := newTestPlugin(t, nil) defer os.RemoveAll(tmpDir) // TODO (vladimirvivien) specName with slashes will not work testCases := []struct { name string specVolumeName string path string }{ {
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_attacher_test.go
getTestCSIDriver("nil", nil, nil, nil), &v1.Node{ ObjectMeta: metav1.ObjectMeta{ Name: "fakeNode", }, Spec: v1.NodeSpec{}, }, ) plug, tmpDir := newTestPlugin(t, fakeClient) defer os.RemoveAll(tmpDir) attacher, err := plug.NewAttacher() if err != nil { t.Fatalf("failed to create new attacher: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 58.1K bytes - Viewed (0) -
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) -
pkg/scheduler/framework/runtime/framework_test.go
type PluginNotImplementingScore struct{} func (pl *PluginNotImplementingScore) Name() string { return pluginNotImplementingScore } func newTestPlugin(_ context.Context, injArgs runtime.Object, f framework.Handle) (framework.Plugin, error) { return &TestPlugin{name: testPlugin}, nil } // TestPlugin implements all Plugin interfaces. type TestPlugin struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go
// TestPlugin returns Error status when trying to `AddPod` or `RemovePod` on the nodes which have the {k,v} label pair defined on the nodes. type TestPlugin struct { name string } func newTestPlugin(_ context.Context, injArgs runtime.Object, f framework.Handle) (framework.Plugin, error) { return &TestPlugin{name: "test-plugin"}, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 82.8K bytes - Viewed (0)