Merge pull request #6538 from owncloud/useGraphinsteadOfSettingMethodInTests

[test-only][full-ci] using graph method instead of setting in api tests
This commit is contained in:
Artur Neumann
2023-06-16 10:36:00 +05:45
committed by GitHub
44 changed files with 170 additions and 170 deletions
@@ -6,7 +6,7 @@ Feature: create group
Background:
Given user "Alice" has been created with default attributes and without skeleton files
And the administrator has given "Alice" the role "Admin" using the settings api
And the administrator has assigned the role "Admin" to user "Alice" using the Graph API
Scenario Outline: admin user creates a group
@@ -34,7 +34,7 @@ Feature: create group
@issue-5938
Scenario Outline: user other than the admin can't create a group
Given user "Brian" has been created with default attributes and without skeleton files
And the administrator has given "Brian" the role "<userRole>" using the settings api
And the administrator has assigned the role "<userRole>" to user "Brian" using the Graph API
When user "Brian" tries to create a group "mygroup" using the Graph API
Then the HTTP status code should be "403"
And group "mygroup" should not exist