Skip to content

Commit

Permalink
add integration test that always fails to allow ci job to be rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy committed Jan 6, 2022
1 parent d5c18d8 commit c9d8fec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ import (
"testing"
"time"

"golang.org/x/crypto/ssh"

"github.com/gravitational/teleport"
apidefaults "github.com/gravitational/teleport/api/defaults"
"github.com/gravitational/teleport/api/profile"
Expand All @@ -65,6 +63,8 @@ import (
"github.com/gravitational/teleport/lib/srv"
"github.com/gravitational/teleport/lib/sshutils"
"github.com/gravitational/teleport/lib/utils"
"golang.org/x/crypto/ssh"
"google.golang.org/grpc/grpclog"

"github.com/gravitational/trace"
"github.com/pborman/uuid"
Expand Down Expand Up @@ -205,6 +205,10 @@ func TestIntegrations(t *testing.T) {
t.Run("WindowChange", suite.bind(testWindowChange))
}

func TestZZ_FAIL(t *testing.T) {
require.FailNow(t, "failed")
}

// testAuditOn creates a live session, records a bunch of data through it
// and then reads it back and compares against simulated reality.
func testAuditOn(t *testing.T, suite *integrationTestSuite) {
Expand Down Expand Up @@ -613,6 +617,8 @@ func testInteroperability(t *testing.T, suite *integrationTestSuite) {
// TestMain will re-execute Teleport to run a command if "exec" is passed to
// it as an argument. Otherwise it will run tests as normal.
func TestMain(m *testing.M) {
grpclog.SetLoggerV2(grpclog.NewLoggerV2WithVerbosity(os.Stderr, os.Stderr, os.Stderr, 99))

utils.InitLoggerForTests()
// If the test is re-executing itself, execute the command that comes over
// the pipe.
Expand Down

0 comments on commit c9d8fec

Please sign in to comment.