Skip to content

Commit 6ac5a34

Browse files
svenzikmrts
authored andcommitted
Test for long localhost format [0000:0000:0000:0000:0000:0000:0000:0001]
WE2-932 Signed-off-by: Sven Mitt <[email protected]>
1 parent 3793c68 commit 6ac5a34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example/src/test/java/eu/webeid/example/config/YAMLConfigTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class YAMLConfigTest {
1717
"http://127.0.0.1",
1818
"http://127.0.0.1:8080",
1919
"http://[::1]",
20-
"http://[::1]:8080"
20+
"http://[::1]:8080",
21+
"http://[0000:0000:0000:0000:0000:0000:0000:0001]",
22+
"http://[0000:0000:0000:0000:0000:0000:0000:0001]:8080"
2123
})
2224
@ParameterizedTest
2325
void givenLocalOriginHttpLoopbackAddress_whenParsingLocalOrigin_thenItIsReplacedWithHttps(String origin) {
@@ -33,6 +35,8 @@ void givenLocalOriginHttpLoopbackAddress_whenParsingLocalOrigin_thenItIsReplaced
3335
"https://127.0.0.1:8080",
3436
"https://[::1]",
3537
"https://[::1]:8080",
38+
"https://[0000:0000:0000:0000:0000:0000:0000:0001]",
39+
"https://[0000:0000:0000:0000:0000:0000:0000:0001]:8080"
3640
})
3741
@ParameterizedTest
3842
void givenLocalOriginHttpsLoopbackAddress_whenParsingLocalOrigin_thenOriginalIsKept(String origin) {

0 commit comments

Comments
 (0)