aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/features
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-08-09 08:24:03 +0000
committerLukas Reschke <lukas@statuscode.ch>2016-08-30 17:23:13 +0200
commitb154c8fa394fd980fea65b5bd29b8cfb12d3f43c (patch)
tree9206da79397905b9e95891e893c46a71f2dc2833 /build/integration/features
parent85f00e2c0144a9420ae928f27235bb142aad2c17 (diff)
downloadnextcloud-server-b154c8fa394fd980fea65b5bd29b8cfb12d3f43c.tar.gz
nextcloud-server-b154c8fa394fd980fea65b5bd29b8cfb12d3f43c.zip
Removed extra context added needed option and remove storage after external storage scenarios
Diffstat (limited to 'build/integration/features')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php12
-rw-r--r--build/integration/features/bootstrap/ExternalStorageContext.php24
-rw-r--r--build/integration/features/external-storage.feature2
3 files changed, 13 insertions, 25 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index e9e20c047aa..4330a324ad3 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -344,4 +344,16 @@ trait BasicStructure {
rmdir("../../core/skeleton/PARENT");
}
}
+
+ /**
+ * @AfterScenario @local_storage
+ */
+ public static function removeFilesFromLocalStorage(){
+ $dir = "./local_storage/";
+ $di = new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS);
+ $ri = new RecursiveIteratorIterator($di, RecursiveIteratorIterator::CHILD_FIRST);
+ foreach ( $ri as $file ) {
+ $file->isDir() ? rmdir($file) : unlink($file);
+ }
+ }
}
diff --git a/build/integration/features/bootstrap/ExternalStorageContext.php b/build/integration/features/bootstrap/ExternalStorageContext.php
deleted file mode 100644
index 90dc06cf571..00000000000
--- a/build/integration/features/bootstrap/ExternalStorageContext.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-
-require __DIR__ . '/../../vendor/autoload.php';
-
-use Behat\Gherkin\Node\TableNode;
-use GuzzleHttp\Client;
-use GuzzleHttp\Message\ResponseInterface;
-
-class ExternalStorageContext implements \Behat\Behat\Context\Context {
-
-
- /**
- * @AfterScenario
- */
- public static function removeFilesFromLocalStorage(){
- $dir = "./local_storage/";
- $di = new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS);
- $ri = new RecursiveIteratorIterator($di, RecursiveIteratorIterator::CHILD_FIRST);
- foreach ( $ri as $file ) {
- $file->isDir() ? rmdir($file) : unlink($file);
- }
- }
-}
diff --git a/build/integration/features/external-storage.feature b/build/integration/features/external-storage.feature
index ac8bd971edf..9e53b01346e 100644
--- a/build/integration/features/external-storage.feature
+++ b/build/integration/features/external-storage.feature
@@ -3,6 +3,7 @@ Feature: external-storage
Given using api version "1"
Given using dav path "remote.php/webdav"
+ @local_storage
Scenario: Share by link a file inside a local external storage
Given user "user0" exists
And user "user1" exists
@@ -21,6 +22,5 @@ Feature: external-storage
| url | AN_URL |
| token | A_TOKEN |
| mimetype | httpd/unix-directory |
- And Public shared file "/foo/textfile0.txt" can be downloaded