@@ -15,7 +15,6 @@ def test_uid_change(container: TrackedContainer) -> None:
1515 """Container should change the UID of the default user."""
1616 logs = container .run_and_wait (
1717 timeout = 120 , # usermod is slow so give it some time
18- tty = True ,
1918 user = "root" ,
2019 environment = ["NB_UID=1010" ],
2120 command = ["bash" , "-c" , "id && touch /opt/conda/test-file" ],
@@ -27,7 +26,6 @@ def test_gid_change(container: TrackedContainer) -> None:
2726 """Container should change the GID of the default user."""
2827 logs = container .run_and_wait (
2928 timeout = 10 ,
30- tty = True ,
3129 user = "root" ,
3230 environment = ["NB_GID=110" ],
3331 command = ["id" ],
@@ -40,7 +38,6 @@ def test_nb_user_change(container: TrackedContainer) -> None:
4038 """Container should change the username (`NB_USER`) of the default user."""
4139 nb_user = "nayvoj"
4240 container .run_detached (
43- tty = True ,
4441 user = "root" ,
4542 environment = [f"NB_USER={ nb_user } " , "CHOWN_HOME=yes" ],
4643 command = ["bash" , "-c" , "sleep infinity" ],
@@ -87,7 +84,6 @@ def test_chown_extra(container: TrackedContainer) -> None:
8784 CHOWN_EXTRA list of folders."""
8885 logs = container .run_and_wait (
8986 timeout = 120 , # chown is slow so give it some time
90- tty = True ,
9187 user = "root" ,
9288 environment = [
9389 "NB_UID=1010" ,
@@ -110,7 +106,6 @@ def test_chown_home(container: TrackedContainer) -> None:
110106 group to the current value of NB_UID and NB_GID."""
111107 logs = container .run_and_wait (
112108 timeout = 120 , # chown is slow so give it some time
113- tty = True ,
114109 user = "root" ,
115110 environment = [
116111 "CHOWN_HOME=yes" ,
@@ -128,7 +123,6 @@ def test_sudo(container: TrackedContainer) -> None:
128123 """Container should grant passwordless sudo to the default user."""
129124 logs = container .run_and_wait (
130125 timeout = 10 ,
131- tty = True ,
132126 user = "root" ,
133127 environment = ["GRANT_SUDO=yes" ],
134128 command = ["sudo" , "id" ],
@@ -140,7 +134,6 @@ def test_sudo_path(container: TrackedContainer) -> None:
140134 """Container should include /opt/conda/bin in the sudo secure_path."""
141135 logs = container .run_and_wait (
142136 timeout = 10 ,
143- tty = True ,
144137 user = "root" ,
145138 environment = ["GRANT_SUDO=yes" ],
146139 command = ["sudo" , "which" , "jupyter" ],
@@ -152,7 +145,6 @@ def test_sudo_path_without_grant(container: TrackedContainer) -> None:
152145 """Container should include /opt/conda/bin in the sudo secure_path."""
153146 logs = container .run_and_wait (
154147 timeout = 10 ,
155- tty = True ,
156148 user = "root" ,
157149 command = ["which" , "jupyter" ],
158150 )
@@ -224,7 +216,6 @@ def test_container_not_delete_bind_mount(
224216
225217 container .run_and_wait (
226218 timeout = 5 ,
227- tty = True ,
228219 user = "root" ,
229220 working_dir = "/home/" ,
230221 environment = [
@@ -247,7 +238,6 @@ def test_jupyter_env_vars_to_unset(
247238 root_args = {"user" : "root" } if enable_root else {}
248239 logs = container .run_and_wait (
249240 timeout = 10 ,
250- tty = True ,
251241 environment = [
252242 "JUPYTER_ENV_VARS_TO_UNSET=SECRET_ANIMAL,UNUSED_ENV,SECRET_FRUIT" ,
253243 "FRUIT=bananas" ,
@@ -276,7 +266,6 @@ def test_secure_path(container: TrackedContainer, tmp_path: pathlib.Path) -> Non
276266
277267 logs = container .run_and_wait (
278268 timeout = 5 ,
279- tty = True ,
280269 user = "root" ,
281270 volumes = {p : {"bind" : "/usr/bin/python" , "mode" : "ro" }},
282271 command = ["python" , "--version" ],
@@ -290,7 +279,6 @@ def test_startsh_multiple_exec(container: TrackedContainer) -> None:
290279 logs = container .run_and_wait (
291280 timeout = 10 ,
292281 no_warnings = False ,
293- tty = True ,
294282 user = "root" ,
295283 environment = ["GRANT_SUDO=yes" ],
296284 command = ["start.sh" , "sudo" , "id" ],
@@ -308,7 +296,6 @@ def test_rootless_triplet_change(container: TrackedContainer) -> None:
308296 """Container should change the username (`NB_USER`), the UID and the GID of the default user."""
309297 logs = container .run_and_wait (
310298 timeout = 10 ,
311- tty = True ,
312299 user = "root" ,
313300 environment = ["NB_USER=root" , "NB_UID=0" , "NB_GID=0" ],
314301 command = ["id" ],
@@ -322,7 +309,6 @@ def test_rootless_triplet_home(container: TrackedContainer) -> None:
322309 """Container should change the home directory for triplet NB_USER=root, NB_UID=0, NB_GID=0."""
323310 logs = container .run_and_wait (
324311 timeout = 10 ,
325- tty = True ,
326312 user = "root" ,
327313 environment = ["NB_USER=root" , "NB_UID=0" , "NB_GID=0" ],
328314 command = ["bash" , "-c" , "echo HOME=${HOME} && getent passwd root" ],
@@ -335,7 +321,6 @@ def test_rootless_triplet_sudo(container: TrackedContainer) -> None:
335321 """Container should not be started with sudo for triplet NB_USER=root, NB_UID=0, NB_GID=0."""
336322 logs = container .run_and_wait (
337323 timeout = 10 ,
338- tty = True ,
339324 user = "root" ,
340325 environment = ["NB_USER=root" , "NB_UID=0" , "NB_GID=0" ],
341326 command = ["env" ],
0 commit comments