From 22da5bfc1d0c7e726f3df26c007dee2321f973dd Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 24 Nov 2022 16:41:33 +0100 Subject: [PATCH] Enable SSH for tests Signed-off-by: Kristoffer Dalby --- integration/ssh_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/integration/ssh_test.go b/integration/ssh_test.go index 92fd90cf..69bcb7ba 100644 --- a/integration/ssh_test.go +++ b/integration/ssh_test.go @@ -78,6 +78,9 @@ func TestSSHOneNamespaceAllToAll(t *testing.T) { }, }, ), + hsic.WithConfigEnv(map[string]string{ + "HEADSCALE_FEATURE_SSH": "1", + }), ) if err != nil { t.Errorf("failed to create headscale environment: %s", err) @@ -152,6 +155,9 @@ func TestSSHMultipleNamespacesAllToAll(t *testing.T) { }, }, ), + hsic.WithConfigEnv(map[string]string{ + "HEADSCALE_FEATURE_SSH": "1", + }), ) if err != nil { t.Errorf("failed to create headscale environment: %s", err) @@ -225,6 +231,9 @@ func TestSSHNoSSHConfigured(t *testing.T) { }, ), hsic.WithTestName("sshnoneconfigured"), + hsic.WithConfigEnv(map[string]string{ + "HEADSCALE_FEATURE_SSH": "1", + }), ) if err != nil { t.Errorf("failed to create headscale environment: %s", err) @@ -299,6 +308,9 @@ func TestSSHIsBlockedInACL(t *testing.T) { }, ), hsic.WithTestName("sshisblockedinacl"), + hsic.WithConfigEnv(map[string]string{ + "HEADSCALE_FEATURE_SSH": "1", + }), ) if err != nil { t.Errorf("failed to create headscale environment: %s", err) @@ -381,6 +393,9 @@ func TestSSNamespaceOnlyIsolation(t *testing.T) { }, ), hsic.WithTestName("sshtwonamespaceaclblock"), + hsic.WithConfigEnv(map[string]string{ + "HEADSCALE_FEATURE_SSH": "1", + }), ) if err != nil { t.Errorf("failed to create headscale environment: %s", err)