Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
27cf7035
Commit
27cf7035
authored
Feb 04, 2018
by
Chris Zubak-Skees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to check dict status code response in test_container_options
parent
7c68f9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
base-notebook/test/test_container_options.py
base-notebook/test/test_container_options.py
+4
-4
No files found.
base-notebook/test/test_container_options.py
View file @
27cf7035
...
...
@@ -68,7 +68,7 @@ def test_sudo(container):
command
=
[
'start.sh'
,
'sudo'
,
'id'
]
)
rv
=
c
.
wait
(
timeout
=
10
)
assert
rv
==
0
assert
rv
==
0
or
rv
[
"StatusCode"
]
==
0
assert
'uid=0(root)'
in
c
.
logs
(
stdout
=
True
)
.
decode
(
'utf-8'
)
...
...
@@ -81,7 +81,7 @@ def test_sudo_path(container):
command
=
[
'start.sh'
,
'sudo'
,
'which'
,
'jupyter'
]
)
rv
=
c
.
wait
(
timeout
=
10
)
assert
rv
==
0
assert
rv
==
0
or
rv
[
"StatusCode"
]
==
0
assert
c
.
logs
(
stdout
=
True
)
.
decode
(
'utf-8'
)
.
rstrip
()
.
endswith
(
'/opt/conda/bin/jupyter'
)
...
...
@@ -93,7 +93,7 @@ def test_sudo_path_without_grant(container):
command
=
[
'start.sh'
,
'which'
,
'jupyter'
]
)
rv
=
c
.
wait
(
timeout
=
10
)
assert
rv
==
0
assert
rv
==
0
or
rv
[
"StatusCode"
]
==
0
assert
c
.
logs
(
stdout
=
True
)
.
decode
(
'utf-8'
)
.
rstrip
()
.
endswith
(
'/opt/conda/bin/jupyter'
)
...
...
@@ -107,5 +107,5 @@ def test_group_add(container, tmpdir):
command
=
[
'start.sh'
,
'id'
]
)
rv
=
c
.
wait
(
timeout
=
5
)
assert
rv
==
0
assert
rv
==
0
or
rv
[
"StatusCode"
]
==
0
assert
'uid=1010 gid=1010 groups=1010,100(users)'
in
c
.
logs
(
stdout
=
True
)
.
decode
(
'utf-8'
)
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