After merge of following commit: 4f17b8d837ebad4ef2e8ae5fe95ea968c7b8b587
appears unstable error when we get denial from policy check.
'Fix' mocks policy.check_policy method and tests that it was called.
We do not test policy actions in related unittest suite located in
'manila.tests.api.v1.test_share_networks' module, and should not.
Reviewed: https:/ /review. openstack. org/117461 /git.openstack. org/cgit/ stackforge/ manila/ commit/ ?id=140d594c042 de324fb5ab3c187 cf1564c9733140
Committed: https:/
Submitter: Jenkins
Branch: master
commit 140d594c042de32 4fb5ab3c187cf15 64c9733140
Author: vponomaryov <email address hidden>
Date: Thu Aug 28 12:19:11 2014 +0300
Fix concurrent policy issue in unittest
After merge of following commit: 4f17b8d837ebad4 ef2e8ae5fe95ea9 68c7b8b587 tests.api. v1.test_ share_networks' module, and should not.
appears unstable error when we get denial from policy check.
'Fix' mocks policy.check_policy method and tests that it was called.
We do not test policy actions in related unittest suite located in
'manila.
Change-Id: I8885fa622e603c 2e1882709d427e2 fd1b532197c
Closes-Bug: #1362468