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
cf831198
Kaydet (Commit)
cf831198
authored
Mar 23, 2016
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Test commit changes param
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
9505b3e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
image_test.py
tests/integration/image_test.py
+14
-0
No files found.
tests/integration/image_test.py
Dosyayı görüntüle @
cf831198
...
...
@@ -90,6 +90,20 @@ class CommitTest(helpers.BaseTestCase):
self
.
assertIn
(
'Parent'
,
img
)
self
.
assertEqual
(
img
[
'Parent'
],
busybox_id
)
def
test_commit_with_changes
(
self
):
cid
=
self
.
client
.
create_container
(
BUSYBOX
,
[
'touch'
,
'/test'
])
self
.
tmp_containers
.
append
(
cid
)
self
.
client
.
start
(
cid
)
img_id
=
self
.
client
.
commit
(
cid
,
changes
=
[
'EXPOSE 8000'
,
'CMD ["bash"]'
]
)
self
.
tmp_imgs
.
append
(
img_id
)
img
=
self
.
client
.
inspect_image
(
img_id
)
assert
'Container'
in
img
assert
img
[
'Container'
]
.
startswith
(
cid
[
'Id'
])
assert
'8000/tcp'
in
img
[
'Config'
][
'ExposedPorts'
]
assert
img
[
'Config'
][
'Cmd'
]
==
[
'bash'
]
class
RemoveImageTest
(
helpers
.
BaseTestCase
):
def
test_remove
(
self
):
...
...
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