Add apiBasic suite with default accounts_hash_difficulty

This commit is contained in:
Phil Davis
2020-11-13 09:11:14 +05:45
parent b10f0359fc
commit d9b7372f79
6 changed files with 117 additions and 16 deletions
@@ -0,0 +1,18 @@
@api @files_sharing-app-required
Feature: sharing
Scenario Outline: Creating a share of a file with a user
Given the administrator has set the default folder for received shares to "Shares"
And auto-accept shares has been disabled
And using OCS API version "<ocs_api_version>"
And user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
And user "Brian" has been created with default attributes and without skeleton files
When user "Alice" shares file "textfile0.txt" with user "Brian" using the sharing API
And user "Brian" accepts share "/textfile0.txt" offered by user "Alice" using the sharing API
Then the HTTP status code should be "200"
And the content of file "/Shares/textfile0.txt" for user "Brian" should be "ownCloud test text file 0"
Examples:
| ocs_api_version |
| 1 |
| 2 |