aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src/test/resources
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-20 14:13:10 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-02-20 14:13:22 +0100
commit884231b56a62223f15a52e98eb9ad1fcc0dcaefe (patch)
tree0f118a47efecd19db7f11d0c041503f463e7a82b /sonar-core/src/test/resources
parentb227895a78827fc705b845e50edb3bd8f02f4e8c (diff)
downloadsonarqube-884231b56a62223f15a52e98eb9ad1fcc0dcaefe.tar.gz
sonarqube-884231b56a62223f15a52e98eb9ad1fcc0dcaefe.zip
Add some unit tests
Diffstat (limited to 'sonar-core/src/test/resources')
-rw-r--r--sonar-core/src/test/resources/org/sonar/core/user/AuthorizationDaoTest/is_authorized_component_key_for_global_permission.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/sonar-core/src/test/resources/org/sonar/core/user/AuthorizationDaoTest/is_authorized_component_key_for_global_permission.xml b/sonar-core/src/test/resources/org/sonar/core/user/AuthorizationDaoTest/is_authorized_component_key_for_global_permission.xml
new file mode 100644
index 00000000000..c5cd325ea5e
--- /dev/null
+++ b/sonar-core/src/test/resources/org/sonar/core/user/AuthorizationDaoTest/is_authorized_component_key_for_global_permission.xml
@@ -0,0 +1,15 @@
+<dataset>
+
+ <!-- user 100 has no direct grant access, but is in the group 200 that has the role "user"
+ on the all the projects -->
+ <user_roles id="1" user_id="100" resource_id="999" role="user"/>
+ <groups_users user_id="100" group_id="200"/>
+ <group_roles id="1" group_id="200" resource_id="[null]" role="user"/>
+
+ <projects id="301" kee="pj-w-snapshot:package" root_id="300" uuid="ABCD" module_uuid="DEFG"/>
+ <projects id="302" kee="pj-w-snapshot:file" root_id="300" uuid="BCDE" module_uuid="DEFG"/>
+ <projects id="303" kee="pj-w-snapshot:other" root_id="300" uuid="CDEF" module_uuid="DEFG"/>
+ <projects id="300" kee="pj-w-snapshot" uuid="DEFG" module_uuid="[null]"/>
+ <projects id="400" kee="pj-wo-snapshot" uuid="EFGH" module_uuid="[null]"/>
+
+</dataset>