Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add litmus test on mounted storage and shared folder #32311

Merged
merged 1 commit into from
Aug 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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