func (s *IntSuite) newTeleport(c *check.C, logins []string, enableSSH bool) *TeleInstance {
	t := NewInstance(Site, Host, s.getPorts(5), s.priv, s.pub)
	// use passed logins, but use suite's default login if nothing was passed
	if logins == nil || len(logins) == 0 {
		logins = []string{s.me.Username}
	}
	for _, login := range logins {
		t.AddUser(login, []string{login})
	}

	if t.Create(nil, enableSSH, nil) != nil {
		c.FailNow()
	}
	if t.Start() != nil {
		c.FailNow()
	}
	return t
}
// newTeleport helper returns a running Teleport instance pre-configured
// with the current user os.user.Current()
newTeleport helper returns a running Teleport instance pre-configured
with the current user os.user.Current()
// newTeleport helper returns a running Teleport instance pre - configured // with the current user os . user . Current ()
func (s *IntSuite) newTeleport(c *check.C, logins []string, enableSSH bool) *TeleInstance {
	t := NewInstance(Site, Host, s.getPorts(5), s.priv, s.pub)
	if logins == nil || len(logins) == 0 {
		logins = []string{s.me.Username}
	}
	for _, login := range logins {
		t.AddUser(login, []string{login})
	}
	if t.Create(nil, enableSSH, nil) != nil {
		c.FailNow()
	}
	if t.Start() != nil {
		c.FailNow()
	}
	return t
}
func ( s * IntSuite ) newTeleport ( c * check . C , logins [ ] string , enableSSH bool ) * TeleInstance { t := NewInstance ( Site , Host , s . getPorts ( 5 ) , s . priv , s . pub ) if logins == nil || len ( logins ) == 0 { logins = [ ] string { s . me . Username } } for _ , login := range logins { t . AddUser ( login , [ ] string { login } ) } if t . Create ( nil , enableSSH , nil ) != nil { c . FailNow ( ) } if t . Start ( ) != nil { c . FailNow ( ) } return t }
newTeleport helper returns a running Teleport instance pre-configured
with the current user os.user.Current()
newTeleport helper returns a running Teleport instance pre - configured with the current user os . user . Current ()
// use passed logins, but use suite's default login if nothing was passed