File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
agent_api/src/test/java/vulnerabilities/ssrf Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ class RequestToServiceHostnameCheckerTest {
13
13
void testValidHostnames () {
14
14
assertTrue (RequestToServiceHostnameChecker .isRequestToServiceHostname ("valid_hostname" ));
15
15
assertTrue (RequestToServiceHostnameChecker .isRequestToServiceHostname ("valid-hostname" ));
16
- assertTrue (RequestToServiceHostnameChecker .isRequestToServiceHostname ("valid123" ));
16
+ assertFalse (RequestToServiceHostnameChecker .isRequestToServiceHostname ("valid123" ));
17
17
assertTrue (RequestToServiceHostnameChecker .isRequestToServiceHostname ("hostname_with_underscores-and-dashes" ));
18
- assertTrue (RequestToServiceHostnameChecker .isRequestToServiceHostname ("123456" ));
18
+ assertFalse (RequestToServiceHostnameChecker .isRequestToServiceHostname ("123456" ));
19
19
assertTrue (RequestToServiceHostnameChecker .isRequestToServiceHostname ("a-b_c" ));
20
20
}
21
21
You can’t perform that action at this time.
0 commit comments