Skip to content

Commit 4a42584

Browse files
committed
test: adapt existing tests to the new role property (description)
1 parent acf5785 commit 4a42584

File tree

1 file changed

+29
-6
lines changed
  • owncloudTestUtil/src/main/java/com/owncloud/android/testutil

1 file changed

+29
-6
lines changed

owncloudTestUtil/src/main/java/com/owncloud/android/testutil/OCSpace.kt

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,21 @@ val SPACE_RESPONSE =
341341
val SPACE_PERMISSIONS_RESPONSE = SpacePermissionsResponse(
342342
actions = listOf("libre.graph/driveItem/permissions/delete", "libre.graph/driveItem/permissions/update"),
343343
roles = listOf(
344-
RoleResponse(displayName = "Can view", id = "a8d5fe5e-96e3-418d-825b-534dbdf22b99"),
345-
RoleResponse(displayName = "Can edit", id = "58c63c02-1d89-4572-916a-870abc5a1b7d"),
346-
RoleResponse(displayName = "Can manage", id = "312c0871-5ef7-4b3a-85b6-0e4074c64049")
344+
RoleResponse(
345+
displayName = "Can view",
346+
id = "a8d5fe5e-96e3-418d-825b-534dbdf22b99",
347+
description = "View and download."
348+
),
349+
RoleResponse(
350+
displayName = "Can edit",
351+
id = "58c63c02-1d89-4572-916a-870abc5a1b7d",
352+
description = "View, download, upload, edit, add, delete including the history."
353+
),
354+
RoleResponse(
355+
displayName = "Can manage",
356+
id = "312c0871-5ef7-4b3a-85b6-0e4074c64049",
357+
description = "View, download, upload, edit, add, delete and manage members."
358+
)
347359
),
348360
members = listOf(
349361
PermissionsResponse(
@@ -360,9 +372,20 @@ val SPACE_PERMISSIONS_RESPONSE = SpacePermissionsResponse(
360372

361373
val SPACE_MEMBERS = SpaceMembers(
362374
roles = listOf(
363-
OCRole(displayName = "Can view", id = "a8d5fe5e-96e3-418d-825b-534dbdf22b99"),
364-
OCRole(displayName = "Can edit", id = "58c63c02-1d89-4572-916a-870abc5a1b7d"),
365-
OCRole(displayName = "Can manage", id = "312c0871-5ef7-4b3a-85b6-0e4074c64049")
375+
OCRole(
376+
displayName = "Can view",
377+
id = "a8d5fe5e-96e3-418d-825b-534dbdf22b99",
378+
description = "View and download"
379+
),
380+
OCRole(
381+
displayName = "Can edit",
382+
id = "58c63c02-1d89-4572-916a-870abc5a1b7d",
383+
description = "View, download, upload, edit, add, delete including the history."
384+
),
385+
OCRole(
386+
displayName = "Can manage",
387+
id = "312c0871-5ef7-4b3a-85b6-0e4074c64049",
388+
description = "View, download, upload, edit, add, delete and manage members.")
366389
),
367390
members = listOf(
368391
SpaceMember(

0 commit comments

Comments
 (0)