Add experimental flag to unit test

This commit is contained in:
Even Holthe 2022-11-25 14:46:34 +01:00
parent fc00cb3aa4
commit 1acf5e5791

View file

@ -7,6 +7,7 @@ import (
"testing" "testing"
"gopkg.in/check.v1" "gopkg.in/check.v1"
"tailscale.com/envknob"
"tailscale.com/tailcfg" "tailscale.com/tailcfg"
) )
@ -74,6 +75,8 @@ func (s *Suite) TestInvalidAction(c *check.C) {
} }
func (s *Suite) TestSshRules(c *check.C) { func (s *Suite) TestSshRules(c *check.C) {
envknob.Setenv("HEADSCALE_EXPERIMENTAL_FEATURE_SSH", "1")
namespace, err := app.CreateNamespace("user1") namespace, err := app.CreateNamespace("user1")
c.Assert(err, check.IsNil) c.Assert(err, check.IsNil)