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:
Percy Wegmann
2024-04-26 19:29:59 -05:00
parent fee3aeb7f2
commit cc0bd0229d
5 changed files with 368 additions and 166 deletions

View 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