Skip to content

Commit

Permalink
fix authentication error message link to relevant docs (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamvduke committed Oct 23, 2023
1 parent 5bea34d commit 6784101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ object GcToolResults {

private val permissionDeniedErrorMessage = { projectId: String, projectIdSource: String?, message: String? ->
"""Flank encountered a 403 error when running on project $projectId${projectIdSource?.let {" (from $it)"} ?: ""}. Please verify this credential is authorized for the project and has the required permissions.
Consider authentication with a Service Account https://github.com/Flank/flank#authenticate-with-a-service-account
or with a Google account https://github.com/Flank/flank#authenticate-with-a-google-account
Consider authentication with a Service Account https://flank.github.io/flank/#authenticate-with-a-service-account
or with a Google account https://flank.github.io/flank/#authenticate-with-a-google-account
$message
""".trimIndent()
Expand Down
8 changes: 4 additions & 4 deletions test_runner/src/test/kotlin/ftl/gc/GcToolResultsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class GcToolResultsTest {
fun `getDefaultBucket on 403 error should throw exception with specific message - no source`() {
val expected = """
Flank encountered a 403 error when running on project $projectId. Please verify this credential is authorized for the project and has the required permissions.
Consider authentication with a Service Account https://github.com/Flank/flank#authenticate-with-a-service-account
or with a Google account https://github.com/Flank/flank#authenticate-with-a-google-account
Consider authentication with a Service Account https://flank.github.io/flank/#authenticate-with-a-service-account
or with a Google account https://flank.github.io/flank/#authenticate-with-a-google-account
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
Expand Down Expand Up @@ -105,8 +105,8 @@ class GcToolResultsTest {
fun `getDefaultBucket on 403 error should throw exception with specific message - with source`() {
val expected = """
Flank encountered a 403 error when running on project $projectId (from /Any/path/to/json.json). Please verify this credential is authorized for the project and has the required permissions.
Consider authentication with a Service Account https://github.com/Flank/flank#authenticate-with-a-service-account
or with a Google account https://github.com/Flank/flank#authenticate-with-a-google-account
Consider authentication with a Service Account https://flank.github.io/flank/#authenticate-with-a-service-account
or with a Google account https://flank.github.io/flank/#authenticate-with-a-google-account
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
Expand Down

0 comments on commit 6784101

Please sign in to comment.