Skip to content

Commit

Permalink
test: use anonymous volume for prune (#3051)
Browse files Browse the repository at this point in the history
This is related to moby/moby#44216

Prunes will, by default, no longer prune named volumes, only anonymous ones.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 authored Oct 5, 2022
1 parent 923e067 commit bc0a5fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration/api_volume_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ def test_force_remove_volume(self):

@requires_api_version('1.25')
def test_prune_volumes(self):
name = 'hopelessmasquerade'
self.client.create_volume(name)
self.tmp_volumes.append(name)
v = self.client.create_volume()
self.tmp_volumes.append(v["Name"])
result = self.client.prune_volumes()
assert name in result['VolumesDeleted']
assert v["Name"] in result['VolumesDeleted']

def test_remove_nonexistent_volume(self):
name = 'shootthebullet'
Expand Down

0 comments on commit bc0a5fb

Please sign in to comment.