|
1 | 1 | <ApiTests xmlns="http://labkey.org/query/xml"> |
2 | 2 |
|
3 | 3 | <test name="get group permissions" type="get"> |
4 | | - <url>Security%20API%20Test%20Project/security-getGroupPerms.view?</url> |
| 4 | + <url>Security%20API%20Test%20Project/security-getGroupPerms.api</url> |
5 | 5 | <response> |
6 | 6 | {"container": |
7 | 7 | { |
|
93 | 93 | </response> |
94 | 94 | </test> |
95 | 95 |
|
| 96 | + <test name="get group permissions excluding groups without effective permissions" type="get"> |
| 97 | + <url>Security%20API%20Test%20Project/security-getGroupPerms.api?includeEmptyPermGroups=false</url> |
| 98 | + <response> |
| 99 | + {"container": |
| 100 | + { |
| 101 | + "id": "THIS CONTAINER GUID FIELD IS IGNORED IN JSON CHECK", |
| 102 | + "name": "Security API Test Project", |
| 103 | + "path": "/Security API Test Project", |
| 104 | + "isInheritingPerms": false, |
| 105 | + "groups": [ |
| 106 | + { |
| 107 | + "id": 1672, |
| 108 | + "name": "testgroup1", |
| 109 | + "roles": ["org.labkey.api.security.roles.EditorRole"], |
| 110 | + "isSystemGroup": false, |
| 111 | + "isProjectGroup": true, |
| 112 | + "type": "g", |
| 113 | + "effectivePermissions": [ |
| 114 | + "org.labkey.api.security.permissions.InsertPermission", |
| 115 | + "org.labkey.api.security.permissions.DeletePermission", |
| 116 | + "org.labkey.api.security.permissions.EditSharedViewPermission", |
| 117 | + "org.labkey.api.reports.permissions.EditSharedReportPermission", |
| 118 | + "org.labkey.api.security.permissions.ReadPermission", |
| 119 | + "org.labkey.api.reports.permissions.ShareReportPermission", |
| 120 | + "org.labkey.api.study.permissions.SharedParticipantGroupPermission", |
| 121 | + "org.labkey.announcements.model.SecureMessageBoardRespondPermission", |
| 122 | + "org.labkey.api.security.permissions.ReadSomePermission", |
| 123 | + "org.labkey.api.lists.permissions.ManagePicklistsPermission", |
| 124 | + "org.labkey.api.security.permissions.UpdatePermission", |
| 125 | + "org.labkey.announcements.model.SecureMessageBoardReadPermission", |
| 126 | + "org.labkey.api.security.permissions.SampleWorkflowDeletePermission", |
| 127 | + "org.labkey.api.security.permissions.SampleWorkflowJobPermission", |
| 128 | + "org.labkey.api.security.permissions.AssayReadPermission", |
| 129 | + "org.labkey.api.security.permissions.NotebookReadPermission", |
| 130 | + "org.labkey.api.security.permissions.DataClassReadPermission", |
| 131 | + "org.labkey.api.security.permissions.MediaReadPermission", |
| 132 | + "org.labkey.api.security.permissions.MoveEntitiesPermission", |
| 133 | + ], |
| 134 | + "groups": [] |
| 135 | + }, |
| 136 | + { |
| 137 | + "id": 1673, |
| 138 | + "name": "testgroup2", |
| 139 | + "roles": ["org.labkey.api.security.roles.ReaderRole"], |
| 140 | + "isSystemGroup": false, |
| 141 | + "isProjectGroup": true, |
| 142 | + "type": "g", |
| 143 | + "effectivePermissions": [ |
| 144 | + "org.labkey.api.security.permissions.ReadPermission", |
| 145 | + "org.labkey.api.security.permissions.ReadSomePermission", |
| 146 | + "org.labkey.api.security.permissions.AssayReadPermission", |
| 147 | + "org.labkey.api.security.permissions.DataClassReadPermission", |
| 148 | + "org.labkey.api.security.permissions.NotebookReadPermission", |
| 149 | + "org.labkey.api.security.permissions.MediaReadPermission" |
| 150 | + ], |
| 151 | + "groups": [] |
| 152 | + } |
| 153 | + ] |
| 154 | + } |
| 155 | + } |
| 156 | + </response> |
| 157 | + </test> |
| 158 | + |
96 | 159 | <test name="groups for current user" type="get"> |
97 | | - <url>Security%20Api%20Test%20Project/security-getGroupsForCurrentUser.view?</url> |
| 160 | + <url>Security%20Api%20Test%20Project/security-getGroupsForCurrentUser.api</url> |
98 | 161 | <response> |
99 | 162 | {"groups": [ |
100 | 163 | { |
|
115 | 178 | </test> |
116 | 179 |
|
117 | 180 | <test name="ensure login" type="get"> |
118 | | - <url>Security%20Api%20Test%20Project/security-ensureLogin.view?</url> |
| 181 | + <url>Security%20Api%20Test%20Project/security-ensureLogin.api</url> |
119 | 182 | <response> |
120 | 183 | {"currentUser": |
121 | 184 | { |
|
0 commit comments