Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): Adjust expected share type attributes after server change #12506

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions tests/integration/features/sharing-2/get.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1149,8 +1149,12 @@ Feature: get
| roomName | room |
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
When user "participant1" gets the share-type DAV property for "/welcome.txt"
Then the response contains a share-types DAV property with
| 10 |
When user "participant2" gets the share-type DAV property for "Talk/welcome.txt"
Then the response contains a share-types DAV property with
| 10 |

Scenario: get DAV properties for a room share reshared with a user
Given user "participant1" creates room "group room" (v4)
Expand All @@ -1166,6 +1170,10 @@ Feature: get
When user "participant1" gets the share-type DAV property for "/welcome.txt"
Then the response contains a share-types DAV property with
| 10 |
When user "participant2" gets the share-type DAV property for "Talk/welcome.txt"
Then the response contains a share-types DAV property with
| 0 |
| 10 |

Scenario: get DAV properties for a user share reshared with a room
Given user "participant1" creates room "group room" (v4)
Expand All @@ -1180,7 +1188,12 @@ Feature: get
And user "participant2" shares "welcome (2).txt" with room "group room" with OCS 100
When user "participant1" gets the share-type DAV property for "/welcome.txt"
Then the response contains a share-types DAV property with
| 0 |
| 0 |
| 10 |
When user "participant2" gets the share-type DAV property for "welcome (2).txt"
Then the response contains a share-types DAV property with
| 0 |
| 10 |

Scenario: get DAV properties for a room share reshared with a user as the resharer
Given user "participant1" creates room "group room" (v4)
Expand All @@ -1193,9 +1206,13 @@ Feature: get
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
And user "participant2" shares "Talk/welcome.txt" with user "participant3" with OCS 100
And user "participant3" accepts last share
When user "participant1" gets the share-type DAV property for "welcome.txt"
Then the response contains a share-types DAV property with
| 10 |
When user "participant2" gets the share-type DAV property for "/Talk/welcome.txt"
Then the response contains a share-types DAV property with
| 0 |
| 0 |
| 10 |

Scenario: get DAV properties for a user share reshared with a room as the resharer
Given user "participant1" creates room "group room" (v4)
Expand All @@ -1208,8 +1225,13 @@ Feature: get
And user "participant1" shares "welcome.txt" with user "participant2" with OCS 100
And user "participant2" accepts last share
And user "participant2" shares "welcome (2).txt" with room "group room" with OCS 100
When user "participant1" gets the share-type DAV property for "welcome.txt"
Then the response contains a share-types DAV property with
| 0 |
| 10 |
When user "participant2" gets the share-type DAV property for "/welcome (2).txt"
Then the response contains a share-types DAV property with
| 0 |
| 10 |

# Reshares are taken into account only for the files in the folder, not the
Expand Down
Loading