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
b4efdc1b
Kaydet (Commit)
b4efdc1b
authored
May 25, 2018
tarafından
Joffrey F
Kaydeden (comit)
Joffrey F
May 25, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix several integration tests on Windows
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
40711cb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
api_container_test.py
tests/integration/api_container_test.py
+4
-15
models_containers_test.py
tests/integration/models_containers_test.py
+3
-0
No files found.
tests/integration/api_container_test.py
Dosyayı görüntüle @
b4efdc1b
...
...
@@ -491,6 +491,9 @@ class CreateContainerTest(BaseAPIIntegrationTest):
assert
rule
in
self
.
client
.
logs
(
ctnr
)
.
decode
(
'utf-8'
)
@pytest.mark.xfail
(
IS_WINDOWS_PLATFORM
,
reason
=
'Test not designed for Windows platform'
)
class
VolumeBindTest
(
BaseAPIIntegrationTest
):
def
setUp
(
self
):
super
(
VolumeBindTest
,
self
)
.
setUp
()
...
...
@@ -507,9 +510,6 @@ class VolumeBindTest(BaseAPIIntegrationTest):
[
'touch'
,
os
.
path
.
join
(
self
.
mount_dest
,
self
.
filename
)],
)
@pytest.mark.xfail
(
IS_WINDOWS_PLATFORM
,
reason
=
'Test not designed for Windows platform'
)
def
test_create_with_binds_rw
(
self
):
container
=
self
.
run_with_volume
(
...
...
@@ -525,9 +525,6 @@ class VolumeBindTest(BaseAPIIntegrationTest):
inspect_data
=
self
.
client
.
inspect_container
(
container
)
self
.
check_container_data
(
inspect_data
,
True
)
@pytest.mark.xfail
(
IS_WINDOWS_PLATFORM
,
reason
=
'Test not designed for Windows platform'
)
def
test_create_with_binds_ro
(
self
):
self
.
run_with_volume
(
False
,
...
...
@@ -548,9 +545,6 @@ class VolumeBindTest(BaseAPIIntegrationTest):
inspect_data
=
self
.
client
.
inspect_container
(
container
)
self
.
check_container_data
(
inspect_data
,
False
)
@pytest.mark.xfail
(
IS_WINDOWS_PLATFORM
,
reason
=
'Test not designed for Windows platform'
)
@requires_api_version
(
'1.30'
)
def
test_create_with_mounts
(
self
):
mount
=
docker
.
types
.
Mount
(
...
...
@@ -569,9 +563,6 @@ class VolumeBindTest(BaseAPIIntegrationTest):
inspect_data
=
self
.
client
.
inspect_container
(
container
)
self
.
check_container_data
(
inspect_data
,
True
)
@pytest.mark.xfail
(
IS_WINDOWS_PLATFORM
,
reason
=
'Test not designed for Windows platform'
)
@requires_api_version
(
'1.30'
)
def
test_create_with_mounts_ro
(
self
):
mount
=
docker
.
types
.
Mount
(
...
...
@@ -1116,9 +1107,7 @@ class ContainerTopTest(BaseAPIIntegrationTest):
self
.
client
.
start
(
container
)
res
=
self
.
client
.
top
(
container
)
if
IS_WINDOWS_PLATFORM
:
assert
res
[
'Titles'
]
==
[
'PID'
,
'USER'
,
'TIME'
,
'COMMAND'
]
else
:
if
not
IS_WINDOWS_PLATFORM
:
assert
res
[
'Titles'
]
==
[
'UID'
,
'PID'
,
'PPID'
,
'C'
,
'STIME'
,
'TTY'
,
'TIME'
,
'CMD'
]
...
...
tests/integration/models_containers_test.py
Dosyayı görüntüle @
b4efdc1b
...
...
@@ -36,6 +36,9 @@ class ContainerCollectionTest(BaseIntegrationTest):
with
pytest
.
raises
(
docker
.
errors
.
ImageNotFound
):
client
.
containers
.
run
(
"dockerpytest_does_not_exist"
)
@pytest.mark.skipif
(
docker
.
constants
.
IS_WINDOWS_PLATFORM
,
reason
=
"host mounts on Windows"
)
def
test_run_with_volume
(
self
):
client
=
docker
.
from_env
(
version
=
TEST_API_VERSION
)
path
=
tempfile
.
mkdtemp
()
...
...
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