Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
chore(): additional scalable run failure handling
  • Loading branch information
Sid200026 committed Oct 16, 2024
commit 1d5a12fb7cda0b2252b10b30fd691fed68aa77e7
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