Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for successOutput (0.3 sec)

  1. pkg/volume/flexvolume/plugin_test.go

    	"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{
    		Status:     StatusSuccess,
    		VolumeName: name,
    	})
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 21 06:54:44 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  2. pkg/volume/flexvolume/mounter_test.go

    	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",
    				optionKeyPodNamespace:       "my-ns",
    				optionKeyPodUID:             "my-uid",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  3. pkg/volume/flexvolume/common_test.go

    	return func() ([]byte, []byte, error) {
    		bytes, err := json.Marshal(result)
    		if err != nil {
    			panic("Unable to marshal result: " + err.Error())
    		}
    		return bytes, nil, nil
    	}
    }
    
    func successOutput() exectesting.FakeAction {
    	return fakeResultOutput(&DriverStatus{StatusSuccess, "", "", "", true, nil, 0})
    }
    
    func notSupportedOutput() 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)
Back to top