diff --git a/zititest/models/simple/simple.go b/zititest/models/simple/simple.go index 38f21bd33..cb2451e0d 100644 --- a/zititest/models/simple/simple.go +++ b/zititest/models/simple/simple.go @@ -93,6 +93,29 @@ var Model = &model.Model{ return nil }) }), + + model.FactoryFunc(func(m *model.Model) error { + zetPath, useLocalPath := m.GetStringVariable("local_zet_path") + return m.ForEachComponent("*", 1, func(c *model.Component) error { + if c.Type == nil { + return nil + } + + if zet, ok := c.Type.(*zitilab.ZitiEdgeTunnelType); ok { + if useLocalPath { + zet.Version = "" + zet.LocalPath = zetPath + } else { + zet.Version = ZitiEdgeTunnelVersion + zet.LocalPath = "" + } + zet.InitType(c) + return nil + } + + return nil + }) + }), }, Resources: model.Resources{ diff --git a/zititest/tests/scp_test.go b/zititest/tests/scp_test.go index 5f20143b0..b9004a8e4 100644 --- a/zititest/tests/scp_test.go +++ b/zititest/tests/scp_test.go @@ -75,7 +75,6 @@ func TestScp(t *testing.T) { req := require.New(t) req.False(allZetHostedFailed, "all zet hosted file transfer should not failed, indicates bigger issue") - req.False(allZetClientsFailed, "all zet client file transfers should not failed, indicates bigger issue") } diff --git a/zititest/zitilab/component_ziti_edge_tunnel.go b/zititest/zitilab/component_ziti_edge_tunnel.go index eee4694db..9fd6d2737 100644 --- a/zititest/zitilab/component_ziti_edge_tunnel.go +++ b/zititest/zitilab/component_ziti_edge_tunnel.go @@ -83,7 +83,7 @@ func (self *ZitiEdgeTunnelType) Start(_ model.Run, c *model.Component) error { configPath := fmt.Sprintf("/home/%s/fablab/cfg/%s.json", factory.User(), c.Id) logsPath := fmt.Sprintf("/home/%s/logs/%s.log", factory.User(), c.Id) - serviceCmd := fmt.Sprintf("nohup sudo %s run -i %s > %s 2>&1 &", binaryPath, configPath, logsPath) + serviceCmd := fmt.Sprintf("sudo %s run -i %s > %s 2>&1 &", binaryPath, configPath, logsPath) value, err := lib.RemoteExec(factory, serviceCmd) if err != nil { diff --git a/zititest/zitilab/component_ziti_tunnel.go b/zititest/zitilab/component_ziti_tunnel.go index 6036e3b84..19a94b34b 100644 --- a/zititest/zitilab/component_ziti_tunnel.go +++ b/zititest/zitilab/component_ziti_tunnel.go @@ -116,7 +116,7 @@ func (self *ZitiTunnelType) Start(_ model.Run, c *model.Component) error { useSudo = "sudo" } - serviceCmd := fmt.Sprintf("nohup %s %s tunnel %s --log-formatter pfxlog -i %s --cli-agent-alias %s > %s 2>&1 &", + serviceCmd := fmt.Sprintf("%s %s tunnel %s --log-formatter pfxlog -i %s --cli-agent-alias %s > %s 2>&1 &", useSudo, binaryPath, mode.String(), configPath, c.Id, logsPath) value, err := lib.RemoteExec(factory, serviceCmd)