-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only][full-ci] Add API tests for creating groups (graph API) #4992
Conversation
a8a80e7
to
cfdf5a6
Compare
Opps !! I mistakenly approved this (eventually it will be). Sorry !!. @saw-jan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
bump core commit id fix php style
cfdf5a6
to
4806fa6
Compare
Scenario: admin user tries to create a group that already exists | ||
Given group "mygroup" has been created | ||
When user "Alice" tries to create a group "mygroup" using the Graph API | ||
And the HTTP status code should be "500" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@butonic do we really expect 500 when a group cannot be created, or is this a bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adjust Scenario: admin user tries to create a group that already exists
to not expect 500
and add the test to expected to fail file
add please https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraph/createUser.feature#L28 line to expected failures and change that we expect |
do we need case with empty group name? |
Kudos, SonarCloud Quality Gate passed! |
In core, we have like this: Scenario: admin tries to create a group that is the empty string
When the administrator tries to send a group creation request for group "" using the provisioning API
Then the OCS status code should be "101"
And the HTTP status code should be "200" Should I add similar scenario for oCIS? |
I would add this case |
Author: Sawjan Gurung <[email protected]> Date: Fri Nov 11 09:31:13 2022 +0545 [tests-only][full-ci] Add API tests for creating groups (graph API) (#4992)
Description
Added API tests for group creation
Added scenarios:
Scenario Outline: admin user creates a group
Scenario: admin user tries to create a group that already exists
Scenario: normal user tries to create a group
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: