Skip to content

Instantly share code, notes, and snippets.

@gondoi
Created July 30, 2014 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gondoi/1e8e5c9d161b44cd0431 to your computer and use it in GitHub Desktop.
Save gondoi/1e8e5c9d161b44cd0431 to your computer and use it in GitHub Desktop.
404s with new chef-zero
$ bundle exec rspec test/unit/spec/
[2014-07-30T15:59:17-05:00] DEBUG: No chefignore file found at /var/folders/6x/nxr258v10j92x646f7n89rsh0000gn/T/d20140730-34083-xkebbp/chefignore no files will be ignored
[2014-07-30T15:59:17-05:00] INFO: Saving apt
[2014-07-30T15:59:17-05:00] INFO: Saving build-essential
[2014-07-30T15:59:17-05:00] INFO: Saving chef-sugar
[2014-07-30T15:59:17-05:00] INFO: Saving redis-multi
[2014-07-30T15:59:17-05:00] INFO: Saving redisio
[2014-07-30T15:59:17-05:00] INFO: Saving ulimit
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2014-07-30T15:59:17-05:00] DEBUG: Signing the request as chefspec
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
[2014-07-30T15:59:17-05:00] DEBUG: Initiating POST to http://127.0.0.1:64498/sandboxes
[2014-07-30T15:59:17-05:00] DEBUG: ---- HTTP Request Header Data: ----
[2014-07-30T15:59:17-05:00] DEBUG: Content-Type: application/json
[2014-07-30T15:59:17-05:00] DEBUG: Accept: application/json
[2014-07-30T15:59:17-05:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-USERID: chefspec
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-TIMESTAMP: 2014-07-30T20:59:17Z
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-CONTENT-HASH: s06XcFONG7rid7Q/RELJCfdF4/o=
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-AUTHORIZATION-1: eMxN+PNcocuu2MNtGuGTdyxBpwFvXPH6TyspTA5a4B5LndPcuYYIT6oWDE41
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-AUTHORIZATION-2: WFRONOgB1BAAyvWJXAYC40GLtaETZxA22eRC8d7BkxW1woZPCW7s7LAaWLER
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-AUTHORIZATION-3: Fi6vCAEbZJ6skAZFs1L0W/ljh+1xKqyk7J2tJel2/fePCLimId8IW5p27fWU
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-AUTHORIZATION-4: XauIev7jBQQCDF2iZjhQ1GXtYhsxSR9gLcazR/3xF+KcepTsKu8AZo6VA6l6
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-AUTHORIZATION-5: VMZdv7TnlTbkGiah/e1kkvkcZ87HBMnfo/EpABekBqUxQ8minocufwZMIa5g
[2014-07-30T15:59:17-05:00] DEBUG: X-OPS-AUTHORIZATION-6: 4WyXMjEASgwkGi0KpD/+UYlFQ3dcBkUs+ALvDNWu1A==
[2014-07-30T15:59:17-05:00] DEBUG: HOST: 127.0.0.1:64498
[2014-07-30T15:59:17-05:00] DEBUG: X-REMOTE-REQUEST-ID: 086897bb-6468-427e-b4dc-52e95d23211f
[2014-07-30T15:59:17-05:00] DEBUG: Content-Length: 4295
[2014-07-30T15:59:17-05:00] DEBUG: ---- End HTTP Request Header Data ----
[2014-07-30T15:59:17-05:00] DEBUG: ---- HTTP Status and Header Data: ----
[2014-07-30T15:59:17-05:00] DEBUG: HTTP 1.1 404 Not Found
[2014-07-30T15:59:17-05:00] DEBUG: content-type: application/json
[2014-07-30T15:59:17-05:00] DEBUG: server: chef-zero
[2014-07-30T15:59:17-05:00] DEBUG: date: Wed, 30 Jul 2014 20:59:17 GMT
[2014-07-30T15:59:17-05:00] DEBUG: content-length: 55
[2014-07-30T15:59:17-05:00] DEBUG: connection: close
[2014-07-30T15:59:17-05:00] DEBUG: ---- End HTTP Status/Header Data ----
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
[2014-07-30T15:59:17-05:00] DEBUG: Content-Length validated correctly.
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response
[2014-07-30T15:59:17-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
[2014-07-30T15:59:17-05:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /sandboxes
F
Failures:
1) redis-multi::single starts the default redis service
Failure/Error: ChefSpec::Runner.new(log_level: :debug).converge(described_recipe)
Net::HTTPServerException:
404 "Not Found "
# ./test/unit/spec/default_spec.rb:7:in `new'
# ./test/unit/spec/default_spec.rb:7:in `block (2 levels) in <top (required)>'
# ./test/unit/spec/default_spec.rb:11:in `block (2 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment