github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/test/integration/invite_int_test.go (about) 1 package integration 2 3 import ( 4 "testing" 5 6 "github.com/ActiveState/cli/internal/testhelpers/e2e" 7 "github.com/ActiveState/cli/internal/testhelpers/suite" 8 "github.com/ActiveState/cli/internal/testhelpers/tagsuite" 9 ) 10 11 type InviteIntegrationTestSuite struct { 12 tagsuite.Suite 13 } 14 15 func (suite *InviteIntegrationTestSuite) TestInvite_NotAuthenticated() { 16 suite.OnlyRunForTags(tagsuite.Invite) 17 18 ts := e2e.New(suite.T(), false) 19 defer ts.Close() 20 21 ts.PrepareProject("ActiveState-CLI/Invite-Test", e2e.CommitIDNotChecked) 22 23 cp := ts.Spawn("invite", "test-user@test.com") 24 cp.Expect("You need to authenticate") 25 cp.ExpectNotExitCode(0) 26 ts.IgnoreLogErrors() 27 } 28 29 func TestInviteIntegrationTestSuite(t *testing.T) { 30 suite.Run(t, new(InviteIntegrationTestSuite)) 31 }