Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/auth/join_bound_keypair_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/go-jose/go-jose/v3/jwt"
"github.com/gravitational/trace"
"github.com/jonboulle/clockwork"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/api/client"
Expand Down Expand Up @@ -1109,8 +1110,10 @@ func TestServer_RegisterUsingBoundKeypairMethod_GenerationCounter(t *testing.T)
require.Contains(t, locks[0].Message(), "certificate generation mismatch")

// Using the previously working client, make sure API calls no longer work.
_, err = client.Ping(ctx)
require.ErrorContains(t, err, "access denied")
require.EventuallyWithT(t, func(t *assert.CollectT) {
_, err = client.Ping(ctx)
assert.ErrorContains(t, err, "access denied")
}, 5*time.Second, 100*time.Millisecond)
}

func TestServer_RegisterUsingBoundKeypairMethod_JoinStateFailure(t *testing.T) {
Expand Down
Loading