-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Replace httpbin.org/gzip Tests with WebListener and Re-Enable Deflate Tests #4948
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
Conversation
| } | ||
| } | ||
| # Validate response content | ||
| $result.Output.Headers.'Content-Encoding'[0] | Should Be $dataEncoding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, Should BeExactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| # Validate response content | ||
| $result.Output.Headers.'Content-Encoding'[0] | Should Be $dataEncoding | ||
| $jsonContent = $result.Output.Content | ConvertFrom-Json | ||
| $jsonContent.Headers.Host | Should Be $uri.Authority |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| } | ||
| } | ||
| # Validate response content | ||
| $headers.'Content-Encoding'[0] | Should Be $dataEncoding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| } | ||
| # Validate response content | ||
| $headers.'Content-Encoding'[0] | Should Be $dataEncoding | ||
| $result.Headers.Host | Should Be $uri.Authority |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
test/tools/WebListener/README.md
Outdated
| "args": {}, | ||
| "origin": "127.0.0.1", | ||
| "headers": { | ||
| "User-Agent": "Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.15063.608", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be PowerShell/6.0.0 instead of WindowsPowerShell?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
test/tools/WebListener/README.md
Outdated
| "args": {}, | ||
| "origin": "127.0.0.1", | ||
| "headers": { | ||
| "User-Agent": "Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.15063.608", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be PowerShell/6.0.0 instead of WindowsPowerShell?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
test fails unrelated (#4958) |
|
@markekraus those numbers probably refer to old bugs we used to track internally in TFS, quite possibly no longer relevant |
|
@markekraus The tests seemed to have hanged in Invoke-WebRequest tests. Please have a look. |
|
@adityapatwardhan I'm not sure it is related. https://travis-ci.org/PowerShell/PowerShell/jobs/281240156 had passed and the only changes since were superficial. I think it was a random macOS issue on Travis CI. I've pushed an empty commit to rerun the tests |
|
@adityapatwardhan speaking of unrelated macOS failures in Travis CI https://travis-ci.org/PowerShell/PowerShell/jobs/282354703 :( Does someone have access to restart just that Job? Or should just push another empty commit? |
|
@markekraus I restarted it for you |
|
@SteveL-MSFT Thanks! |
adityapatwardhan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Compression/Gziptest to WebListenerCompression/Deflatetest to WebListener-TestCasefromforeachI have no idea what ''7976639:Invoke-WebRequest does not support -TransferEncoding deflate'' and "7976639:Invoke-RestMethod does not support -TransferEncoding deflate" are, but in my limited testing it appears to no longer be true.
reference #2504