8000 add test for request with # character (#85) · istio/istio@f05854a · GitHub
[go: up one dir, main page]

Skip to content

Commit f05854a

Browse files
authored
add test for request with # character (#85)
1 parent 084b417 commit f05854a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/security/normalization_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func TestNormalization(t *testing.T) {
5151
meshconfig.MeshConfig_ProxyPathNormalization_NONE,
5252
[]expect{
5353
{"/", "/"},
54+
{"/app#foo", "/app"},
5455
{"/app/", "/app/"},
5556
{"/app/../admin", "/app/../admin"},
5657
{"/app", "/app"},
@@ -71,6 +72,7 @@ func TestNormalization(t *testing.T) {
7172
meshconfig.MeshConfig_ProxyPathNormalization_BASE,
7273
[]expect{
7374
{"/", "/"},
75+
{"/app#foo", "/app"},
7476
{"/app/", "/app/"},
7577
{"/app/../admin", "/admin"},
7678
{"/app", "/app"},
@@ -91,6 +93,7 @@ func TestNormalization(t *testing.T) {
9193
meshconfig.MeshConfig_ProxyPathNormalization_MERGE_SLASHES,
9294
[]expect{
9395
{"/", "/"},
96+
{"/app#foo", "/app"},
9497
{"/app/", "/app/"},
9598
{"/app/../admin", "/admin"},
9699
{"/app", "/app"},
@@ -111,6 +114,7 @@ func TestNormalization(t *testing.T) {
111114
meshconfig.MeshConfig_ProxyPathNormalization_DECODE_AND_MERGE_SLASHES,
11 56DC 2115
[]expect{
113116
{"/", "/"},
117+
{"/app#foo", "/app"},
114118
{"/app/", "/app/"},
115119
{"/app/../admin", "/admin"},
116120
{"/app", "/app"},

0 commit comments

Comments
 (0)
0