diff --git a/src/main/java/com/epam/reportportal/extension/monday/command/connection/TestConnectionCommand.java b/src/main/java/com/epam/reportportal/extension/monday/command/connection/TestConnectionCommand.java index 8c5a0d5..c3aedf0 100644 --- a/src/main/java/com/epam/reportportal/extension/monday/command/connection/TestConnectionCommand.java +++ b/src/main/java/com/epam/reportportal/extension/monday/command/connection/TestConnectionCommand.java @@ -51,6 +51,13 @@ public Boolean executeCommand(Integration integration, Map 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);