Comments (14)
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.
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.
I am accessing S3 directly.
Instead of mocking this part, I whitelist it and to a full HTTP integration.
from fakeweb.
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.
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.
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.
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.
+1 for this patch. My case is for cucumber/capybara.
from fakeweb.
+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.
+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.
Another vote for this because of cucumber with capybara
from fakeweb.
Vote here too for the same reason above
from fakeweb.
+1
from fakeweb.
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)
- 1.3.0 does not recognize registered uri for post method
- FakeWeb stops @javascript (capybara & selenium) cukes from running. HOT 22
- Assigned but unused variable - uri in lib/fake_web/utility.rb:35
- using an https url HOT 2
- FakeWeb doesn't mimic Net::HTTP's check "#read_body called twice (IOError)"
- Different Responses to the same URI based on the passed data HOT 2
- "FakeWeb.allow_net_connect = true" doesn't work with PORO/ElasticSearch
- FakeWeb doesn't match non alphabetized query strings
- consider switching to Mocha 1.0 HOT 1
- please tag a new version and release a new gem HOT 4
- Unregister single URIs
- NetConnectNotAllowedError reports the URI different than what is acually being matched. HOT 3
- FakeWeb post method and check the request.body
- Too many connections error
- Release is desperately needed HOT 19
- Make it easier to access submitted data HOT 1
- Compatibility Issue with Ruby 2.4? HOT 2
- Test failures? HOT 4
- Regexp with query params fail without trailing slash after host
- Ruby 2 stops receiving security updates at the end of March
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fakeweb.