-
Notifications
You must be signed in to change notification settings - Fork 854
Fix MATCH_SET parsing of quoted items and add tests #13024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -314,7 +314,57 @@ sessions: | |
| - [ X-Testing, { value: "elif", as: equal } ] | ||
| - [ X-Pre-Else, { as: absent } ] | ||
|
|
||
| # Test 6: cond method GET | ||
| # Test 6: quoted set matching - second item "bar" should match | ||
| - transactions: | ||
| - client-request: | ||
| method: "GET" | ||
| version: "1.1" | ||
| url: /from_1/hrw-sets.png | ||
| headers: | ||
| fields: | ||
| - [ Host, www.example.com ] | ||
| - [ X-Quoted-Set, "bar" ] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is Might need to escape the quotes: - [ X-Quoted-Set, "\"bar\"" ]
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The quotes are on the hrw side. The header side are not expected to be quotes. These extra checks are to test that values past the first on match.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. The comment at line 317 threw me off. I thought this needed to test Proxy Verifier handing down literal quoted strings. |
||
| - [ uuid, quoted-set-match ] | ||
|
|
||
| server-response: | ||
| status: 200 | ||
| reason: OK | ||
| headers: | ||
| fields: | ||
| - [ Connection, close ] | ||
|
|
||
| proxy-response: | ||
| status: 200 | ||
| headers: | ||
| fields: | ||
| - [ X-Quoted-Set, { value: "Yes", as: equal } ] | ||
|
|
||
| # Test 7: quoted set matching - non-member should not match | ||
| - transactions: | ||
| - client-request: | ||
| method: "GET" | ||
| version: "1.1" | ||
| url: /from_1/hrw-sets.png | ||
| headers: | ||
| fields: | ||
| - [ Host, www.example.com ] | ||
| - [ X-Quoted-Set, "baz" ] | ||
| - [ uuid, quoted-set-nomatch ] | ||
|
|
||
| server-response: | ||
| status: 200 | ||
| reason: OK | ||
| headers: | ||
| fields: | ||
| - [ Connection, close ] | ||
|
|
||
| proxy-response: | ||
| status: 200 | ||
| headers: | ||
| fields: | ||
| - [ X-Quoted-Set, { value: "No", as: equal } ] | ||
|
|
||
| # Test 8: cond method GET | ||
| - transactions: | ||
| - client-request: | ||
| method: "GET" | ||
|
|
@@ -338,7 +388,7 @@ sessions: | |
| fields: | ||
| - [ Via, { as: present } ] | ||
|
|
||
| # Test 7: cond method DELETE | ||
| # Test 9: cond method DELETE | ||
| - transactions: | ||
| - client-request: | ||
| method: "DELETE" | ||
|
|
@@ -362,7 +412,7 @@ sessions: | |
| fields: | ||
| - [ Via, { as: present } ] | ||
|
|
||
| # Test 8: End [L] #5423 | ||
| # Test 10: End [L] #5423 | ||
| - transactions: | ||
| - client-request: | ||
| method: "GET" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.