|
42 | 42 | import org.labkey.api.security.permissions.AbstractContainerScopingTest; |
43 | 43 | import org.labkey.api.security.permissions.ReadPermission; |
44 | 44 | import org.labkey.api.security.permissions.UpdatePermission; |
45 | | -import org.labkey.api.security.roles.ReaderRole; |
| 45 | +import org.labkey.api.security.roles.EditorRole; |
46 | 46 | import org.labkey.api.util.FileUtil; |
47 | 47 | import org.labkey.api.util.Path; |
48 | | -import org.labkey.api.util.UnexpectedException; |
49 | 48 | import org.labkey.api.view.ActionURL; |
50 | 49 | import org.labkey.api.webdav.WebdavResource; |
51 | 50 | import org.labkey.api.webdav.WebdavService; |
@@ -247,7 +246,7 @@ public void setup() throws Exception |
247 | 246 | { |
248 | 247 | _folderA = createContainer("A"); |
249 | 248 | _folderB = createContainer("B"); |
250 | | - _readerA = createUserInRole(_folderA, ReaderRole.class); |
| 249 | + _readerA = createUserInRole(_folderA, EditorRole.class); |
251 | 250 | } |
252 | 251 |
|
253 | 252 | @Test |
@@ -283,10 +282,10 @@ public void testGetSignalDataResourceContainerScoping() throws Exception |
283 | 282 | */ |
284 | 283 | private static ActionURL resourceUrl(Container requestContainer, Container fileContainer, String name) |
285 | 284 | { |
286 | | - String path = filesPath(fileContainer).append(name).toString(); |
| 285 | + String[] paths = { filesPath(fileContainer).append(name).toString() }; |
| 286 | + String[] files = { name }; |
287 | 287 | return new ActionURL(getSignalDataResourceAction.class, requestContainer) |
288 | | - .addParameter("path", path) |
289 | | - .addParameter("test", true); |
| 288 | + .addParameters(Map.of("paths", paths, "files", files)); |
290 | 289 | } |
291 | 290 |
|
292 | 291 | private static Path filesPath(Container c) |
|
0 commit comments