mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 19:12:59 +00:00
Add /bin to sudo secure_path
This commit is contained in:
@@ -85,6 +85,18 @@ def test_sudo_path(container):
|
||||
assert c.logs(stdout=True).decode('utf-8').rstrip().endswith('/opt/conda/bin/jupyter')
|
||||
|
||||
|
||||
def test_sudo_path_without_grant(container):
|
||||
"""Container should include /opt/conda/bin in the sudo secure_path."""
|
||||
c = container.run(
|
||||
tty=True,
|
||||
user='root',
|
||||
command=['start.sh', 'which', 'jupyter']
|
||||
)
|
||||
rv = c.wait(timeout=10)
|
||||
assert rv == 0
|
||||
assert c.logs(stdout=True).decode('utf-8').rstrip().endswith('/opt/conda/bin/jupyter')
|
||||
|
||||
|
||||
def test_group_add(container, tmpdir):
|
||||
"""Container should run with the specified uid, gid, and secondary
|
||||
group.
|
||||
|
Reference in New Issue
Block a user