Bump to spark 2.4.5 + minor improvements

This commit is contained in:
romainx
2020-02-11 21:30:47 +01:00
parent 3deefc7d16
commit 45d51e3b42
6 changed files with 52 additions and 9 deletions

View File

@@ -78,6 +78,20 @@ def test_chown_extra(container):
assert '/opt/conda/LICENSE.txt:1010:101' in c.logs(stdout=True).decode('utf-8')
def test_chown_home(container):
"""Container should change the NB_USER home directory owner and
group to the current value of NB_UID and NB_GID."""
c = container.run(
tty=True,
user='root',
environment=['CHOWN_HOME=yes',
'CHOWN_HOME_OPTS=-R',
],
command=['start.sh', 'bash', '-c', 'chown root:root /home/jovyan && ls -alsh /home']
)
assert "Changing ownership of /home/jovyan to 1000:100 with options '-R'" in c.logs(stdout=True).decode('utf-8')
def test_sudo(container):
"""Container should grant passwordless sudo to the default user."""
c = container.run(