diff --git a/src/tailscale/install.sh b/src/tailscale/install.sh index 2500279..1570057 100644 --- a/src/tailscale/install.sh +++ b/src/tailscale/install.sh @@ -33,6 +33,8 @@ install_curl() { dnf -y install --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 curl elif type yum > /dev/null 2>/dev/null; then yum -y install --noplugins --setopt=install_weak_deps=0 curl + elif type apk > /dev/null 2>/dev/null; then + apk add curl else 2> echo "Unknown platform, can not automate curl install. curl is required to download tailscale" return 1 diff --git a/test/tailscale/scenarios.json b/test/tailscale/scenarios.json new file mode 100644 index 0000000..ae5eaa4 --- /dev/null +++ b/test/tailscale/scenarios.json @@ -0,0 +1,22 @@ +{ + "tailscale_on_ubuntu": { + "image": "ubuntu:latest", + "features": { + "tailscale": {} + } + }, + "tailscale_on_alma": { + "image": "almalinux:latest", + "features": { + "tailscale": {} + } + }, + "tailscale_version": { + "image": "ubuntu:latest", + "features": { + "tailscale": { + "version": "1.80.2" + } + } + } +} \ No newline at end of file diff --git a/test/tailscale/tailscale_on_alma.sh b/test/tailscale/tailscale_on_alma.sh new file mode 120000 index 0000000..61a58b0 --- /dev/null +++ b/test/tailscale/tailscale_on_alma.sh @@ -0,0 +1 @@ +test.sh \ No newline at end of file diff --git a/test/tailscale/tailscale_on_ubuntu.sh b/test/tailscale/tailscale_on_ubuntu.sh new file mode 120000 index 0000000..61a58b0 --- /dev/null +++ b/test/tailscale/tailscale_on_ubuntu.sh @@ -0,0 +1 @@ +test.sh \ No newline at end of file diff --git a/test/tailscale/tailscale_version.sh b/test/tailscale/tailscale_version.sh new file mode 120000 index 0000000..61a58b0 --- /dev/null +++ b/test/tailscale/tailscale_version.sh @@ -0,0 +1 @@ +test.sh \ No newline at end of file diff --git a/test/tailscale/test.sh b/test/tailscale/test.sh index f17b302..2b38243 100644 --- a/test/tailscale/test.sh +++ b/test/tailscale/test.sh @@ -5,4 +5,12 @@ set -e -tailscale version --daemon \ No newline at end of file +source dev-container-features-test-lib + +if [[ "$VERSION" == latest ]]; then + check "Daemon: " tailscale version --daemon +else + check "$VERSION" tailscale version --daemon +fi + +reportResults \ No newline at end of file