Skip to content

Commit

Permalink
Merge pull request #32311 from owncloud/feature/run-litmus-in-shared-…
Browse files Browse the repository at this point in the history
…folder

Add litmus test on mounted storage and shared folder
  • Loading branch information
patrickjahns authored Aug 16, 2018
2 parents 422bc84 + 6b8f3b6 commit a92877b
Showing 1 changed file with 66 additions and 4 deletions.
70 changes: 66 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,25 @@ pipeline:
matrix:
CHOWN_SERVER: true

litmus-setup:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- echo "Create local mount ...."
- mkdir -p /drone/src/work/local_storage
- php occ app:enable files_external
- php occ config:system:set files_external_allow_create_new_local --value=true
- php occ config:app:set core enable_external_storage --value=yes
- php occ files_external:create local_storage local null::null -c datadir=/drone/src/work/local_storage
- echo 'Sharing a folder ..'
- OC_PASS=123456 php occ user:add --password-from-env user1
- chown www-data /drone/src -R
- curl -s -u user1:123456 -X MKCOL 'http://server/remote.php/webdav/new_folder'
- curl -s -u user1:123456 "http://server/ocs/v2.php/apps/files_sharing/api/v1/shares" --data 'path=/new_folder&shareType=0&permissions=15&name=new_folder&shareWith=admin'
when:
matrix:
TEST_SUITE: litmus

litmus-old-endpoint:
image: owncloud/litmus
pull: true
Expand All @@ -240,9 +259,53 @@ pipeline:
image: owncloud/litmus
pull: true
environment:
- LITMUS_URL=http://server/remote.php/dav/files/admin
- LITMUS_USERNAME=admin
- LITMUS_PASSWORD=admin
- LITMUS_URL=http://server/remote.php/dav/files/admin
- LITMUS_USERNAME=admin
- LITMUS_PASSWORD=admin
when:
matrix:
TEST_SUITE: litmus

litmus-new-endpoint-mount:
image: owncloud/litmus
pull: true
environment:
- LITMUS_URL=http://server/remote.php/dav/files/admin/local_storage/
- LITMUS_USERNAME=admin
- LITMUS_PASSWORD=admin
when:
matrix:
TEST_SUITE: litmus

litmus-old-endpoint-mount:
image: owncloud/litmus
pull: true
environment:
- LITMUS_URL=http://server/remote.php/webdav/local_storage/
- LITMUS_USERNAME=admin
- LITMUS_PASSWORD=admin
when:
matrix:
TEST_SUITE: litmus

litmus-new-endpoint-shared:
image: owncloud/litmus
pull: true
environment:
- LITMUS_URL=http://server/remote.php/dav/files/admin/new_folder/
- LITMUS_USERNAME=admin
- LITMUS_PASSWORD=admin
when:
matrix:
TEST_SUITE: litmus

litmus-old-endpoint-shared:
image: owncloud/litmus
pull: true
environment:
- LITMUS_URL=http://server/remote.php/webdav/new_folder/
- LITMUS_USERNAME=admin
- LITMUS_PASSWORD=admin
when:
matrix:
TEST_SUITE: litmus
Expand Down Expand Up @@ -484,7 +547,6 @@ matrix:
USE_SERVER: true
TEST_SUITE: litmus
INSTALL_SERVER: true
CHOWN_SERVER: true

# Unit Tests
- PHP_VERSION: 7.1
Expand Down

0 comments on commit a92877b

Please sign in to comment.