Skip to content

Commit

Permalink
test: Bearer token is now a const
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitajima committed Jan 11, 2025
1 parent 19662a1 commit a8795ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestUserHardDeleteByID(t *testing.T) {

route := fmt.Sprintf("http://%s:%s/users/{id}/delete", env.host, env.port)
client := &http.Client{}
token := "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiaHR0cDovL2xvY2FsaG9zdDo4MTExLyJdLCJleHAiOjQ3NjYxMzk0NjcsImlhdCI6MTczNjYwOTg2NywiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MTExLyIsImp0aSI6ImZmMTBkNTkzLThmODgtNGU3Yy1hMDMwLTg1MjI0MWU2MmZlYyIsIm5iZiI6MTczNjYwOTg2Nywic3ViIjoiNzk0ZGVmYzMtMTA5YS00YzZmLWE3ZDItY2I5NzYwNjVlYTgwIn0.vSztx6LAOej9kVj3MflrI7S6aU1YfET1FnhpvyNKSuo"
const token = "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiaHR0cDovL2xvY2FsaG9zdDo4MTExLyJdLCJleHAiOjQ3NjYxMzk0NjcsImlhdCI6MTczNjYwOTg2NywiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MTExLyIsImp0aSI6ImZmMTBkNTkzLThmODgtNGU3Yy1hMDMwLTg1MjI0MWU2MmZlYyIsIm5iZiI6MTczNjYwOTg2Nywic3ViIjoiNzk0ZGVmYzMtMTA5YS00YzZmLWE3ZDItY2I5NzYwNjVlYTgwIn0.vSztx6LAOej9kVj3MflrI7S6aU1YfET1FnhpvyNKSuo"

// Anonymous requests receives Unauthorized response
t.Run("unauthorized", func(t *testing.T) {
Expand Down

0 comments on commit a8795ad

Please # to comment.