Skip to content

Commit

Permalink
Fix feature tests that are failing due to changed error shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcreaser committed May 24, 2024
1 parent 85ee1b8 commit 5493c80
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"recoverySuggestion": "Check whether the given values are correct and the user is authorized to perform the operation.",
"cause": {
"errorType": "NotAuthorizedException",
"errorMessage": null
"errorMessage": "Error type: Client, Protocol response: (empty response)"
}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"recoverySuggestion": "See attached exception for more details. RevokeToken can be retried using the CognitoIdentityProviderClient accessible from the escape hatch.",
"cause": {
"errorType": "NotAuthorizedException",
"errorMessage": null
"errorMessage": "Error type: Client, Protocol response: (empty response)"
}
},
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VySWQiLCJ1c2VybmFtZSI6InVzZXJuYW1lIiwiZXhwIjoxNTE2MjM5MDIyLCJvcmlnaW5fanRpIjoib3JpZ2luX2p0aSJ9.Xqa-vjJe5wwwsqeRAdHf8kTBn_rYSkDn2lB7xj9Z1xU"
Expand All @@ -54,4 +54,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,22 @@
"recoverySuggestion": "See attached exception for more details. GlobalSignOut can be retried using the CognitoIdentityProviderClient accessible from the escape hatch.",
"cause": {
"errorType": "NotAuthorizedException",
"errorMessage": null
"errorMessage": "Error type: Client, Protocol response: (empty response)"
}
}
},
"hostedUIError": null,
"revokeTokenError": {
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VySWQiLCJ1c2VybmFtZSI6InVzZXJuYW1lIiwiZXhwIjoxNTE2MjM5MDIyLCJvcmlnaW5fanRpIjoib3JpZ2luX2p0aSJ9.Xqa-vjJe5wwwsqeRAdHf8kTBn_rYSkDn2lB7xj9Z1xU",
"exception": {
"errorType":"RevokeTokenException",
"errorMessage":"Failed to revoke token",
"recoverySuggestion": "See attached exception for more details. RevokeToken can be retried using the CognitoIdentityProviderClient accessible from the escape hatch.",
"detailMessage": "Failed to revoke token",
"cause": {
"detailMessage": "RevokeToken not attempted because GlobalSignOut failed.",
"stackTrace": [
],
"suppressedExceptions": [
]
},
"stackTrace": [
],
"suppressedExceptions": [
]
}
"cause": {}
},
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VySWQiLCJ1c2VybmFtZSI6InVzZXJuYW1lIiwiZXhwIjoxNTE2MjM5MDIyLCJvcmlnaW5fanRpIjoib3JpZ2luX2p0aSJ9.Xqa-vjJe5wwwsqeRAdHf8kTBn_rYSkDn2lB7xj9Z1xU"
},
"signedOutLocally": true
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"recoverySuggestion": "See attached exception for more details. RevokeToken can be retried using the CognitoIdentityProviderClient accessible from the escape hatch.",
"cause": {
"errorType": "NotAuthorizedException",
"errorMessage": null
"errorMessage": "Error type: Client, Protocol response: (empty response)"
}
},
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VySWQiLCJ1c2VybmFtZSI6InVzZXJuYW1lIiwiZXhwIjoxNTE2MjM5MDIyLCJvcmlnaW5fanRpIjoib3JpZ2luX2p0aSJ9.Xqa-vjJe5wwwsqeRAdHf8kTBn_rYSkDn2lB7xj9Z1xU"
Expand All @@ -47,4 +47,4 @@
}
}
]
}
}

0 comments on commit 5493c80

Please sign in to comment.