Skip to content

Commit

Permalink
Merge pull request #22389 from malithie/rule-evaluation
Browse files Browse the repository at this point in the history
Add pre issue access token action tests with rules.
  • Loading branch information
malithie authored Jan 24, 2025
2 parents 67bc112 + 7105937 commit 626c5c2
Show file tree
Hide file tree
Showing 6 changed files with 821 additions and 1 deletion.
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

0 comments on commit 626c5c2

Please sign in to comment.