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

Add pre issue access token action tests with rules. #22389

Merged
merged 3 commits into from
Jan 24, 2025
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 @@ -21,6 +21,7 @@
import org.wso2.carbon.automation.engine.context.TestUserMode;
import org.wso2.identity.integration.test.oauth2.OAuth2ServiceAbstractIntegrationTest;
import org.wso2.identity.integration.test.rest.api.server.action.management.v1.model.ActionModel;
import org.wso2.identity.integration.test.rest.api.server.action.management.v1.model.ActionUpdateModel;
import org.wso2.identity.integration.test.restclients.ActionsRestClient;

import java.io.IOException;
Expand Down Expand Up @@ -62,6 +63,20 @@ public String createAction(String actionType, ActionModel actionModel) throws IO
return actionsRestClient.createActionType(actionModel, actionType);
}

/**
* Update an action.
*
* @param actionType Type of action
* @param actionId ID of the action
* @param actionModel Request object to update the action
* @return Status of the action update
* @throws IOException If an error occurred while updating the action
*/
public boolean updateAction(String actionType, String actionId, ActionUpdateModel actionModel) throws IOException {

return actionsRestClient.updateAction(actionType, actionId, actionModel);
}

/**
* Delete an action.
*
Expand Down
Loading