Skip to content

Commit

Permalink
run hidden folder integration tests in drone
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Aug 23, 2022
1 parent 9413f2e commit bbbbebf
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
17 changes: 17 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,23 @@ steps:
- cd build/integration
- ./run.sh features/webdav-related.feature

---
kind: pipeline
name: integration-webdav-hidden-folder

steps:
- name: submodules
image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
commands:
- git submodule update --init
- name: integration-webdav-related
image: ghcr.io/nextcloud/continuous-integration-integration-php7.3:latest
commands:
- bash tests/drone-run-integration-tests.sh || exit 0
- ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
- cd build/integration
- ./run.sh features/hidden-folder.feature

trigger:
branch:
- master
Expand Down
18 changes: 0 additions & 18 deletions build/integration/sharing_features/hidden-folder.feature

This file was deleted.

14 changes: 14 additions & 0 deletions build/integration/sharing_features/sharing-v1-part3.feature
Original file line number Diff line number Diff line change
Expand Up @@ -594,3 +594,17 @@ Feature: sharing
| permissions | 23 |
| file_target | /subfolder |
| expireDate | |

Scenario: Share the hidden folder fails
Given user "user0" exists
And system parameter "instanceid" is set to "dummy"
And User "user0" created a folder "/.hidden_instance"
And system parameter "instanceid" is set to "instance"
And user "user1" exists
And As an "user0"
When creating a share with
| path | .hidden_instance |
| shareWith | user1 |
| shareType | 0 |
Then the OCS status code should be "403"
And the HTTP status code should be "200"

0 comments on commit bbbbebf

Please sign in to comment.