Skip to content

Commit

Permalink
EPMRPP-94930 check for valid rally urls
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx committed Dec 17, 2024
1 parent c81f0f2 commit 77d4033
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ class IntegrationValidatorTest {

@ParameterizedTest
@CsvSource(value = {
"rally,https://rally1.rallydev.com",
"rally,https://rally1.rallydev.com/"
"https://rally1.rallydev.com",
"https://rally1.rallydev.com/"
}, delimiter = ',')
void validateThirdPartyUrl(String name, String url) {
void validateThirdPartyUrl(String url) {
Assertions.assertDoesNotThrow(() ->
IntegrationValidator.validateThirdPartyUrl(getIntegration(url)));
}

@ParameterizedTest
@CsvSource(value = {
"rally,http://rally1.rallydev.com",
"rally,https://zloi.hacker.com"
"http://rally1.rallydev.com",
"https://zloi.hacker.com"
}, delimiter = ',')
void validateThirdPartyUrlFailed(String url) {
Assertions.assertThrows(ReportPortalException.class, () ->
Expand Down

0 comments on commit 77d4033

Please sign in to comment.