diff options
| author | Percy Wegmann <percy@tailscale.com> | 2024-04-26 19:29:59 -0500 |
|---|---|---|
| committer | Percy Wegmann <percy@tailscale.com> | 2024-04-27 14:54:26 -0500 |
| commit | cc0bd0229dd03eee73df3e7adb464bcc8f14ca8f (patch) | |
| tree | ba2f3c823b94bc6f502bb4652e71ff5079cf1528 /ssh/tailssh/testcontainers/Dockerfile | |
| parent | fee3aeb7f2ce6562234acac26bbf1c1fba9e0d14 (diff) | |
| download | tailscale-ox/11854.tar.xz tailscale-ox/11854.zip | |
ssh/tailssh: add integration tests for sshox/11854
Adds basic integration tests for beIncubator that can run on:
- MacOS
- Ubuntu
- Fedora
Updates #11854
Signed-off-by: Percy Wegmann <percy@tailscale.com>
Diffstat (limited to 'ssh/tailssh/testcontainers/Dockerfile')
| -rw-r--r-- | ssh/tailssh/testcontainers/Dockerfile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ssh/tailssh/testcontainers/Dockerfile b/ssh/tailssh/testcontainers/Dockerfile new file mode 100644 index 000000000..e782af55e --- /dev/null +++ b/ssh/tailssh/testcontainers/Dockerfile @@ -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 |
