diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-03-05 10:51:34 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-04-28 22:39:04 +0200 |
commit | 3cae9fef16936e1c987443b6f2545c491f9a1019 (patch) | |
tree | 5915bdb47fa9d5bc8f1f323f2a9fb8e61d017e7e /integration/plugin | |
parent | 72938574568461ee5e544459a779c5fd4ac14103 (diff) | |
download | docker-3cae9fef16936e1c987443b6f2545c491f9a1019.tar.gz |
imports: remove "volumetypes" aliases for api/types/volume
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration/plugin')
-rw-r--r-- | integration/plugin/authz/authz_plugin_v2_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/integration/plugin/authz/authz_plugin_v2_test.go b/integration/plugin/authz/authz_plugin_v2_test.go index 173d0a5df6..17f1b2964d 100644 --- a/integration/plugin/authz/authz_plugin_v2_test.go +++ b/integration/plugin/authz/authz_plugin_v2_test.go @@ -13,7 +13,7 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" - volumetypes "github.com/docker/docker/api/types/volume" + "github.com/docker/docker/api/types/volume" "github.com/docker/docker/client" "github.com/docker/docker/integration/internal/container" "github.com/docker/docker/integration/internal/requirement" @@ -75,7 +75,7 @@ func TestAuthZPluginV2Disable(t *testing.T) { d.Restart(t, "--authorization-plugin="+authzPluginNameWithTag) d.LoadBusybox(t) - _, err = c.VolumeCreate(context.Background(), volumetypes.VolumeCreateBody{Driver: "local"}) + _, err = c.VolumeCreate(context.Background(), volume.VolumeCreateBody{Driver: "local"}) assert.Assert(t, err != nil) assert.Assert(t, strings.Contains(err.Error(), fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))) @@ -84,7 +84,7 @@ func TestAuthZPluginV2Disable(t *testing.T) { assert.NilError(t, err) // now test to see if the docker api works. - _, err = c.VolumeCreate(context.Background(), volumetypes.VolumeCreateBody{Driver: "local"}) + _, err = c.VolumeCreate(context.Background(), volume.VolumeCreateBody{Driver: "local"}) assert.NilError(t, err) } @@ -101,7 +101,7 @@ func TestAuthZPluginV2RejectVolumeRequests(t *testing.T) { // restart the daemon with the plugin d.Restart(t, "--authorization-plugin="+authzPluginNameWithTag) - _, err = c.VolumeCreate(context.Background(), volumetypes.VolumeCreateBody{Driver: "local"}) + _, err = c.VolumeCreate(context.Background(), volume.VolumeCreateBody{Driver: "local"}) assert.Assert(t, err != nil) assert.Assert(t, strings.Contains(err.Error(), fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))) |