summaryrefslogtreecommitdiff
path: root/spec/functional/http
Commit message (Collapse)AuthorAgeFilesLines
* Fix TinyServer races.jk/tinyserver-raceJohn Keiser2016-08-221-2/+2
| | | | | | | | | | | | | | | 1. Wait for the start callback rather than the do block, as it happens later. This prevents us from getting into many conditions where the start returns before the server is fully initialized, where if stop() is called too soon after start returns, it would cause exceptions. 2. Wait for the thread to finish completely 3. Use Thread.current.abort_on_exception` to show the actual listen errors, so that problems like this can be diagnosed. 4. Use :each to start and stop TinyServer so that race conditions like this are exposed earlier and more often (this will let us rid ourselves of them more quickly). 5. Use WEBrick::HTTPServer directly, which gets rid of the need for the complicated trap workaround (rack is the one that traps).
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-9/+9
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Update to RSpec 3.Claire McQuin2014-10-291-1/+1
|
* Print out request and response body on non-2xx responsejk/http-error-logJohn Keiser2014-09-071-1/+57
|
* add CHEF::Rest#get func testsLamont Granquist2014-04-221-0/+1
|
* fix mixing should + expect rspec syntax in same fileLamont Granquist2014-04-221-4/+4
|
* CHEF-5100: moar func testsLamont Granquist2014-04-221-0/+24
| | | | | | | | This tests the reuse of the content length validation object and the situation where the content length of a previous download is retained while a 403 or other HTTP error fails to re-init the content length to zero. The result is the 403 is turned into an inaccurate content length exception, masking the real error.
* wrap methods in a moduleLamont Granquist2014-04-211-0/+2
|
* CHEF-5198: adding func tests for Chef::HTTP clientsLamont Granquist2014-04-111-0/+57
Start of func tests for Chef::REST and Chef::HTTP::Simple - Chef::REST is missing func tests against JSON endpoints using simple GET requests - HEAD and POST requests are also still missing, etc.