Skip to content
Open
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
3 changes: 2 additions & 1 deletion config/http_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ func TestMissingBearerAuthFile(t *testing.T) {
_, err = client.Get(testServer.URL)
require.Errorf(t, err, "No error is returned here")

require.ErrorContainsf(t, err, "unable to read authorization credentials: unable to read file missing/bearer.token: open missing/bearer.token: no such file or directory", "wrong error message being returned")
require.ErrorContainsf(t, err, "unable to read authorization credentials: unable to read file missing/bearer.token", "wrong error message being returned")
require.ErrorIs(t, err, os.ErrNotExist)
}

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