- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for fakeRunner (0.61 sec)
-
pkg/volume/flexvolume/attacher_test.go
"k8s.io/kubernetes/test/utils/harness" ) func TestAttach(tt *testing.T) { t := harness.For(tt) defer t.Close() spec := fakeVolumeSpec() plugin, _ := testPlugin(t) plugin.runner = fakeRunner( assertDriverCall(t, notSupportedOutput(), attachCmd, specJSON(plugin, spec, nil), "localhost"), ) a, _ := plugin.NewAttacher() a.Attach(spec, "localhost") } func TestWaitForAttach(tt *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 03 23:29:42 UTC 2021 - 2.2K bytes - Viewed (0) -
pkg/volume/flexvolume/plugin_test.go
"testing" "k8s.io/kubernetes/test/utils/harness" "k8s.io/utils/exec/testing" ) func TestInit(tt *testing.T) { t := harness.For(tt) defer t.Close() plugin, _ := testPlugin(t) plugin.runner = fakeRunner( assertDriverCall(t, successOutput(), "init"), ) plugin.Init(plugin.host) } func fakeVolumeNameOutput(name string) testingexec.FakeAction { return fakeResultOutput(&DriverStatus{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 21 06:54:44 UTC 2019 - 1.5K bytes - Viewed (0) -
pkg/volume/flexvolume/detacher_test.go
plugin, _ := testPlugin(t) plugin.runner = fakeRunner( assertDriverCall(t, notSupportedOutput(), detachCmd, "sdx", "localhost"), ) d, _ := plugin.NewDetacher() d.Detach("sdx", "localhost") } func TestUnmountDevice(tt *testing.T) { t := harness.For(tt) defer t.Close() plugin, rootDir := testPlugin(t) plugin.runner = fakeRunner( assertDriverCall(t, notSupportedOutput(), unmountDeviceCmd,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 08 22:44:05 UTC 2018 - 1.2K bytes - Viewed (0) -
pkg/volume/flexvolume/mounter_test.go
Spec: v1.PodSpec{ ServiceAccountName: "my-sa", }, } mounter := mount.NewFakeMounter(nil) plugin, rootDir := testPlugin(t) plugin.unsupportedCommands = []string{"unsupportedCmd"} plugin.runner = fakeRunner( // first call without mounterArgs.FsGroup assertDriverCall(t, successOutput(), mountCmd, rootDir+"/mount-dir", specJSON(plugin, spec, map[string]string{ optionKeyPodName: "my-pod",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 17 04:51:24 UTC 2020 - 2.3K bytes - Viewed (0) -
pkg/volume/flexvolume/unmounter_test.go
) func TestTearDownAt(tt *testing.T) { t := harness.For(tt) defer t.Close() mounter := mount.NewFakeMounter(nil) plugin, rootDir := testPlugin(t) plugin.runner = fakeRunner( assertDriverCall(t, notSupportedOutput(), unmountCmd, rootDir+"/mount-dir"), ) u, _ := plugin.newUnmounterInternal("volName", types.UID("poduid"), mounter, plugin.runner) u.TearDownAt(rootDir + "/mount-dir")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 17 04:51:24 UTC 2020 - 1.1K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_test.go
fakeHTTP, fakeRunner, fakePodStatusProvider, nil) m.runner = lcHanlder // Configured and works as expected t.Run("PreStop-CMDExec", func(t *testing.T) { ctx := context.Background() testContainer.Lifecycle = cmdLifeCycle _ = m.killContainer(ctx, testPod, cID, "foo", "testKill", "", &gracePeriod, nil) if fakeRunner.Cmd[0] != cmdLifeCycle.PreStop.Exec.Command[0] {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 28K bytes - Viewed (0) -
pkg/volume/flexvolume/common_test.go
} return &exectesting.FakeCmd{ Argv: args, CombinedOutputScript: []exectesting.FakeAction{output}, } } } func fakeRunner(fakeCommands ...exectesting.FakeCommandAction) exec.Interface { return &exectesting.FakeExec{ CommandScript: fakeCommands, } } func fakeResultOutput(result interface{}) exectesting.FakeAction {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 3.5K bytes - Viewed (0)