If you set up requests_mock to catch all requests (which I would
recommend) you sometimes get caught with things like file:// paths that
should be allowed to reach the filesystem.
To do this we should allow you to add a matcher that says a specific
route can bypass the catch all and do a real request.
This is a bit of a layer violation but I thought it was easy to start
with, then realized why it wasn't.
Reviewed: https:/ /review. openstack. org/360189 /git.openstack. org/cgit/ openstack/ requests- mock/commit/ ?id=b2026313e30 4e92312b0cbae3f f266626b068953
Committed: https:/
Submitter: Jenkins
Branch: master
commit b2026313e304e92 312b0cbae3ff266 626b068953
Author: Jamie Lennox <email address hidden>
Date: Thu Aug 25 12:49:39 2016 +1000
Allow doing real_http per mock via the mocker
If you set up requests_mock to catch all requests (which I would
recommend) you sometimes get caught with things like file:// paths that
should be allowed to reach the filesystem.
To do this we should allow you to add a matcher that says a specific
route can bypass the catch all and do a real request.
This is a bit of a layer violation but I thought it was easy to start
with, then realized why it wasn't.
Change-Id: Ic2516f78413b88 a489c8d6bd2bc39 b8ebb5bf273
Closes-Bug: #1501665