horizon/openstack_dashboard/dashboards/project/access_and_security
David Lyle 037d1c0927 removing httplib2 test dependency
Once upon a time, the python-*client libraries were primarily built to
use httplib2. They have subsequently shift to using requests and thus
urllib3. The horizon test helpers code was maintaining a reference to
httplib2 as it intercepted errant library calls that were not mocked.

httplib2 is not actively maintained and OpenStack is moving to remove it
as a dependency. See
http://lists.openstack.org/pipermail/openstack-dev/2016-March/089225.html
for more details.

This patch removed the httplib2 dependency. Upon removing the
dependency it exposed a missed update from httplib2 to urllib3. A
function that was intended to catch unmocked calls was only listening
for httplib2 connections. This patch updates that failsafe to work with
urllib3. Upon doing so, it pointed out many, many missing mocks and in
turn, many broken tests that appeared to work because of API call
failures. This patch adds the missing mocks and fixes the broken tests.

The new failsafe prints the stack trace when an outside connection is
attempted. Additionally, to fix the fact that a missed mock used to
allow tests to potentially pass, as documented by bug 1517704, a test
failure is now forced on tests where a missing mock is detected.

Closes-Bug: #1517704
Implements blueprint: remove-httplib2-dep
Change-Id: Iaabdf03966c14c82e0c58a3b1ab1a6755c05adcb
2016-05-02 13:19:08 -06:00
..
api_access Angular vs. Django Table Danger Button Inconsistency 2016-04-13 09:13:34 -07:00
floating_ips removing httplib2 test dependency 2016-05-02 13:19:08 -06:00
keypairs Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00
security_groups Merge "Set description field as required for nova-network" 2016-04-14 20:04:26 +00:00
templates/access_and_security Branding: Workflow cancel btn should be themable 2016-03-14 12:48:11 -07:00
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
panel.py Move Horizon to pure plugin loading only 2015-08-03 14:49:31 -06:00
tabs.py Do not make unnecessary calls to Nova from FIPs and Volumes tabs 2016-03-16 10:12:55 +00:00
tests.py removing httplib2 test dependency 2016-05-02 13:19:08 -06:00
urls.py Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00
views.py Reduce page title duplication in A and S views 2015-02-11 16:35:14 +00:00