-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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]added then steps for apiProvisioning-v2 suite #39836
Conversation
@sushmita56 I just merged PR #39688 and that added some scenarios to Please check the new scenarios - they also might need to have HTTP status checks etc added to them. |
fe2a382
to
c872a4b
Compare
tests/acceptance/features/apiProvisioning-v2/enableUser.feature
Outdated
Show resolved
Hide resolved
79caeee
to
ed59d9f
Compare
ed59d9f
to
cac7f02
Compare
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 👍
When the user "brand-new-user" requests these endpoints with "PROPFIND" to get property "d:getetag" using basic auth and generated app password about user "brand-new-user" | ||
| endpoint | | ||
| /remote.php/dav/files/%username%/textfile0.txt | | ||
Then the HTTP status code of responses on all endpoints should be "207" | ||
When user "brand-new-user" resets the password of user "brand-new-user" to "%alt1%" using the provisioning API | ||
Then the content of file "textfile0.txt" for user "brand-new-user" using password "%alt1%" should be "ownCloud test text file 0" plus end-of-line |
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.
why removing these steps?
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.
The second When
step has been changed into the Given
step. The first When
step is making a request before the brand-new-user
resets his login password. And the test scenario for this case has been added in the apiProvisioningUsingAppPassword.feature
file. Also here we're testing whether the app's password is preserved or not after resetting the login password. So in my opinion these steps can be excluded from this scenario.
cac7f02
to
6704f4f
Compare
Kudos, SonarCloud Quality Gate passed! |
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 👍
Description
This PR adds
Then
steps to existing API test scenarios to better check the results ofWhen
steps.Suite Covered
apiProvisioning-v2
Related Issues
How Has This Been Tested?
Types of changes
Checklist: