Skip to content

Commit 3c66ad6

Browse files
authored
Merge pull request #3904 from nextcloud/revert-3893-downstream-27069
Revert "Add integration test for trashbin"
2 parents 96ea85d + 4a9ce18 commit 3c66ad6

6 files changed

Lines changed: 10 additions & 187 deletions

File tree

.drone.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -423,15 +423,6 @@ pipeline:
423423
when:
424424
matrix:
425425
TESTS: integration-ldap-features
426-
integration-trashbin:
427-
image: nextcloudci/integration-php7.0:integration-php7.0-3
428-
commands:
429-
- ./occ maintenance:install --admin-pass=admin
430-
- cd build/integration
431-
- ./run.sh features/trashbin.feature
432-
when:
433-
matrix:
434-
TESTS: integration-trashbin
435426
nodb-codecov:
436427
image: nextcloudci/php7.0:php7.0-7
437428
commands:
@@ -500,7 +491,6 @@ matrix:
500491
- TESTS: integration-filesdrop-features
501492
- TESTS: integration-transfer-ownership-features
502493
- TESTS: integration-ldap-features
503-
- TESTS: integration-trashbin
504494
- TESTS: jsunit
505495
- TESTS: check-autoloader
506496
- TESTS: app-check-code

build/integration/features/bootstrap/BasicStructure.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
trait BasicStructure {
3636

3737
use Auth;
38-
use Trashbin;
3938

4039
/** @var string */
4140
private $currentUser = '';
@@ -354,6 +353,16 @@ public function createFileSpecificSize($name, $size) {
354353
fclose($file);
355354
}
356355

356+
/**
357+
* @When User :user empties trashbin
358+
* @param string $user
359+
*/
360+
public function emptyTrashbin($user) {
361+
$body = new \Behat\Gherkin\Node\TableNode([['allfiles', 'true'], ['dir', '%2F']]);
362+
$this->sendingToWithDirectUrl('POST', "/index.php/apps/files_trashbin/ajax/delete.php", $body);
363+
$this->theHTTPStatusCodeShouldBe('200');
364+
}
365+
357366
/**
358367
* @When Sleep for :seconds seconds
359368
* @param int $seconds

build/integration/features/bootstrap/Trashbin.php

Lines changed: 0 additions & 120 deletions
This file was deleted.

build/integration/features/favorites.feature

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,3 @@ Feature: favorite
134134
| /subfolder/textfile0.txt |
135135
| /subfolder/textfile2.txt |
136136

137-
Scenario: moving a favorite file out of a share keeps favorite state
138-
Given using old dav path
139-
And As an "admin"
140-
And user "user0" exists
141-
And user "user1" exists
142-
And user "user0" created a folder "/shared"
143-
And User "user0" moved file "/textfile0.txt" to "/shared/shared_file.txt"
144-
And folder "/shared" of user "user0" is shared with user "user1"
145-
And user "user1" favorites element "/shared/shared_file.txt"
146-
When User "user1" moved file "/shared/shared_file.txt" to "/taken_out.txt"
147-
Then user "user1" in folder "/" should have favorited the following elements
148-
| /taken_out.txt |
149-

build/integration/features/sharing-v1.feature

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -988,33 +988,3 @@ Feature: sharing
988988
And Updating last share with
989989
| publicUpload | true |
990990
Then the OCS status code should be "404"
991-
And the HTTP status code should be "200"
992-
993-
Scenario: deleting file out of a share as recipient creates a backup for the owner
994-
Given As an "admin"
995-
And user "user0" exists
996-
And user "user1" exists
997-
And user "user0" created a folder "/shared"
998-
And User "user0" moved file "/textfile0.txt" to "/shared/shared_file.txt"
999-
And folder "/shared" of user "user0" is shared with user "user1"
1000-
When User "user1" deletes file "/shared/shared_file.txt"
1001-
Then as "user1" the file "/shared/shared_file.txt" does not exist
1002-
And as "user0" the file "/shared/shared_file.txt" does not exist
1003-
And as "user0" the file "/shared_file.txt" exists in trash
1004-
And as "user1" the file "/shared_file.txt" exists in trash
1005-
1006-
Scenario: deleting folder out of a share as recipient creates a backup for the owner
1007-
Given As an "admin"
1008-
And user "user0" exists
1009-
And user "user1" exists
1010-
And user "user0" created a folder "/shared"
1011-
And user "user0" created a folder "/shared/sub"
1012-
And User "user0" moved file "/textfile0.txt" to "/shared/sub/shared_file.txt"
1013-
And folder "/shared" of user "user0" is shared with user "user1"
1014-
When User "user1" deletes folder "/shared/sub"
1015-
Then as "user1" the folder "/shared/sub" does not exist
1016-
And as "user0" the folder "/shared/sub" does not exist
1017-
And as "user0" the folder "/sub" exists in trash
1018-
And as "user0" the file "/sub/shared_file.txt" exists in trash
1019-
And as "user1" the folder "/sub" exists in trash
1020-
And as "user1" the file "/sub/shared_file.txt" exists in trash

build/integration/features/trashbin.feature

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)