|
|
|
@ -231,10 +231,11 @@ Feature: sharing
|
|
|
|
| url | AN_URL |
|
|
|
|
| url | AN_URL |
|
|
|
|
| mimetype | httpd/unix-directory |
|
|
|
|
| mimetype | httpd/unix-directory |
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Creating a new share with expiration date removed, when default expiration is set
|
|
|
|
Scenario: Creating a new share with expiration date empty, when default expiration is set
|
|
|
|
Given user "user0" exists
|
|
|
|
Given user "user0" exists
|
|
|
|
And user "user1" exists
|
|
|
|
And user "user1" exists
|
|
|
|
And parameter "shareapi_default_expire_date" of app "core" is set to "yes"
|
|
|
|
And parameter "shareapi_default_internal_expire_date" of app "core" is set to "yes"
|
|
|
|
|
|
|
|
And parameter "shareapi_internal_expire_after_n_days" of app "core" is set to "3"
|
|
|
|
And As an "user0"
|
|
|
|
And As an "user0"
|
|
|
|
When creating a share with
|
|
|
|
When creating a share with
|
|
|
|
| path | welcome.txt |
|
|
|
|
| path | welcome.txt |
|
|
|
|
@ -249,6 +250,43 @@ Feature: sharing
|
|
|
|
And Share fields of last share match with
|
|
|
|
And Share fields of last share match with
|
|
|
|
| expiration ||
|
|
|
|
| expiration ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Creating a new share with expiration date removed, when default expiration is set
|
|
|
|
|
|
|
|
Given user "user0" exists
|
|
|
|
|
|
|
|
And user "user1" exists
|
|
|
|
|
|
|
|
And parameter "shareapi_default_internal_expire_date" of app "core" is set to "yes"
|
|
|
|
|
|
|
|
And parameter "shareapi_internal_expire_after_n_days" of app "core" is set to "3"
|
|
|
|
|
|
|
|
And As an "user0"
|
|
|
|
|
|
|
|
When creating a share with
|
|
|
|
|
|
|
|
| path | welcome.txt |
|
|
|
|
|
|
|
|
| shareWith | user1 |
|
|
|
|
|
|
|
|
| shareType | 0 |
|
|
|
|
|
|
|
|
Then 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
|
|
|
|
|
|
|
|
| expiration | +3 days |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Creating a new share with expiration date null, when default expiration is set
|
|
|
|
|
|
|
|
Given user "user0" exists
|
|
|
|
|
|
|
|
And user "user1" exists
|
|
|
|
|
|
|
|
And parameter "shareapi_default_internal_expire_date" of app "core" is set to "yes"
|
|
|
|
|
|
|
|
And parameter "shareapi_internal_expire_after_n_days" of app "core" is set to "3"
|
|
|
|
|
|
|
|
And As an "user0"
|
|
|
|
|
|
|
|
When creating a share with
|
|
|
|
|
|
|
|
| path | welcome.txt |
|
|
|
|
|
|
|
|
| shareWith | user1 |
|
|
|
|
|
|
|
|
| shareType | 0 |
|
|
|
|
|
|
|
|
| expireDate | null |
|
|
|
|
|
|
|
|
Then 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
|
|
|
|
|
|
|
|
| expiration | +3 days |
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Creating a new public share, updating its password and getting its info
|
|
|
|
Scenario: Creating a new public share, updating its password and getting its info
|
|
|
|
Given user "user0" exists
|
|
|
|
Given user "user0" exists
|
|
|
|
And As an "user0"
|
|
|
|
And As an "user0"
|
|
|
|
|