api test for sharing with user by entering username in capital letters#35309
Conversation
individual-it
left a comment
There was a problem hiding this comment.
please check also if the user did receive the file
there are steps line ... should see following elements
| | 2 | 200 | No newline at end of file | ||
| | 2 | 200 | | ||
|
|
||
| Scenario: share with user by entering username in capital letters |
There was a problem hiding this comment.
| Scenario: share with user by entering username in capital letters | |
| Scenario: share with user when username contains capital letters |
Codecov Report
@@ Coverage Diff @@
## master #35309 +/- ##
============================================
- Coverage 65.54% 64.93% -0.61%
Complexity 18647 18647
============================================
Files 1218 1218
Lines 70546 70512 -34
Branches 1288 1288
============================================
- Hits 46236 45789 -447
- Misses 23933 24346 +413
Partials 377 377
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35309 +/- ##
=========================================
Coverage 65.53% 65.53%
Complexity 18648 18648
=========================================
Files 1218 1218
Lines 70549 70549
Branches 1288 1288
=========================================
Hits 46236 46236
Misses 23936 23936
Partials 377 377
Continue to review full report at Codecov.
|
paurakhsharma
left a comment
There was a problem hiding this comment.
Tests look good to me 👍
| Scenario: share with user when username contains capital letters | ||
| Given these users have been created: | ||
| | username | | ||
| | ocuser0 | |
There was a problem hiding this comment.
| | ocuser0 | | |
| | user0 | |
| Given these users have been created: | ||
| | username | | ||
| | ocuser0 | | ||
| | ocuser1 | |
There was a problem hiding this comment.
| | ocuser1 | | |
| | user1 | |
| | file_target | /welcome.txt | | ||
| | path | /welcome.txt | | ||
| | permissions | 19 | | ||
| | uid_owner | ocuser0 | |
There was a problem hiding this comment.
| | uid_owner | ocuser0 | | |
| | uid_owner | user0 | |
| Then the OCS status code should be "100" | ||
| And the HTTP status code should be "200" | ||
| And the fields of the last response should include | ||
| | share_with | ocuser1 | |
There was a problem hiding this comment.
| | share_with | ocuser1 | | |
| | share_with | user1 | |
| | path | /welcome.txt | | ||
| | permissions | 19 | | ||
| | uid_owner | ocuser0 | | ||
| And user "ocuser1" should see the following elements |
There was a problem hiding this comment.
| And user "ocuser1" should see the following elements | |
| And user "user1" should see the following elements |
| | file_target | /welcome.txt | | ||
| | path | /welcome.txt | | ||
| | permissions | 19 | | ||
| | uid_owner | user0 | |
| | user1 | | ||
| And group "grp1" has been created | ||
| And user "user1" has been added to group "grp1" | ||
| When user "user0" shares file "/welcome.txt" with user "USER1" using the sharing API |
There was a problem hiding this comment.
it would be more interesting to share with that group
| When user "user0" shares file "/welcome.txt" with user "USER1" using the sharing API | |
| And user "USER1" has been added to group "grp1" | |
| When user "user0" shares file "/welcome.txt" with group "grp1" using the sharing API |
|
@haribhandari07 is there an issue to go with this PR? Issue #35354 |
|
backport on #35357 |
Description
includes api test for creating new shares using sharing api by entering username in capital letters
Related Issue
Part of issue #35354
Motivation and Context
How Has This Been Tested?
CI
Types of changes
Checklist:
Open tasks: