summaryrefslogtreecommitdiffhomepage
path: root/ssh/tailssh/testcontainers
diff options
context:
space:
mode:
authorPercy Wegmann <percy@tailscale.com>2024-04-26 19:29:59 -0500
committerPercy Wegmann <percy@tailscale.com>2024-04-27 14:54:26 -0500
commitcc0bd0229dd03eee73df3e7adb464bcc8f14ca8f (patch)
treeba2f3c823b94bc6f502bb4652e71ff5079cf1528 /ssh/tailssh/testcontainers
parentfee3aeb7f2ce6562234acac26bbf1c1fba9e0d14 (diff)
downloadtailscale-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')
-rw-r--r--ssh/tailssh/testcontainers/Dockerfile11
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