[full-ci] ApiTests. enable auto accepting in api tests (#7477)
* enable auto accepting in test * go format
This commit is contained in:
@@ -16,11 +16,8 @@ Feature: file versions remember the author of each version
|
||||
Given user "David" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has created folder "/test"
|
||||
And user "Alice" has shared folder "/test" with user "Brian" with permissions "all"
|
||||
And user "Brian" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has shared folder "/test" with user "Carol" with permissions "all"
|
||||
And user "Carol" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has shared folder "/test" with user "David" with permissions "all"
|
||||
And user "David" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt"
|
||||
@@ -50,8 +47,6 @@ Feature: file versions remember the author of each version
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Carol" has been added to group "grp1"
|
||||
And user "Alice" has shared folder "/test" with group "grp1"
|
||||
And user "Brian" has accepted share "/test" offered by user "Alice"
|
||||
And user "Carol" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt"
|
||||
@@ -77,8 +72,6 @@ Feature: file versions remember the author of each version
|
||||
And user "Carol" has been added to group "grp1"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/textfile0.txt"
|
||||
And user "Alice" has shared file "/textfile0.txt" with group "grp1"
|
||||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
And user "Carol" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/textfile0.txt"
|
||||
When user "Alice" gets the number of versions of file "textfile0.txt"
|
||||
@@ -103,8 +96,6 @@ Feature: file versions remember the author of each version
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Carol" has been added to group "grp1"
|
||||
And user "Alice" has shared folder "/test" with group "grp1"
|
||||
And user "Brian" has accepted share "/test" offered by user "Alice"
|
||||
And user "Carol" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt"
|
||||
@@ -136,8 +127,6 @@ Feature: file versions remember the author of each version
|
||||
And user "Carol" has been added to group "grp1"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/exist.txt"
|
||||
And user "Alice" has shared file "/exist.txt" with group "grp1"
|
||||
And user "Brian" has accepted share "/exist.txt" offered by user "Alice"
|
||||
And user "Carol" has accepted share "/exist.txt" offered by user "Alice"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/exist.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/exist.txt"
|
||||
And user "Alice" has moved file "/exist.txt" to "/textfile0.txt"
|
||||
@@ -163,8 +152,6 @@ Feature: file versions remember the author of each version
|
||||
And user "Carol" has been added to group "grp1"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/exist.txt"
|
||||
And user "Alice" has shared file "/exist.txt" with group "grp1"
|
||||
And user "Brian" has accepted share "/exist.txt" offered by user "Alice"
|
||||
And user "Carol" has accepted share "/exist.txt" offered by user "Alice"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/exist.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/exist.txt"
|
||||
And user "Brian" has moved file "/Shares/exist.txt" to "/Shares/textfile0.txt"
|
||||
@@ -194,16 +181,12 @@ Feature: file versions remember the author of each version
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Carol" has been added to group "grp1"
|
||||
And user "Alice" has shared folder "/test" with group "grp1"
|
||||
And user "Brian" has accepted share "/test" offered by user "Alice"
|
||||
And user "Carol" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt"
|
||||
And user "Alice" has deleted the last share
|
||||
And user "Alice" has uploaded file with content "uploaded content alice after unshared folder" to "/test/textfile0.txt"
|
||||
And user "Alice" has shared folder "/test" with group "grp1"
|
||||
And user "Brian" has accepted share "/test" offered by user "Alice"
|
||||
And user "Carol" has accepted share "/test" offered by user "Alice"
|
||||
When user "Alice" gets the number of versions of file "/test/textfile0.txt"
|
||||
Then the HTTP status code should be "207"
|
||||
And the number of versions should be "3"
|
||||
@@ -228,20 +211,14 @@ Feature: file versions remember the author of each version
|
||||
And user "Brian" has uploaded file with content "duplicate brian" to "/test/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "overwrite brian" to "/test/textfile0.txt"
|
||||
And user "Brian" has shared folder "/test" with user "Carol" with permissions "all"
|
||||
And user "Carol" has accepted share "/test" offered by user "Brian"
|
||||
And user "Brian" has shared folder "/test" with user "David" with permissions "all"
|
||||
And user "David" has accepted share "/test" offered by user "Brian"
|
||||
And user "Carol" has created folder "/test"
|
||||
And user "Carol" has uploaded file with content "duplicate carol" to "/test/textfile0.txt"
|
||||
And user "Carol" has shared folder "/test" with user "Brian" with permissions "all"
|
||||
And user "Brian" has accepted share "/test" offered by user "Carol"
|
||||
And user "Alice" has created folder "/test"
|
||||
And user "Alice" has shared folder "/test" with user "Brian" with permissions "all"
|
||||
And user "Brian" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has shared folder "/test" with user "Carol" with permissions "all"
|
||||
And user "Carol" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has shared folder "/test" with user "David" with permissions "all"
|
||||
And user "David" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test (1)/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test (1)/textfile0.txt"
|
||||
@@ -279,19 +256,13 @@ Feature: file versions remember the author of each version
|
||||
And user "Brian" has uploaded file with content "duplicate brian" to "/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "overwrite brian" to "/textfile0.txt"
|
||||
And user "Brian" has shared file "/textfile0.txt" with user "Carol"
|
||||
And user "Carol" has accepted share "/textfile0.txt" offered by user "Brian"
|
||||
And user "Brian" has shared file "/textfile0.txt" with user "David"
|
||||
And user "David" has accepted share "/textfile0.txt" offered by user "Brian"
|
||||
And user "Carol" has uploaded file with content "duplicate carol" to "/textfile0.txt"
|
||||
And user "Carol" has shared file "/textfile0.txt" with user "Brian"
|
||||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Carol"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/textfile0.txt"
|
||||
And user "Alice" has shared file "/textfile0.txt" with user "Brian"
|
||||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
And user "Alice" has shared file "/textfile0.txt" with user "Carol"
|
||||
And user "Carol" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
And user "Alice" has shared file "/textfile0.txt" with user "David"
|
||||
And user "David" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/textfile0 (1).txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/textfile0 (1).txt"
|
||||
And user "David" has uploaded file with content "uploaded content david" to "/Shares/textfile0 (1).txt"
|
||||
@@ -326,9 +297,7 @@ Feature: file versions remember the author of each version
|
||||
Scenario: enable file versioning and check the version author after restoring a version of a file inside a folder
|
||||
Given user "Alice" has created folder "/test"
|
||||
And user "Alice" has shared folder "/test" with user "Brian" with permissions "all"
|
||||
And user "Brian" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has shared folder "/test" with user "Carol" with permissions "all"
|
||||
And user "Carol" has accepted share "/test" offered by user "Alice"
|
||||
And user "Alice" has uploaded file with content "uploaded content alice" to "/test/textfile0.txt"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/test/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/test/textfile0.txt"
|
||||
@@ -347,9 +316,7 @@ Feature: file versions remember the author of each version
|
||||
Scenario: enable file versioning and check the version author after restoring a version of a file
|
||||
Given user "Alice" has uploaded file with content "uploaded content alice" to "/textfile0.txt"
|
||||
And user "Alice" has shared file "/textfile0.txt" with user "Brian"
|
||||
And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
And user "Alice" has shared file "/textfile0.txt" with user "Carol"
|
||||
And user "Carol" has accepted share "/textfile0.txt" offered by user "Alice"
|
||||
And user "Brian" has uploaded file with content "uploaded content brian" to "/Shares/textfile0.txt"
|
||||
And user "Carol" has uploaded file with content "uploaded content carol" to "/Shares/textfile0.txt"
|
||||
When user "Brian" restores version index "1" of file "/Shares/textfile0.txt" using the WebDAV API
|
||||
|
||||
Reference in New Issue
Block a user