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
110c6769
Kaydet (Commit)
110c6769
authored
Mar 31, 2019
tarafından
Hannes Ljungberg
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add test for join on already joined swarm
Signed-off-by:
Hannes Ljungberg
<
hannes@5monkeys.se
>
üst
c7b9cae0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
models_swarm_test.py
tests/integration/models_swarm_test.py
+12
-0
No files found.
tests/integration/models_swarm_test.py
Dosyayı görüntüle @
110c6769
...
...
@@ -31,3 +31,15 @@ class SwarmTest(unittest.TestCase):
cm
.
value
.
response
.
status_code
==
406
or
cm
.
value
.
response
.
status_code
==
503
)
def
test_join_on_already_joined_swarm
(
self
):
client
=
docker
.
from_env
(
version
=
TEST_API_VERSION
)
client
.
swarm
.
init
()
join_token
=
client
.
swarm
.
attrs
[
'JoinTokens'
][
'Manager'
]
with
pytest
.
raises
(
docker
.
errors
.
APIError
)
as
cm
:
client
.
swarm
.
join
(
remote_addrs
=
[
'127.0.0.1'
],
join_token
=
join_token
,
)
assert
cm
.
value
.
response
.
status_code
==
503
assert
'This node is already part of a swarm.'
in
cm
.
value
.
explanation
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