aboutsummaryrefslogtreecommitdiffstats
path: root/security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2021-12-10 10:07:05 +0100
committerGitHub <noreply@github.com>2021-12-10 10:07:05 +0100
commit4bc0e6916d4532f00b735a79905e40f3b8eb51ea (patch)
tree498a0e8a20a7b38bf855ec90012342936207528f /security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java
parentd3f1831a29c6f5e0ab0eb59016270c7aaa5679e8 (diff)
parent286d3cb295bcb06e4bd051050e97b45b70c028f8 (diff)
Merge pull request #20441 from vespa-engine/bjorncs/uri-san-matching
Disable '?' as single char wildcard for URI matching
Diffstat (limited to 'security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java')
-rw-r--r--security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java b/security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java
index d598fbe1b84..c60c782da14 100644
--- a/security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java
+++ b/security-utils/src/test/java/com/yahoo/security/tls/policy/UriGlobPatternTest.java
@@ -20,6 +20,8 @@ class UriGlobPatternTest {
assertMatches("scheme://*/segment1/segment2", "scheme://hostname/segment1/segment2");
assertMatches("scheme://*.name/", "scheme://host.name/");
assertNotMatches("scheme://*", "scheme://hostname/");
+ assertMatches("scheme://hostname/mypath?query=value", "scheme://hostname/mypath?query=value");
+ assertNotMatches("scheme://hostname/?", "scheme://hostname/p");
}
private void assertMatches(String pattern, String value) {