Removed 'subscriber' cap from 'admin' role

This allows admins to test what happens when users do not have a
subscription. To give the user subscriber capability, just grant demo role
as well.
This commit is contained in:
2017-12-06 11:59:01 +01:00
parent 1e012f860b
commit 2bcc26860f
4 changed files with 7 additions and 6 deletions

View File

@@ -677,7 +677,7 @@ class RequireRolesTest(AbstractPillarTest):
self.assertFalse(called[0])
with self.app.test_request_context():
self.login_api_as(ObjectId(24 * 'a'), ['admin'])
self.login_api_as(ObjectId(24 * 'a'), ['demo'])
call_me()
self.assertTrue(called[0])