Move sharing integration tests to their own directory

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/16761/head
John Molakvoæ (skjnldsv) 5 years ago
parent ba1ba1a55e
commit 99404bdfb3
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF

@ -1123,20 +1123,20 @@ trigger:
---
kind: pipeline
name: integration-sharing-v1
name: integration-checksums-v1
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-sharing-v1
image: nextcloudci/integration-php7.1:2
- name: integration-checksums-v1
image: nextcloudci/integration-php7.1:1
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/sharing-v1.feature
- ./run.sh features/checksums.feature
trigger:
branch:
@ -1148,20 +1148,20 @@ trigger:
---
kind: pipeline
name: integration-sharing-v1-part2
name: integration-external-storage
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-sharing-v1-part2
image: nextcloudci/integration-php7.1:2
- name: integration-external-storage
image: nextcloudci/integration-php7.1:1
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/sharing-v1-part2.feature
- ./run.sh features/external-storage.feature
trigger:
branch:
@ -1173,20 +1173,20 @@ trigger:
---
kind: pipeline
name: integration-sharing-v1-part3
name: integration-provisioning-v1
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-sharing-v1-part3
image: nextcloudci/integration-php7.1:2
- name: integration-provisioning-v1
image: nextcloudci/integration-php7.1:1
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/sharing-v1-part3.feature
- ./run.sh features/provisioning-v1.feature
trigger:
branch:
@ -1198,20 +1198,20 @@ trigger:
---
kind: pipeline
name: integration-checksums-v1
name: integration-tags
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-checksums-v1
image: nextcloudci/integration-php7.1:2
- name: integration-tags
image: nextcloudci/integration-php7.1:1
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/checksums.feature
- ./run.sh features/tags.feature
trigger:
branch:
@ -1223,20 +1223,20 @@ trigger:
---
kind: pipeline
name: integration-external-storage
name: integration-caldav
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-external-storage
image: nextcloudci/integration-php7.1:2
- name: integration-caldav
image: nextcloudci/integration-php7.1:1
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/external-storage.feature
- ./run.sh features/caldav.feature
trigger:
branch:
@ -1248,20 +1248,20 @@ trigger:
---
kind: pipeline
name: integration-provisioning-v1
name: integration-comments
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-provisioning-v1
image: nextcloudci/integration-php7.1:2
- name: integration-comments
image: nextcloudci/integration-php7.1:1
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/provisioning-v1.feature
- ./run.sh features/comments.feature
trigger:
branch:
@ -1273,20 +1273,20 @@ trigger:
---
kind: pipeline
name: integration-tags
name: integration-comments-search
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-tags
image: nextcloudci/integration-php7.1:2
- name: integration-comments-search
image: nextcloudci/integration-php7.1:1
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/tags.feature
- ./run.sh features/comments-search.feature
trigger:
branch:
@ -1298,20 +1298,20 @@ trigger:
---
kind: pipeline
name: integration-caldav
name: integration-favorites
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-caldav
image: nextcloudci/integration-php7.1:2
- name: integration-favorites
image: nextcloudci/integration-php7.1:1
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/caldav.feature
- ./run.sh features/favorites.feature
trigger:
branch:
@ -1323,20 +1323,20 @@ trigger:
---
kind: pipeline
name: integration-comments
name: integration-provisioning-v2
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-comments
image: nextcloudci/integration-php7.1:2
- name: integration-provisioning-v2
image: nextcloudci/integration-php7.1:1
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/comments.feature
- ./run.sh features/provisioning-v2.feature
trigger:
branch:
@ -1348,20 +1348,20 @@ trigger:
---
kind: pipeline
name: integration-comments-search
name: integration-webdav-related
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-comments-search
image: nextcloudci/integration-php7.1:2
- name: integration-webdav-related
image: nextcloudci/integration-php7.1:1
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/comments-search.feature
- ./run.sh features/webdav-related.feature
trigger:
branch:
@ -1373,20 +1373,20 @@ trigger:
---
kind: pipeline
name: integration-favorites
name: integration-sharees-features
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-favorites
image: nextcloudci/integration-php7.1:2
- name: integration-sharees-features
image: nextcloudci/integration-php7.1:1
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/favorites.feature
- ./run.sh sharees_features/sharees.feature
trigger:
branch:
@ -1398,20 +1398,20 @@ trigger:
---
kind: pipeline
name: integration-provisioning-v2
name: integration-sharees-v2-features
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-provisioning-v2
image: nextcloudci/integration-php7.1:2
- name: integration-sharees-v2-features
image: nextcloudci/integration-php7.1:1
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/provisioning-v2.feature
- ./run.sh sharees_features/sharees_provisioningapiv2.feature
trigger:
branch:
@ -1423,20 +1423,20 @@ trigger:
---
kind: pipeline
name: integration-webdav-related
name: integration-sharing-v1
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-webdav-related
image: nextcloudci/integration-php7.1:2
- name: integration-sharing-v1
image: nextcloudci/integration-php7.1:1
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/webdav-related.feature
- ./run.sh sharing_features/sharing-v1.feature
trigger:
branch:
@ -1448,20 +1448,20 @@ trigger:
---
kind: pipeline
name: integration-sharees-features
name: integration-sharing-v1-part2
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-sharees-features
image: nextcloudci/integration-php7.1:2
- name: integration-sharing-v1-part2
image: nextcloudci/integration-php7.1:1
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 sharees_features/sharees.feature
- ./run.sh sharing_features/sharing-v1-part2.feature
trigger:
branch:
@ -1473,20 +1473,20 @@ trigger:
---
kind: pipeline
name: integration-sharees-v2-features
name: integration-sharing-v1-part3
steps:
- name: submodules
image: docker:git
commands:
- git submodule update --init
- name: integration-sharees-v2-features
image: nextcloudci/integration-php7.1:2
- name: integration-sharing-v1-part3
image: nextcloudci/integration-php7.1:1
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 sharees_features/sharees_provisioningapiv2.feature
- ./run.sh sharing_features/sharing-v1-part3.feature
trigger:
branch:

@ -55,6 +55,16 @@ default:
- admin
- admin
regular_user_password: 123456
sharing:
paths:
- "%paths.base%/../sharing_features"
contexts:
- SharingContext:
baseUrl: http://localhost:8080/ocs/
admin:
- admin
- admin
regular_user_password: 123456
setup:
paths:
- "%paths.base%/../setup_features"

@ -0,0 +1,40 @@
<?php
/**
*
*
* @author Joas Schilling <coding@schilljs.com>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
use Behat\Behat\Context\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
use PHPUnit\Framework\Assert;
use Psr\Http\Message\ResponseInterface;
require __DIR__ . '/../../vendor/autoload.php';
/**
* Features context.
*/
class SharingContext implements Context, SnippetAcceptingContext {
use Sharing;
use AppConfiguration;
protected function resetAppConfigs() {}
}
Loading…
Cancel
Save