From a24b114af3aec0430fd27f8bbf460cfa396ae274 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Wed, 25 Jan 2017 15:46:58 -0800 Subject: Add 'force' parameter in remove_volume Signed-off-by: Joffrey F --- tests/integration/api_volume_test.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/integration/api_volume_test.py') diff --git a/tests/integration/api_volume_test.py b/tests/integration/api_volume_test.py index bc97f46..4bfc672 100644 --- a/tests/integration/api_volume_test.py +++ b/tests/integration/api_volume_test.py @@ -49,6 +49,13 @@ class TestVolumes(BaseAPIIntegrationTest): self.client.create_volume(name) self.client.remove_volume(name) + @requires_api_version('1.25') + def test_force_remove_volume(self): + name = 'shootthebullet' + self.tmp_volumes.append(name) + self.client.create_volume(name) + self.client.remove_volume(name, force=True) + def test_remove_nonexistent_volume(self): name = 'shootthebullet' with pytest.raises(docker.errors.NotFound): -- cgit v1.2.1