Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test for pre issue access token with incomplete action invocation status. #22176

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public PreIssueAccessTokenActionFailureClientCredentialsGrantTestCase(TestUserMo
public static Object[][] getTestExecutionContext() throws Exception {

return new Object[][]{
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/incomplete-response.json")),
new ExpectedTokenResponse(500, "server_error", "Internal Server Error.")},
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/failure-response.json")),
new ExpectedTokenResponse(400, "Some failure reason", "Some description")},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ public PreIssueAccessTokenActionFailureCodeGrantTestCase(TestUserMode testUserMo
public static Object[][] getTestExecutionContext() throws Exception {

return new Object[][]{
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/incomplete-response.json")),
new ExpectedTokenResponse(500, "server_error", "Internal Server Error.")},
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/failure-response.json")),
new ExpectedTokenResponse(400, "Some failure reason", "Some description")},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public PreIssueAccessTokenActionFailurePasswordGrantTestCase(TestUserMode testUs
public static Object[][] getTestExecutionContext() throws Exception {

return new Object[][]{
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/incomplete-response.json")),
new ExpectedTokenResponse(500, "server_error", "Internal Server Error.")},
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/failure-response.json")),
new ExpectedTokenResponse(400, "Some failure reason", "Some description")},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ public PreIssueAccessTokenActionFailureRefreshTokenGrantTestCase(TestUserMode te
public static Object[][] getTestExecutionContext() throws Exception {

return new Object[][]{
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/incomplete-response.json")),
new ExpectedTokenResponse(500, "server_error", "Internal Server Error.")},
{TestUserMode.SUPER_TENANT_USER, new ActionResponse(200,
FileUtils.readFileInClassPathAsString("actions/response/failure-response.json")),
new ExpectedTokenResponse(400, "Some failure reason", "Some description")},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"actionStatus": "INCOMPLETE",
"operations": [
{
"op": "redirect",
"url": "testUrl"
}
]
}