mirror of
https://github.com/nextcloud/tables.git
synced 2025-08-16 15:17:20 +00:00
test(integration): add case on create context with inaccessible view
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
@ -129,6 +129,18 @@ Feature: APIv2
|
||||
And user "participant1-v2" fetches all Contexts
|
||||
Then they will find Contexts "" and no other
|
||||
|
||||
@api2 @contexts
|
||||
Scenario: Attempt to create a context containing an inaccessible view
|
||||
Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2
|
||||
And table "Table 2 via api v2" with emoji "👋" exists for user "participant2-v2" as "t2" via v2
|
||||
And user "participant2-v2" create view "v2" with emoji "⚡️" for "t2" as "v2"
|
||||
When user "participant1-v2" attempts to create the Context "c1" with name "Enchanting Guitar" with icon "tennis" and description "Lorem ipsum dolor etc pp" and nodes:
|
||||
| alias | type | permissions |
|
||||
| v2 | view | read,create,update |
|
||||
Then the reported status is "403"
|
||||
And user "participant1-v2" fetches all Contexts
|
||||
Then they will find Contexts "" and no other
|
||||
|
||||
@api2 @contexts
|
||||
Scenario: Fetch the overview over existing Contexts as owner
|
||||
Given table "Table 1 via api v2" with emoji "👋" exists for user "participant1-v2" as "t1" via v2
|
||||
|
Reference in New Issue
Block a user