Skip to content
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

running tests fails on clean checkout #2

Closed
donpdonp opened this issue Jun 6, 2013 · 1 comment
Closed

running tests fails on clean checkout #2

donpdonp opened this issue Jun 6, 2013 · 1 comment

Comments

@donpdonp
Copy link

donpdonp commented Jun 6, 2013

Is there a way to generated the required 'vcr' files?

$ git clone docker-client
$ bundle install --path gems --binstubs
$ bin/rspec
  1) Docker::Connection returns a stream
     Failure/Error: response = subject.stream("/containers/#{id}/attach", params, timeout, {}) do |data|
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST http://10.0.5.5:4243/containers/c27ea9b11da9/attach?stdout=1&stream=1
@geku
Copy link
Owner

geku commented Jun 10, 2013

The 'vcr' files are in the repository but testing streaming responses does not work with VCR and hence these tests only work against a running Docker server. Such tests are tagged as live and all tests can run against a Docker server when the VCR config is changed to config.default_cassette_options = {:record => :all} (see spec_helper.rb:18). This is also the way to generate the VCR files. Maybe we can derive this setting from an environment variable later ...

Anyway I have now excluded live tests by default so that tests pass after a clean checkout.

@geku geku closed this as completed Jun 10, 2013
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

No branches or pull requests

2 participants