[PATCH] [Gingerbase] Fix patch_auth() call according to Wok changes

0 views
Skip to first unread message

Aline Manera

unread,
Feb 16, 2017, 12:24:28 PM2/16/17
to Ginger Devel
DEPENDS ON WOK PATCH:
- [Wok 2/3] Specify user when doing a request instead of trying to override FakeUser class attribute

Aline Manera (1):
Fix patch_auth() call according to Wok changes

tests/test_authorization.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--
2.9.3

Aline Manera

unread,
Feb 16, 2017, 12:24:38 PM2/16/17
to Ginger Devel
Signed-off-by: Aline Manera <ali...@linux.vnet.ibm.com>
---
tests/test_authorization.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_authorization.py b/tests/test_authorization.py
index eb2ca58..131862e 100644
--- a/tests/test_authorization.py
+++ b/tests/test_authorization.py
@@ -30,7 +30,7 @@ test_server = None
def setUpModule():
global test_server

- patch_auth(sudo=False)
+ patch_auth()
test_server = run_server(test_mode=True)


@@ -40,7 +40,7 @@ def tearDownModule():

class AuthorizationTests(unittest.TestCase):
def setUp(self):
- self.request = partial(request)
+ self.request = partial(request, user='user')

def test_nonroot_access(self):
# Non-root users can access static host information
--
2.9.3

Aline Manera

unread,
Feb 20, 2017, 7:30:45 PM2/20/17
to ginger-...@googlegroups.com

Wok patch was already applied.

Daniel Henrique Barboza

unread,
Feb 23, 2017, 8:05:45 AM2/23/17
to ginger-...@googlegroups.com
Applied. Thanks!

On 02/16/2017 03:23 PM, Aline Manera wrote:
Reply all
Reply to author
Forward
0 new messages