16
16
Name : "tiborvass/sample-volume-plugin" ,
17
17
Tag : "latest" ,
18
18
Active : true ,
19
- Settings : PluginSetting {
19
+ Settings : PluginSettings {
20
20
Env : []string {"DEBUG=0" },
21
21
Args : nil ,
22
22
Devices : nil ,
@@ -175,7 +175,7 @@ func TestListPlugins(t *testing.T) {
175
175
t .Fatal (err )
176
176
}
177
177
client := newTestClient (& FakeRoundTripper {message : jsonPlugins , status : http .StatusOK })
178
- pluginDetails , err := client .ListPlugins ()
178
+ pluginDetails , err := client .ListPlugins (context . Background () )
179
179
if err != nil {
180
180
t .Fatal (err )
181
181
}
@@ -196,7 +196,7 @@ func TestGetPluginPrivileges(t *testing.T) {
196
196
Description : "" ,
197
197
Value : []string {"host" },
198
198
}}
199
- pluginPrivileges , err := client .GetPluginPrivileges (name )
199
+ pluginPrivileges , err := client .GetPluginPrivileges (name , context . Background () )
200
200
if err != nil {
201
201
t .Fatal (err )
202
202
}
@@ -216,10 +216,11 @@ func TestInstallPlugins(t *testing.T) {
216
216
},
217
217
},
218
218
Context : context .Background (),
219
+ Auth : AuthConfiguration {},
219
220
}
220
- auth := AuthConfiguration {}
221
+
221
222
client := newTestClient (& FakeRoundTripper {message : "" , status : http .StatusOK })
222
- err := client .InstallPlugins (opts , auth )
223
+ err := client .InstallPlugins (opts )
223
224
if err != nil {
224
225
t .Fatal (err )
225
226
}
@@ -229,7 +230,7 @@ func TestInspectPlugin(t *testing.T) {
229
230
name := "test_plugin"
230
231
fakeRT := & FakeRoundTripper {message : jsonPluginDetail , status : http .StatusNoContent }
231
232
client := newTestClient (fakeRT )
232
- pluginPrivileges , err := client .InspectPlugins (name )
233
+ pluginPrivileges , err := client .InspectPlugins (name , context . Background () )
233
234
if err != nil {
234
235
t .Fatal (err )
235
236
}
0 commit comments