Skip to content

Commit

Permalink
Merge pull request #2 from reportportal/EPMRPP-89887-monday-global-in…
Browse files Browse the repository at this point in the history
…tegration

EPMRPP-89887 || Update validation for the wrong link in integration
  • Loading branch information
IvanKustau authored Apr 29, 2024
2 parents 2f9c123 + a8ee57f commit 52b0941
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public Boolean executeCommand(Integration integration, Map<String, Object> param
"Integration params are not specified."
));

String url = MondayProperties.URL.getParam(integrationParams);

if (!url.startsWith("https://") || !url.contains(".monday.com")) {
throw new ReportPortalException(ErrorType.UNABLE_INTERACT_WITH_INTEGRATION,
"Invalid URL.");
}

String boardId = MondayProperties.PROJECT.getParam(integrationParams);

MondayClient mondayClient = mondayClientProvider.provide(integrationParams);
Expand Down

0 comments on commit 52b0941

Please sign in to comment.