func (s *IntSuite) TestInvalidLogins(c *check.C) {
	t := s.newTeleport(c, nil, true)
	defer t.Stop(true)

	cmd := []string{"echo", "success"}

	// try the wrong site:
	tc, err := t.NewClient(s.me.Username, "wrong-site", Host, t.GetPortSSHInt())
	c.Assert(err, check.IsNil)
	err = tc.SSH(cmd, false)
	c.Assert(err, check.ErrorMatches, "site wrong-site not found")
}
// TestInvalidLogins validates that you can't login with invalid login or
// with invalid 'site' parameter
TestInvalidLogins validates that you can't login with invalid login or
with invalid 'site' parameter
// TestInvalidLogins validates that you can ' t login with invalid login or // with invalid ' site ' parameter
func (s *IntSuite) TestInvalidLogins(c *check.C) {
	t := s.newTeleport(c, nil, true)
	defer t.Stop(true)
	cmd := []string{"echo", "success"}
	tc, err := t.NewClient(s.me.Username, "wrong-site", Host, t.GetPortSSHInt())
	c.Assert(err, check.IsNil)
	err = tc.SSH(cmd, false)
	c.Assert(err, check.ErrorMatches, "site wrong-site not found")
}
func ( s * IntSuite ) TestInvalidLogins ( c * check . C ) { t := s . newTeleport ( c , nil , true ) defer t . Stop ( true ) cmd := [ ] string { " " , " " } tc , err := t . NewClient ( s . me . Username , " " , Host , t . GetPortSSHInt ( ) ) c . Assert ( err , check . IsNil ) err = tc . SSH ( cmd , false ) c . Assert ( err , check . ErrorMatches , " " ) }
TestInvalidLogins validates that you can't login with invalid login or
with invalid 'site' parameter
TestInvalidLogins validates that you can ' t login with invalid login or with invalid ' site ' parameter
// try the wrong site: