Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
407a25e8
Commit
407a25e8
authored
Oct 22, 2018
by
Samuel GAIST
Browse files
[test][docker] Add test for entrypoint property
parent
f4bb5cda
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/test_docker.py
View file @
407a25e8
...
...
@@ -164,6 +164,26 @@ class WorkdirTest(NoDiscoveryTests):
self
.
assertEqual
(
content
,
"8.4
\n
"
)
class
EntrypointTest
(
NoDiscoveryTests
):
@
slow
def
test_entrypoint
(
self
):
"""Test that the entrypoint property is correctly used.
"""
container
=
self
.
host
.
create_container
(
'debian:8.4'
,
[
"42"
])
container
.
set_entrypoint
(
'echo'
)
self
.
host
.
start
(
container
)
status
=
self
.
host
.
wait
(
container
)
logs
=
self
.
host
.
logs
(
container
)
if
status
!=
0
:
print
(
logs
)
self
.
assertEqual
(
status
,
0
)
self
.
assertEqual
(
logs
,
"42
\n
"
)
class
AsyncTest
(
NoDiscoveryTests
):
@
slow
...
...
Write
Preview
Supports
Markdown
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