Skip to content

Commit

Permalink
Improved then step for suite apiShareOperationToShare2
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed Apr 13, 2022
1 parent 8d33609 commit 6033d1f
Showing 1 changed file with 35 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Feature: sharing
When user "Alice" gets the following properties of file "/tmp.txt" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "19"
Then the HTTP status code should be "201"
And the single response should contain a property "ocs:share-permissions" with value "19"
Examples:
| dav-path |
| old |
Expand All @@ -37,7 +38,8 @@ Feature: sharing
When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "19"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "19"
Examples:
| dav-path |
| old |
Expand All @@ -63,7 +65,8 @@ Feature: sharing
When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "19"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "19"
Examples:
| dav-path |
| old |
Expand All @@ -82,7 +85,8 @@ Feature: sharing
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
When user "Alice" updates the last share using the sharing API with
| permissions | update,read |
Then as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "3"
Then the HTTP status code should be "200"
And as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "3"
Examples:
| dav-path |
| old |
Expand All @@ -108,7 +112,8 @@ Feature: sharing
When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "3"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "3"
Examples:
| dav-path |
| old |
Expand All @@ -127,7 +132,8 @@ Feature: sharing
And user "Brian" has accepted share "/tmp.txt" offered by user "Alice"
When user "Alice" updates the last share using the sharing API with
| permissions | share,read |
Then as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "17"
Then the HTTP status code should be "200"
And as user "Brian" file "/Shares/tmp.txt" should contain a property "ocs:share-permissions" with value "17"
Examples:
| dav-path |
| old |
Expand All @@ -153,7 +159,8 @@ Feature: sharing
When user "Brian" gets the following properties of file "/Shares/tmp.txt" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "17"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "17"
Examples:
| dav-path |
| old |
Expand All @@ -171,7 +178,8 @@ Feature: sharing
When user "Alice" gets the following properties of folder "/" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "31"
Then the HTTP status code should be "201"
And the single response should contain a property "ocs:share-permissions" with value "31"
Examples:
| dav-path |
| old |
Expand All @@ -191,7 +199,8 @@ Feature: sharing
When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "31"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "31"
Examples:
| dav-path |
| old |
Expand All @@ -216,7 +225,8 @@ Feature: sharing
When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "31"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "31"
Examples:
| dav-path |
| old |
Expand All @@ -235,6 +245,7 @@ Feature: sharing
And user "Brian" has accepted share "/tmp" offered by user "Alice"
When user "Alice" updates the last share using the sharing API with
| permissions | share,delete,create,read |
Then the HTTP status code should be "200"
Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "29"
Examples:
| dav-path |
Expand All @@ -261,7 +272,8 @@ Feature: sharing
When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "29"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "29"
Examples:
| dav-path |
| old |
Expand All @@ -280,7 +292,8 @@ Feature: sharing
And user "Brian" has accepted share "/tmp" offered by user "Alice"
When user "Alice" updates the last share using the sharing API with
| permissions | share,delete,update,read |
Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "27"
Then the HTTP status code should be "200"
And as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "27"
Examples:
| dav-path |
| old |
Expand All @@ -306,7 +319,8 @@ Feature: sharing
When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "27"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "27"
Examples:
| dav-path |
| old |
Expand All @@ -325,7 +339,8 @@ Feature: sharing
And user "Brian" has accepted share "/tmp" offered by user "Alice"
When user "Alice" updates the last share using the sharing API with
| permissions | share,create,update,read |
Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "23"
Then the HTTP status code should be "200"
And as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "23"
Examples:
| dav-path |
| old |
Expand All @@ -351,7 +366,8 @@ Feature: sharing
When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "23"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "23"
Examples:
| dav-path |
| old |
Expand All @@ -370,7 +386,8 @@ Feature: sharing
And user "Brian" has accepted share "/tmp" offered by user "Alice"
When user "Alice" updates the last share using the sharing API with
| permissions | change |
Then as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "15"
Then the HTTP status code should be "200"
And as user "Brian" folder "/Shares/tmp" should contain a property "ocs:share-permissions" with value "15"
Examples:
| dav-path |
| old |
Expand All @@ -396,7 +413,8 @@ Feature: sharing
When user "Brian" gets the following properties of folder "/Shares/tmp" using the WebDAV API
| propertyName |
| ocs:share-permissions |
Then the single response should contain a property "ocs:share-permissions" with value "15"
Then the HTTP status code should be "200"
And the single response should contain a property "ocs:share-permissions" with value "15"
Examples:
| dav-path |
| old |
Expand Down

0 comments on commit 6033d1f

Please sign in to comment.