From 5b34dcc09900cd91679daf3fb14f32aaf7a102fb Mon Sep 17 00:00:00 2001
From: Sergio Bertolin <sbertolin@solidgear.es>
Date: Fri, 15 Apr 2016 13:12:34 +0000
Subject: [PATCH] Added test case for QA-94

---
 build/integration/features/sharing-v1.feature | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index cc591dd51d6..1e487eedf98 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -251,6 +251,20 @@ Feature: sharing
     And User "user2" should be included in the response
     And User "user3" should not be included in the response
 
+  Scenario: Reshared files can be still accessed if a user in the middle removes it.
+    Given user "user0" exists
+    And user "user1" exists
+    And user "user2" exists
+    And user "user3" exists
+    And file "textfile0.txt" of user "user0" is shared with user "user1"
+    And file "textfile0 (2).txt" of user "user1" is shared with user "user2"
+    And file "textfile0 (2).txt" of user "user2" is shared with user "user3"
+    And As an "user1"
+    When User "user1" deletes file "/textfile0 (2).txt"
+    And As an "user3"
+    And Downloading file "/textfile0 (2).txt" with range "bytes=1-7"
+    Then Downloaded content should be "wnCloud"
+
   Scenario: getting share info of a share
     Given user "user0" exists
     And user "user1" exists
-- 
GitLab