Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
2981d013
Kaydet (Commit)
2981d013
authored
Ara 08, 2015
tarafından
Sumit Sahrawat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix remove_volume return value
Signed-off-by:
Sumit Sahrawat
<
sumit.sahrawat.apm13@iitbhu.ac.in
>
üst
bd948be7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
7 deletions
+3
-7
volume.py
docker/api/volume.py
+0
-1
api.md
docs/api.md
+1
-2
volume_test.py
tests/integration/volume_test.py
+1
-2
volume_test.py
tests/unit/volume_test.py
+1
-2
No files found.
docker/api/volume.py
Dosyayı görüntüle @
2981d013
...
...
@@ -33,4 +33,3 @@ class VolumeApiMixin(object):
url
=
self
.
_url
(
'/volumes/{0}'
,
name
)
resp
=
self
.
_delete
(
url
)
self
.
_raise_for_status
(
resp
)
return
True
docs/api.md
Dosyayı görüntüle @
2981d013
...
...
@@ -780,8 +780,7 @@ Remove a volume. Similar to the `docker volume rm` command.
*
name (str): The volume's name
**Returns**
(bool): True on successful removal. Failure will raise a
`docker.errors.APIError`
exception.
Failure to remove will raise a
`docker.errors.APIError`
exception.
## rename
...
...
tests/integration/volume_test.py
Dosyayı görüntüle @
2981d013
...
...
@@ -47,8 +47,7 @@ class TestVolumes(helpers.BaseTestCase):
name
=
'shootthebullet'
self
.
tmp_volumes
.
append
(
name
)
self
.
client
.
create_volume
(
name
)
result
=
self
.
client
.
remove_volume
(
name
)
self
.
assertTrue
(
result
)
self
.
client
.
remove_volume
(
name
)
def
test_remove_nonexistent_volume
(
self
):
name
=
'shootthebullet'
...
...
tests/unit/volume_test.py
Dosyayı görüntüle @
2981d013
...
...
@@ -89,8 +89,7 @@ class VolumeTest(DockerClientTest):
@base.requires_api_version
(
'1.21'
)
def
test_remove_volume
(
self
):
name
=
'perfectcherryblossom'
result
=
self
.
client
.
remove_volume
(
name
)
self
.
assertTrue
(
result
)
self
.
client
.
remove_volume
(
name
)
args
=
fake_request
.
call_args
self
.
assertEqual
(
args
[
0
][
0
],
'DELETE'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment