createShareGroupAndUserWithSameName.feature: Used sharingNG for sharing in given step

This commit is contained in:
Prarup Gurung
2024-05-21 16:13:55 +05:45
parent 6eb4976a57
commit 77f51185fd
2 changed files with 25 additions and 4 deletions
+1
View File
@@ -73,6 +73,7 @@ default:
- TrashbinContext:
- WebDavPropertiesContext:
- SettingsContext:
- SharingNgContext:
coreApiSharees:
paths:
@@ -16,7 +16,12 @@ Feature: sharing works when a username and group name are the same
And group "Brian" has been created
And user "Carol" has been added to group "Brian"
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
And user "Alice" has shared file "randomfile.txt" with group "Brian"
And user "Alice" has sent the following resource share invitation:
| resource | randomfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | group |
| permissionsRole | File Editor |
When user "Alice" shares file "randomfile.txt" with user "Brian" using the sharing API
Then the HTTP status code should be "200"
And the OCS status code should be "100"
@@ -36,7 +41,12 @@ Feature: sharing works when a username and group name are the same
And group "Brian" has been created
And user "Carol" has been added to group "Brian"
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
And user "Alice" has shared file "randomfile.txt" with user "Brian"
And user "Alice" has sent the following resource share invitation:
| resource | randomfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | File Editor |
When user "Alice" shares file "randomfile.txt" with group "Brian" using the sharing API
Then the HTTP status code should be "200"
And the OCS status code should be "100"
@@ -56,7 +66,12 @@ Feature: sharing works when a username and group name are the same
And group "brian" has been created
And user "Carol" has been added to group "brian"
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
And user "Alice" has shared file "randomfile.txt" with group "brian"
And user "Alice" has sent the following resource share invitation:
| resource | randomfile.txt |
| space | Personal |
| sharee | brian |
| shareType | group |
| permissionsRole | File Editor |
When user "Alice" shares file "randomfile.txt" with user "Brian" using the sharing API
Then the HTTP status code should be "200"
And the OCS status code should be "100"
@@ -76,7 +91,12 @@ Feature: sharing works when a username and group name are the same
And group "brian" has been created
And user "Carol" has been added to group "brian"
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
And user "Alice" has shared file "randomfile.txt" with user "Brian"
And user "Alice" has sent the following resource share invitation:
| resource | randomfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | File Editor |
When user "Alice" shares file "randomfile.txt" with group "brian" using the sharing API
Then the HTTP status code should be "200"
And the OCS status code should be "100"