Skip to content

Commit bbfa89b

Browse files
committed
fix test cases still containing numbers
1 parent 7f5cef7 commit bbfa89b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent_api/src/test/java/vulnerabilities/ssrf/RequestToServiceHostnameCheckerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class RequestToServiceHostnameCheckerTest {
1313
void testValidHostnames() {
1414
assertTrue(RequestToServiceHostnameChecker.isRequestToServiceHostname("valid_hostname"));
1515
assertTrue(RequestToServiceHostnameChecker.isRequestToServiceHostname("valid-hostname"));
16-
assertTrue(RequestToServiceHostnameChecker.isRequestToServiceHostname("valid123"));
16+
assertFalse(RequestToServiceHostnameChecker.isRequestToServiceHostname("valid123"));
1717
assertTrue(RequestToServiceHostnameChecker.isRequestToServiceHostname("hostname_with_underscores-and-dashes"));
18-
assertTrue(RequestToServiceHostnameChecker.isRequestToServiceHostname("123456"));
18+
assertFalse(RequestToServiceHostnameChecker.isRequestToServiceHostname("123456"));
1919
assertTrue(RequestToServiceHostnameChecker.isRequestToServiceHostname("a-b_c"));
2020
}
2121

0 commit comments

Comments
 (0)