Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Replace httpbin.org/gzip Tests with WebListener and Re-Enable Deflate Tests#4948

Merged
TravisEz13 merged 7 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
markekraus:ReplaceHttpBinGzipmarkekraus/PowerShell:ReplaceHttpBinGzipCopy head branch name to clipboard
Oct 2, 2017
Merged

Replace httpbin.org/gzip Tests with WebListener and Re-Enable Deflate Tests#4948
TravisEz13 merged 7 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
markekraus:ReplaceHttpBinGzipmarkekraus/PowerShell:ReplaceHttpBinGzipCopy head branch name to clipboard

Conversation

@markekraus

Copy link
Copy Markdown
Contributor
  • Add Compression/Gzip test to WebListener
  • Add Compression/Deflate test to WebListener
  • Replace tests using httpbin.org/gzip with WebListener
  • Re-enable testing for Deflate
  • Converted tests to -TestCase from foreach

I 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

}
}
# Validate response content
$result.Output.Headers.'Content-Encoding'[0] | Should Be $dataEncoding

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, Should BeExactly?

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread 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",

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread 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",

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@markekraus

Copy link
Copy Markdown
Contributor Author

test fails unrelated (#4958)

@SteveL-MSFT

Copy link
Copy Markdown
Member

@markekraus those numbers probably refer to old bugs we used to track internally in TFS, quite possibly no longer relevant

@adityapatwardhan

adityapatwardhan commented Oct 2, 2017

Copy link
Copy Markdown
Member

@markekraus The tests seemed to have hanged in Invoke-WebRequest tests. Please have a look.
https://travis-ci.org/PowerShell/PowerShell/jobs/281969182#L3388

@markekraus

Copy link
Copy Markdown
Contributor Author

@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

@markekraus

Copy link
Copy Markdown
Contributor Author

@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?

@SteveL-MSFT

Copy link
Copy Markdown
Member

@markekraus I restarted it for you

@markekraus

Copy link
Copy Markdown
Contributor Author

@SteveL-MSFT Thanks!
@adityapatwardhan all passing now.

@adityapatwardhan adityapatwardhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TravisEz13 TravisEz13 merged commit 15a6c57 into PowerShell:master Oct 2, 2017
@markekraus markekraus deleted the ReplaceHttpBinGzip branch January 19, 2018 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.