integration: test user fancy home

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc 2020-02-29 12:32:55 +01:00 committed by Tejal Desai
parent fec7c126f9
commit bfeb40d600
1 changed files with 7 additions and 2 deletions

View File

@ -20,8 +20,13 @@ RUN touch $HOME/hello
# testuser1 with the default home created by useradd.
RUN groupadd testgroup && \
useradd --create-home --gid testgroup testuser
useradd --create-home --gid testgroup alice \
useradd --create-home --home john --gid testgroup bob
USER testuser:testgroup
USER alice:testgroup
RUN touch $HOME/hello
USER bob:testgroup
RUN touch $HOME/hello