@@ -101,31 +101,31 @@ func TestPluginPathsAreValid(t *testing.T) {
101
101
expectOut string
102
102
}{
103
103
{
104
- name : "ensure no plugins found if no files begin with kubectl- prefix" ,
105
- pluginPaths : []string {tempDir },
106
- verifier : newFakePluginPathVerifier (),
107
- pluginFile : func () (* os.File , error ) {
104
+ name : "ensure no plugins found if no files begin with kubectl- prefix" ,
105
+ pluginPaths : []string {tempDir },
106
+ verifier : newFakePluginPathVerifier (),
107
+ pluginFile : func () (* os.File , error ) {
108
108
return ioutil .TempFile (tempDir , "notkubectl-" )
109
109
},
110
- expectErr : "error: unable to find any kubectl plugins in your PATH\n " ,
110
+ expectErr : "error: unable to find any kubectl plugins in your PATH\n " ,
111
111
},
112
112
{
113
- name : "ensure de-duplicated plugin-paths slice" ,
114
- pluginPaths : []string {tempDir , tempDir },
115
- verifier : newFakePluginPathVerifier (),
116
- pluginFile : func () (* os.File , error ) {
113
+ name : "ensure de-duplicated plugin-paths slice" ,
114
+ pluginPaths : []string {tempDir , tempDir },
115
+ verifier : newFakePluginPathVerifier (),
116
+ pluginFile : func () (* os.File , error ) {
117
117
return ioutil .TempFile (tempDir , "kubectl-" )
118
118
},
119
- expectOut : "The following compatible plugins are available:" ,
119
+ expectOut : "The following compatible plugins are available:" ,
120
120
},
121
121
{
122
- name : "ensure no errors when empty string or blank path are specified" ,
123
- pluginPaths : []string {tempDir , "" , " " },
124
- verifier : newFakePluginPathVerifier (),
125
- pluginFile : func () (* os.File , error ) {
122
+ name : "ensure no errors when empty string or blank path are specified" ,
123
+ pluginPaths : []string {tempDir , "" , " " },
124
+ verifier : newFakePluginPathVerifier (),
125
+ pluginFile : func () (* os.File , error ) {
126
126
return ioutil .TempFile (tempDir , "kubectl-" )
127
127
},
128
- expectOut : "The following compatible plugins are available:" ,
128
+ expectOut : "The following compatible plugins are available:" ,
129
129
},
130
130
}
131
131
0 commit comments