Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions internal/sharedtest/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
// that configures Relay's endpoint routing, so that if we accidentally change the routing, the tests
// will fail, rather than succeed based on incorrect paths.

// SimpleUserJSON is a basic user.
const SimpleUserJSON = `{"key":"userkey"}`
// SimpleUserJSON is a basic single-kind context.
const SimpleUserJSON = `{"key":"userkey","kind":"user"}`

// ToBase64 is a shortcut for base64 encoding.
func ToBase64(s string) string {
Expand Down
4 changes: 2 additions & 2 deletions relay/testutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func (h relayTestHelper) assertSDKEndpointsAvailability(
// appropriate HTTP status. These are tested more thoroughly in test suites like DoStreamEndpointsTests,
// but we use this simpler test when we're dynamically changing what the credentials are.

simpleUserJSON := []byte(`{"key":"userkey"}`)
simpleUserBase64 := "eyJrZXkiOiJ1c2Vya2V5In0="
simpleUserJSON := []byte(`{"key":"userkey","kind":"user"}`)
simpleUserBase64 := "eyJrZXkiOiJ1c2Vya2V5Iiwia2luZCI6InVzZXIifQ=="
status200Or401, status200Or404 := 200, 200
if !shouldBeAvailable {
status200Or401 = 401
Expand Down
Loading