Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
050b1e39
Commit
050b1e39
authored
Mar 03, 2020
by
Samuel GAIST
Browse files
[test][docker_execution] Add test for mismatch between user and configured user
parent
27371fc7
Pipeline
#37848
passed with stage
in 16 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/test_docker_execution.py
View file @
050b1e39
...
...
@@ -240,3 +240,12 @@ class TestDockerExecution(BaseExecutionMixIn):
nose
.
tools
.
eq_
(
result
[
"status"
],
1
)
nose
.
tools
.
assert_true
(
"Read-only"
in
result
[
"user_error"
])
@
slow
def
test_user_mismatch_error
(
self
):
result
=
self
.
execute
(
"errors/user/single/1/write_error"
,
[{
"out_data"
:
42
}],
datasets_uid
=
0
)
nose
.
tools
.
eq_
(
result
[
"status"
],
1
)
nose
.
tools
.
assert_true
(
"Failed to create an user"
in
result
[
"stderr"
])
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