1616 Name : "tiborvass/sample-volume-plugin" ,
1717 Tag : "latest" ,
1818 Active : true ,
19- Settings : PluginSetting {
19+ Settings : PluginSettings {
2020 Env : []string {"DEBUG=0" },
2121 Args : nil ,
2222 Devices : nil ,
@@ -175,7 +175,7 @@ func TestListPlugins(t *testing.T) {
175175 t .Fatal (err )
176176 }
177177 client := newTestClient (& FakeRoundTripper {message : jsonPlugins , status : http .StatusOK })
178- pluginDetails , err := client .ListPlugins ()
178+ pluginDetails , err := client .ListPlugins (context . Background () )
179179 if err != nil {
180180 t .Fatal (err )
181181 }
@@ -196,7 +196,7 @@ func TestGetPluginPrivileges(t *testing.T) {
196196 Description : "" ,
197197 Value : []string {"host" },
198198 }}
199- pluginPrivileges , err := client .GetPluginPrivileges (name )
199+ pluginPrivileges , err := client .GetPluginPrivileges (name , context . Background () )
200200 if err != nil {
201201 t .Fatal (err )
202202 }
@@ -216,10 +216,11 @@ func TestInstallPlugins(t *testing.T) {
216216 },
217217 },
218218 Context : context .Background (),
219+ Auth : AuthConfiguration {},
219220 }
220- auth := AuthConfiguration {}
221+
221222 client := newTestClient (& FakeRoundTripper {message : "" , status : http .StatusOK })
222- err := client .InstallPlugins (opts , auth )
223+ err := client .InstallPlugins (opts )
223224 if err != nil {
224225 t .Fatal (err )
225226 }
@@ -229,7 +230,7 @@ func TestInspectPlugin(t *testing.T) {
229230 name := "test_plugin"
230231 fakeRT := & FakeRoundTripper {message : jsonPluginDetail , status : http .StatusNoContent }
231232 client := newTestClient (fakeRT )
232- pluginPrivileges , err := client .InspectPlugins (name )
233+ pluginPrivileges , err := client .InspectPlugins (name , context . Background () )
233234 if err != nil {
234235 t .Fatal (err )
235236 }
0 commit comments