summaryrefslogtreecommitdiffstats
path: root/build/integration/features/transfer-ownership.feature
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-11-20 15:41:15 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-11-20 15:47:11 +0100
commit54f8f75f6f82ca102b1cfdb88caf0d06e6c9ba31 (patch)
tree814b8e63ae34721af895079b6bc55673189ce911 /build/integration/features/transfer-ownership.feature
parent9004e90f5de9a72264425d8a26c88af15f0d27ec (diff)
downloadnextcloud-server-54f8f75f6f82ca102b1cfdb88caf0d06e6c9ba31.tar.gz
nextcloud-server-54f8f75f6f82ca102b1cfdb88caf0d06e6c9ba31.zip
Accept incoming shares in integration tests
Now all incoming shares need to be explicitly accepted before being able to use the shared file or get information about a reshare (although getting the information of the incoming share is possible before accepting it). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration/features/transfer-ownership.feature')
-rw-r--r--build/integration/features/transfer-ownership.feature14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/integration/features/transfer-ownership.feature b/build/integration/features/transfer-ownership.feature
index 3f10fa75a83..a0959db6c17 100644
--- a/build/integration/features/transfer-ownership.feature
+++ b/build/integration/features/transfer-ownership.feature
@@ -27,6 +27,7 @@ Feature: transfer-ownership
And user "user2" exists
And User "user0" uploads file "data/textfile.txt" to "/somefile.txt"
And file "/somefile.txt" of user "user0" is shared with user "user2" with permissions 19
+ And user "user2" accepts last share
When transfering ownership from "user0" to "user1"
And the command was successful
And As an "user2"
@@ -39,6 +40,7 @@ Feature: transfer-ownership
And User "user0" created a folder "/test"
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
And folder "/test" of user "user0" is shared with user "user2" with permissions 31
+ And user "user2" accepts last share
When transfering ownership from "user0" to "user1"
And the command was successful
And As an "user2"
@@ -50,6 +52,7 @@ Feature: transfer-ownership
And User "user0" created a folder "/test"
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
And folder "/test" of user "user0" is shared with user "user1" with permissions 31
+ And user "user1" accepts last share
When transfering ownership from "user0" to "user1"
And the command was successful
And As an "user1"
@@ -66,7 +69,9 @@ Feature: transfer-ownership
And User "user0" created a folder "/test"
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
And folder "/test" of user "user0" is shared with group "group1" with permissions 31
+ And user "user2" accepts last share
And folder "/test" of user "user0" is shared with user "user2" with permissions 31
+ And user "user2" accepts last share
When transfering ownership from "user0" to "user1"
And the command was successful
And As an "user2"
@@ -80,6 +85,7 @@ Feature: transfer-ownership
And user "user2" belongs to group "test"
And User "user0" uploads file "data/textfile.txt" to "/somefile.txt"
And file "/somefile.txt" of user "user0" is shared with group "test"
+ And user "user2" accepts last share
When transfering ownership from "user0" to "test"
And the command was successful
And As an "user2"
@@ -91,6 +97,7 @@ Feature: transfer-ownership
And user "user2" exists
And User "user2" created a folder "/test"
And folder "/test" of user "user2" is shared with user "user0" with permissions 31
+ And user "user0" accepts last share
When transfering ownership from "user0" to "user1"
And the command was successful
And As an "user1"
@@ -114,6 +121,7 @@ Feature: transfer-ownership
And User "user0" created a folder "/sub"
And User "user0" created a folder "/sub/test"
And folder "/sub/test" of user "user0" is shared with user "user2" with permissions 31
+ And user "user2" accepts last share
And User "user0" deletes folder "/sub"
When transfering ownership from "user0" to "user1"
Then the command was successful
@@ -148,6 +156,7 @@ Feature: transfer-ownership
And User "user0" created a folder "/test"
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
And file "/test/somefile.txt" of user "user0" is shared with user "user2" with permissions 19
+ And user "user2" accepts last share
When transfering ownership of path "test" from "user0" to "user1"
And the command was successful
And As an "user2"
@@ -160,6 +169,7 @@ Feature: transfer-ownership
And User "user0" created a folder "/test"
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
And folder "/test" of user "user0" is shared with user "user2" with permissions 31
+ And user "user2" accepts last share
When transfering ownership of path "test" from "user0" to "user1"
And the command was successful
And As an "user2"
@@ -171,6 +181,7 @@ Feature: transfer-ownership
And User "user0" created a folder "/test"
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
And folder "/test" of user "user0" is shared with user "user1" with permissions 31
+ And user "user1" accepts last share
When transfering ownership of path "test" from "user0" to "user1"
And the command was successful
And As an "user1"
@@ -187,7 +198,9 @@ Feature: transfer-ownership
And User "user0" created a folder "/test"
And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
And folder "/test" of user "user0" is shared with group "group1" with permissions 31
+ And user "user2" accepts last share
And folder "/test" of user "user0" is shared with user "user2" with permissions 31
+ And user "user2" accepts last share
When transfering ownership of path "test" from "user0" to "user1"
And the command was successful
And As an "user2"
@@ -200,6 +213,7 @@ Feature: transfer-ownership
And User "user2" created a folder "/test"
And User "user0" created a folder "/sub"
And folder "/test" of user "user2" is shared with user "user0" with permissions 31
+ And user "user0" accepts last share
And User "user0" moved folder "/test" to "/sub/test"
When transfering ownership of path "sub" from "user0" to "user1"
And the command was successful