Skip to content

Commit

Permalink
chore(): additional scalable run failure handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Singha Roy committed Oct 16, 2024
1 parent 7345746 commit 1d5a12f
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ internal static class TestResultErrorConstants
{
new TestResultError
{
Key = "Unauthorized_Scalable",
Key = "401",
Message = "The authentication token provided is invalid. Please check the token and try again.",
Pattern = new Regex(@"(?=.*Microsoft\.Playwright\.PlaywrightException)(?=.*401 Unauthorized)", RegexOptions.IgnoreCase),
Type = TestErrorType.Scalable
Expand All @@ -289,6 +289,20 @@ internal static class TestResultErrorConstants
Type = TestErrorType.Scalable
},
new TestResultError
{
Key = "InvalidAccessToken",
Message = "The provided access token does not match the specified workspace URL. Please verify that both values are correct.",
Pattern = new Regex(@"(?=.*Microsoft\.Playwright\.PlaywrightException)(?=.*403 Forbidden)(?=.*InvalidAccessToken)", RegexOptions.IgnoreCase),
Type = TestErrorType.Scalable
},
new TestResultError
{
Key = "AccessTokenOrUserOrWorkspaceNotFound_Scalable",
Message = "The data for the user, workspace or access token was not found. Please check the request or create new token and try again.",
Pattern = new Regex(@"(?=.*Microsoft\.Playwright\.PlaywrightException)(?=.*404 Not Found)(?=.*NotFound)", RegexOptions.IgnoreCase),
Type = TestErrorType.Scalable
},
new TestResultError
{
Key = "AccessKeyBasedAuthNotSupported_Scalable",
Message = "Authentication through service access token is disabled for this workspace. Please use Entra ID to authenticate.",
Expand Down

0 comments on commit 1d5a12f

Please sign in to comment.