aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-06 18:35:53 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-11 13:52:28 +0200
commitf5f142d31be7e5e61bbf78e2a37d84bf7349a658 (patch)
tree27fa1d9ed605a879635d547387f9fde6ad21eec5 /build/integration
parentb0418f730f183e74df155adf1327f8489bbc56bf (diff)
downloadnextcloud-server-f5f142d31be7e5e61bbf78e2a37d84bf7349a658.tar.gz
nextcloud-server-f5f142d31be7e5e61bbf78e2a37d84bf7349a658.zip
fix: adjust testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'build/integration')
-rw-r--r--build/integration/sharing_features/sharing-v1-part4.feature41
1 files changed, 41 insertions, 0 deletions
diff --git a/build/integration/sharing_features/sharing-v1-part4.feature b/build/integration/sharing_features/sharing-v1-part4.feature
new file mode 100644
index 00000000000..ae4e69f2622
--- /dev/null
+++ b/build/integration/sharing_features/sharing-v1-part4.feature
@@ -0,0 +1,41 @@
+Feature: sharing
+ Background:
+ Given using api version "1"
+ Given using new dav path
+
+# See sharing-v1-part3.feature
+
+Scenario: Creating a new share of a file shows size and mtime
+ Given user "user0" exists
+ And user "user1" exists
+ And As an "user0"
+ And parameter "shareapi_default_permissions" of app "core" is set to "7"
+ When creating a share with
+ | path | welcome.txt |
+ | shareWith | user1 |
+ | shareType | 0 |
+ And the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And Getting info of last share
+ Then the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And Share fields of last share match with
+ | item_size | A_NUMBER |
+ | item_mtime | A_NUMBER |
+
+Scenario: Creating a new share of a file you own shows the file permissions
+ Given user "user0" exists
+ And user "user1" exists
+ And As an "user0"
+ And parameter "shareapi_default_permissions" of app "core" is set to "7"
+ When creating a share with
+ | path | welcome.txt |
+ | shareWith | user1 |
+ | shareType | 0 |
+ And the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And Getting info of last share
+ Then the OCS status code should be "100"
+ And the HTTP status code should be "200"
+ And Share fields of last share match with
+ | item_permissions | 27 |