mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-26 04:20:33 +00:00
ssh/tailssh: add integration tests for ssh
Adds basic integration tests for beIncubator that can run on: - MacOS - Ubuntu - Fedora Updates #11854 Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
11
ssh/tailssh/testcontainers/Dockerfile
Normal file
11
ssh/tailssh/testcontainers/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
ARG BASE
|
||||
FROM ${BASE}
|
||||
|
||||
RUN groupadd -g 10000 groupone
|
||||
RUN groupadd -g 10001 grouptwo
|
||||
RUN useradd -g 10000 -G 10001 -u 10002 -m testuser
|
||||
COPY . .
|
||||
RUN ./tailssh.test -test.run TestIntegration
|
||||
# Remove the su command and run the test again to make sure it works without su
|
||||
RUN rm `which su`
|
||||
RUN ./tailssh.test -test.run TestIntegration
|
||||
Reference in New Issue
Block a user