summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2016-06-09 18:41:19 +0200
committerblizzz <blizzz@arthur-schiwon.de>2016-06-09 18:41:19 +0200
commit28193732ea24094335cccddf5fe03aeeeb6f5894 (patch)
tree2c38e740669ab2fa6ab50615187d01b9d6dc00d1 /build
parentb688aac402cf9d7ee08252077d37ea1c43b22f4a (diff)
parent51fd2602a77d8d885c53d24ebb8f72be62dc52ce (diff)
downloadnextcloud-server-28193732ea24094335cccddf5fe03aeeeb6f5894.tar.gz
nextcloud-server-28193732ea24094335cccddf5fe03aeeeb6f5894.zip
Merge pull request #32 from nextcloud/revert-25-downstream-160608
Revert "Downstream 2016-06-08"
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php11
-rw-r--r--build/integration/features/bootstrap/FederationContext.php2
-rw-r--r--build/integration/federation_features/federated.feature61
3 files changed, 1 insertions, 73 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index 9248b2cd252..b8fb516fada 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -261,17 +261,6 @@ trait BasicStructure {
}
/**
- * @Given User :user modifies text of :filename with text :text
- * @param string $user
- * @param string $filename
- * @param string $text
- */
- public function modifyTextOfFile($user, $filename, $text) {
- self::removeFile("../../data/$user/files", "$filename");
- file_put_contents("../../data/$user/files" . "$filename", "$text");
- }
-
- /**
* @BeforeSuite
*/
public static function addFilesToSkeleton(){
diff --git a/build/integration/features/bootstrap/FederationContext.php b/build/integration/features/bootstrap/FederationContext.php
index 55f3a55da0d..2809c6974fa 100644
--- a/build/integration/features/bootstrap/FederationContext.php
+++ b/build/integration/features/bootstrap/FederationContext.php
@@ -12,7 +12,7 @@ require __DIR__ . '/../../vendor/autoload.php';
*/
class FederationContext implements Context, SnippetAcceptingContext {
- use WebDav;
+ use Sharing;
/**
* @Given /^User "([^"]*)" from server "(LOCAL|REMOTE)" shares "([^"]*)" with user "([^"]*)" from server "(LOCAL|REMOTE)"$/
diff --git a/build/integration/federation_features/federated.feature b/build/integration/federation_features/federated.feature
index 8bf8e921b0f..acd1f91e908 100644
--- a/build/integration/federation_features/federated.feature
+++ b/build/integration/federation_features/federated.feature
@@ -120,67 +120,6 @@ Feature: federated
| share_with | user2 |
| share_with_displayname | user2 |
- Scenario: Overwrite a federated shared file as recipient
- Given Using server "REMOTE"
- And user "user1" exists
- And user "user2" exists
- And Using server "LOCAL"
- And user "user0" exists
- And User "user0" from server "LOCAL" shares "/textfile0.txt" with user "user1" from server "REMOTE"
- And User "user1" from server "REMOTE" accepts last pending share
- And Using server "REMOTE"
- And As an "user1"
- And User "user1" modifies text of "/textfile0.txt" with text "BLABLABLA"
- When User "user1" uploads file "../../data/user1/files/textfile0.txt" to "/textfile0 (2).txt"
- And Downloading file "/textfile0 (2).txt" with range "bytes=0-8"
- Then Downloaded content should be "BLABLABLA"
-
- Scenario: Overwrite a federated shared folder as recipient
- Given Using server "REMOTE"
- And user "user1" exists
- And user "user2" exists
- And Using server "LOCAL"
- And user "user0" exists
- And User "user0" from server "LOCAL" shares "/PARENT" with user "user1" from server "REMOTE"
- And User "user1" from server "REMOTE" accepts last pending share
- And Using server "REMOTE"
- And As an "user1"
- And User "user1" modifies text of "/textfile0.txt" with text "BLABLABLA"
- When User "user1" uploads file "../../data/user1/files/textfile0.txt" to "/PARENT (2)/textfile0.txt"
- And Downloading file "/PARENT (2)/textfile0.txt" with range "bytes=0-8"
- Then Downloaded content should be "BLABLABLA"
-
- Scenario: Overwrite a federated shared file as recipient using old chunking
- Given Using server "REMOTE"
- And user "user1" exists
- And user "user2" exists
- And Using server "LOCAL"
- And user "user0" exists
- And User "user0" from server "LOCAL" shares "/textfile0.txt" with user "user1" from server "REMOTE"
- And User "user1" from server "REMOTE" accepts last pending share
- And Using server "REMOTE"
- And As an "user1"
- And user "user1" uploads chunk file "1" of "3" with "AAAAA" to "/textfile0 (2).txt"
- And user "user1" uploads chunk file "2" of "3" with "BBBBB" to "/textfile0 (2).txt"
- And user "user1" uploads chunk file "3" of "3" with "CCCCC" to "/textfile0 (2).txt"
- When Downloading file "/textfile0 (2).txt" with range "bytes=0-4"
- Then Downloaded content should be "AAAAA"
-
- Scenario: Overwrite a federated shared folder as recipient using old chunking
- Given Using server "REMOTE"
- And user "user1" exists
- And user "user2" exists
- And Using server "LOCAL"
- And user "user0" exists
- And User "user0" from server "LOCAL" shares "/PARENT" with user "user1" from server "REMOTE"
- And User "user1" from server "REMOTE" accepts last pending share
- And Using server "REMOTE"
- And As an "user1"
- And user "user1" uploads chunk file "1" of "3" with "AAAAA" to "/PARENT (2)/textfile0.txt"
- And user "user1" uploads chunk file "2" of "3" with "BBBBB" to "/PARENT (2)/textfile0.txt"
- And user "user1" uploads chunk file "3" of "3" with "CCCCC" to "/PARENT (2)/textfile0.txt"
- When Downloading file "/PARENT (2)/textfile0.txt" with range "bytes=3-13"
- Then Downloaded content should be "AABBBBBCCCC"