|
a/Allura/allura/tests/test_security.py |
|
b/Allura/allura/tests/test_security.py |
|
|
1 |
from unittest import TestCase
|
|
|
2 |
from allura import model as M
|
|
|
3 |
from allura.lib import plugin
|
|
|
4 |
|
1 |
from allura.tests import TestController
|
5 |
from allura.tests import TestController
|
|
|
6 |
|
|
|
7 |
from alluratest.controller import setup_basic_test, setup_unit_test
|
2 |
|
8 |
|
3 |
class TestSecurity(TestController):
|
9 |
class TestSecurity(TestController):
|
4 |
|
10 |
|
5 |
validate_skip = True
|
11 |
validate_skip = True
|
6 |
|
12 |
|
|
... |
|
... |
16 |
self.app.get('/security/test-admin/needs_project_access_fail', status=403)
|
22 |
self.app.get('/security/test-admin/needs_project_access_fail', status=403)
|
17 |
self.app.get('/security/test-admin/needs_project_access_ok', status=200)
|
23 |
self.app.get('/security/test-admin/needs_project_access_ok', status=200)
|
18 |
self.app.get('/security/test-admin/needs_artifact_access_fail', status=403)
|
24 |
self.app.get('/security/test-admin/needs_artifact_access_fail', status=403)
|
19 |
self.app.get('/security/test-admin/needs_artifact_access_ok', status=200)
|
25 |
self.app.get('/security/test-admin/needs_artifact_access_ok', status=200)
|
20 |
|
26 |
|
21 |
|
|
|
22 |
|
|
|