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

Cannot run feature spec on container #2557

Closed
1 task done
esparta opened this issue Jul 19, 2019 · 0 comments
Closed
1 task done

Cannot run feature spec on container #2557

esparta opened this issue Jul 19, 2019 · 0 comments

Comments

@esparta
Copy link
Contributor

esparta commented Jul 19, 2019

I'm submitting a ..

  • Bug Report

Current behavior:
When executing Feature specs an error message appears on every scenario.

Expected correct behavior:
Every scenario on the Feature specs should be executed and not halted by an error before the scenario.

Steps to reproduce:
Execute any feature spec

docker-compose run --rm osem bundle exec rspec spec/features/conference_spec.rb

A error message is displayed and the scenario is not runned:

          WebMock::NetConnectNotAllowedError:                                                                            
            Real HTTP connections are disabled. Unregistered request: GET https://chromedriver.storage.googleapis.com/LAT
EST_RELEASE_75.0.3770 with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'
=>'chromedriver.storage.googleapis.com', 'User-Agent'=>'Ruby'}                                                           
                                                                                                                         
            You can stub this request with the following snippet:                                                        
                                                                                                                         
            stub_request(:get, "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_75.0.3770").                  
              with(                                                                                                      
                headers: {                                                                                               
                  'Accept'=>'*/*',                                                                                       
                  'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',                                          
                  'Host'=>'chromedriver.storage.googleapis.com',                                                         
                  'User-Agent'=>'Ruby'                                                                                   
                }).                                                                                                      
              to_return(status: 200, body: "", headers: {})                                                              
                                                                                                                         
            ============================================================   
AndrewKvalheim added a commit to AndrewKvalheim/osem that referenced this issue Apr 13, 2020
Resolves openSUSE#2557:

    $ docker-compose run --rm osem bundle exec rspec --tag js
    …
    WebMock::NetConnectNotAllowedError

See titusfortner/webdrivers#109 for details.
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

1 participant