Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Test_minioEnvironFromFile (0.26 sec)

  1. cmd/common-main_test.go

    				t.Error(errors.New("expected error, found success"))
    			}
    			if value != testCase.expectedValue {
    				t.Errorf("Expected %s, got %s", testCase.expectedValue, value)
    			}
    		})
    	}
    }
    
    func Test_minioEnvironFromFile(t *testing.T) {
    	testCases := []struct {
    		content      string
    		expectedErr  bool
    		expectedEkvs []envKV
    	}{
    		{
    			`
    export MINIO_ROOT_USER=minio
    export MINIO_ROOT_PASSWORD=minio123`,
    			false,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top