GithubHelp home page GithubHelp logo

Comments (14)

chrisk avatar chrisk commented on June 17, 2024

Howdy Tim, cool change (nice tests!).

I'm wondering, what's your use case for this? Are you hitting an HTTP service that you consider to be part of the System Under Test, like a CouchDB instance or something?

Thanks,
Chris

from fakeweb.

CodeMonkeySteve avatar CodeMonkeySteve commented on June 17, 2024

BTW, I'm also looking for the same feature (thanks halorgium). In my case I am hitting a CouchDB instance, although I could see user other local services well.

from fakeweb.

halorgium avatar halorgium commented on June 17, 2024

I am accessing S3 directly.
Instead of mocking this part, I whitelist it and to a full HTTP integration.

from fakeweb.

brycethornton avatar brycethornton commented on June 17, 2024

I would like to see this functionality added in order to use webrat/selenium with fakeweb. I currently get this error:

FakeWeb::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: POST http://localhost:4444/selenium-server/driver/

from fakeweb.

duien avatar duien commented on June 17, 2024

I would love to see this implemented as well, for much the same reason as brycethornton. I've looked at halorgium's implementation as well as another from empact which is based on a more recent version of fakeweb. I like the look of halorgium's much better since it creates its own vocabulary instead of overloading existing terms.

from fakeweb.

freerobby avatar freerobby commented on June 17, 2024

I'm having the same issue as Bryce. Not being able to allow local requests through is a dealbreaker for using FakeWeb + Selenium.

from fakeweb.

rbxbx avatar rbxbx commented on June 17, 2024

I'd like to re-raise this issue. The patch provides exactly the functionality needed for selenium integration, it'd be silly to fork fakeweb and write it again just to send a pull request ;) (also, I don't particularly want to vendor the gem)

from fakeweb.

ldenman avatar ldenman commented on June 17, 2024

+1 for this patch. My case is for cucumber/capybara.

from fakeweb.

anagri avatar anagri commented on June 17, 2024

+1,
I have fakeweb to check my tests are not dependent on any external system.
but i have few javascript tests which runs with culerity, which calls localhost, and obviously are caught nicely by fakeweb.

If i have a whitelist of websites, i can include it in setup and run my integration test without hassle.

please update the status of this feature.

from fakeweb.

rubiii avatar rubiii commented on June 17, 2024

+1 (actually it's +4 cause our team depends on this :) we're using capybara and need to mock all soap requests. unfortunately capybara starts it's own little rack app upfront to check if it can start a server (or something). so we would need to allow that request!

from fakeweb.

dpmcnevin avatar dpmcnevin commented on June 17, 2024

Another vote for this because of cucumber with capybara

from fakeweb.

donaldpiret avatar donaldpiret commented on June 17, 2024

Vote here too for the same reason above

from fakeweb.

anagri avatar anagri commented on June 17, 2024

+1

from fakeweb.

chrisk avatar chrisk commented on June 17, 2024

This is fixed in 1.3.0! Thanks for your patience. See "Allowing requests to a specific server" in the README.

from fakeweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.