manila/manila
Gaurang Tapase f1eded1fbc Fix usage of dependencies
Manila is broken is threee places, so fix them:
1) test 'test_misc' with WebOb 1.5

WebOb 1.5 was released at 2015-10-11. With this new version,
webob.exc.WSGIHTTPException() constructor now fails with a KeyError
when the HTTP status code is 0.

test_exceptions_raise() of test_misc tries to instantiate all
exceptions of manila.exception. The problem is that
ConvertedException uses a default HTTP status code of 0.

Modify the default HTTP status code of ConvertedException to 400 to
fix the unit tests.

2) Add dependency for 'testresources' that is required by migration
tests.

3) Remove 2 unit tests related to testing of oslo.policy lib
functionality that should not be tested in Manila. It started failing
because under-the-hood behaviour was changed in new realese 0.12.0

Closes-Bug: #1505153
Closes-Bug: #1505374

(cherry picked from commit 9c99814ce5)

-- squashed with another change to get tests to pass on stable/liberty --

Fix broken unit tests

With release of six module version 1.10.0 several our unit tests
started to fail because of usage of not strict constructions.

Changes:
1) Manila unit test
"manila.tests.share.test_api.ShareAPITestCase.test_extend_quota_error"
used str for int substitution. So, use int data for int substitution.

2) Module 'manila.share.drivers.hp.hp_3par_mediator' was using
LOG.exception function when no traceback were exist it led to
AttributeError on py34. So, replace all usages of 'LOG.exception'
with 'LOG.error' where no raised exceptions exist.

Change-Id: Ic5b37bfb9d939d03f6ff68bc53d134bf9e5f996e
Closes-Bug: #1503969
(cherry picked from commit f38b8d4efd)

--

Change-Id: I0f28f3c3fb2c7eec1bafc3a617344990f86810cf
2015-10-13 11:36:47 -07:00
..
api Fix error response when denying snapshot creation 2015-09-21 16:46:15 +03:00
cmd Fix display of availability-zone for manila-manage command 2015-10-01 14:53:50 +00:00
common Non-admin user can perform 'extra-specs-list' 2015-09-16 18:14:25 +00:00
compute Fix usage of novaclient 2015-09-09 13:18:36 +03:00
consistency_group Add Consistency Groups API 2015-09-05 18:21:17 -04:00
db Fix deletion of error state access rules 2015-10-01 12:29:24 +00:00
hacking Use Tempest plugin interface 2015-09-05 00:36:33 +00:00
locale Imported Translations from Transifex 2015-05-03 08:14:17 +02:00
network Merge "Lazy Load Services" 2015-08-26 06:31:41 +00:00
openstack Add availability zones support 2015-08-26 18:48:16 +03:00
scheduler Can't create shares on drivers that don't support snapshots 2015-10-01 06:43:00 +00:00
share Fix usage of dependencies 2015-10-13 11:36:47 -07:00
testing Rewrited mox tests to mock (part 2) 2014-06-17 17:55:21 +03:00
tests Fix usage of dependencies 2015-10-13 11:36:47 -07:00
volume Fix exceptions handling for py34 compatibility 2015-08-05 17:15:46 +03:00
__init__.py Remove vim headers 2014-10-06 15:00:27 +02:00
context.py Remove unused oslo-incubator modules 2015-04-25 16:24:09 +00:00
exception.py Fix usage of dependencies 2015-10-13 11:36:47 -07:00
i18n.py Switch to using oslo_* instead of oslo.* 2015-01-27 09:19:50 +01:00
manager.py Reuse 'periodic_task' from oslo_service 2015-07-20 19:38:19 +03:00
opts.py glusterfs*: fix ssh credential options 2015-09-22 12:36:47 +02:00
policy.py Use oslo_policy lib instead of oslo-incubator code 2015-04-21 13:05:42 +03:00
quota.py Replace (int, long) with six.integer_types 2015-07-31 07:12:12 -04:00
rpc.py Drop use of 'oslo' namespace package 2015-04-29 16:51:33 +03:00
service.py Add availability zones support 2015-08-26 18:48:16 +03:00
test.py Lazy Load Services 2015-08-24 16:55:00 -04:00
utils.py Adds retry function to HNAS driver 2015-09-11 11:54:04 -03:00
version.py Remove vim headers 2014-10-06 15:00:27 +02:00
wsgi.py Fix string/binary conversions for py34 compatibility 2015-08-07 15:33:36 +03:00