For the moment tests in 'manila.tests.api.v1.test_share_metadata' module
mock all DB requests.
It leads to failures in main code if we use DB-specific things.
So, refactor all tests in that module to use test DB to unblock usage of
DB-specific things.
Change-Id: Ia584e3e6bd02f937df7630a1d09d49c888f77c8f
Partial-Bug: #1528227
(cherry picked from commit 7319e0fe6f52c74b09fbfb4bca49ef49322ecc0e)
Reviewed: https:/ /review. openstack. org/280828 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=5e4d589c547 16aa990d1f39d98 e67497e305d60e
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 5e4d589c54716aa 990d1f39d98e674 97e305d60e
Author: Valeriy Ponomaryov <email address hidden>
Date: Thu Dec 17 15:53:40 2015 +0200
Refactor share metadata tests to use DB
For the moment tests in 'manila. tests.api. v1.test_ share_metadata' module
mock all DB requests.
It leads to failures in main code if we use DB-specific things.
So, refactor all tests in that module to use test DB to unblock usage of
DB-specific things.
Change-Id: Ia584e3e6bd02f9 37df7630a1d09d4 9c888f77c8f b09fbfb4bca49ef 49322ecc0e)
Partial-Bug: #1528227
(cherry picked from commit 7319e0fe6f52c74