diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-21 14:35:19 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-21 14:44:29 +0200 |
commit | 2f80025ec25dd3ce19c0664f07073399e9bf99e9 (patch) | |
tree | 9cb469bcf60bcb91c6462d8cd13834ad5d7a9482 | |
parent | f89c16f83e33a38bf9a906b990c661b69eddd1e5 (diff) | |
download | nextcloud-server-2f80025ec25dd3ce19c0664f07073399e9bf99e9.tar.gz nextcloud-server-2f80025ec25dd3ce19c0664f07073399e9bf99e9.zip |
Move acceptance tests from build/acceptance to tests/acceptance
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r-- | .drone.yml | 4 | ||||
-rw-r--r-- | tests/acceptance/composer.json (renamed from build/acceptance/composer.json) | 0 | ||||
-rw-r--r-- | tests/acceptance/config/behat.yml (renamed from build/acceptance/config/behat.yml) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/access-levels.feature (renamed from build/acceptance/features/access-levels.feature) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/FeatureContext.php (renamed from build/acceptance/features/bootstrap/FeatureContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/FilesAppContext.php (renamed from build/acceptance/features/bootstrap/FilesAppContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/LoginPageContext.php (renamed from build/acceptance/features/bootstrap/LoginPageContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/NotificationContext.php (renamed from build/acceptance/features/bootstrap/NotificationContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/SettingsMenuContext.php (renamed from build/acceptance/features/bootstrap/SettingsMenuContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/UsersSettingsContext.php (renamed from build/acceptance/features/bootstrap/UsersSettingsContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/Actor.php (renamed from build/acceptance/features/core/Actor.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/ActorAware.php (renamed from build/acceptance/features/core/ActorAware.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/ActorAwareInterface.php (renamed from build/acceptance/features/core/ActorAwareInterface.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/ActorContext.php (renamed from build/acceptance/features/core/ActorContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/Locator.php (renamed from build/acceptance/features/core/Locator.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/NextcloudTestServerContext.php (renamed from build/acceptance/features/core/NextcloudTestServerContext.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/NextcloudTestServerHelper.php (renamed from build/acceptance/features/core/NextcloudTestServerHelper.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/NextcloudTestServerLocalHelper.php (renamed from build/acceptance/features/core/NextcloudTestServerLocalHelper.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/NoSuchElementException.php (renamed from build/acceptance/features/core/NoSuchElementException.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/core/Utils.php (renamed from build/acceptance/features/core/Utils.php) | 0 | ||||
-rw-r--r-- | tests/acceptance/features/login.feature (renamed from build/acceptance/features/login.feature) | 0 | ||||
-rwxr-xr-x | tests/acceptance/installAndConfigureServer.sh (renamed from build/acceptance/installAndConfigureServer.sh) | 0 | ||||
-rwxr-xr-x | tests/acceptance/run-local.sh (renamed from build/acceptance/run-local.sh) | 4 | ||||
-rwxr-xr-x | tests/acceptance/run.sh (renamed from build/acceptance/run.sh) | 5 |
24 files changed, 7 insertions, 6 deletions
diff --git a/.drone.yml b/.drone.yml index 60194f482c4..9b6a01bd4f0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -481,14 +481,14 @@ pipeline: acceptance-access-levels: image: nextcloudci/php7.0:php7.0-7 commands: - - build/acceptance/run-local.sh allow-git-repository-modifications features/access-levels.feature + - tests/acceptance/run-local.sh allow-git-repository-modifications features/access-levels.feature when: matrix: TESTS-ACCEPTANCE: access-levels acceptance-login: image: nextcloudci/php7.0:php7.0-7 commands: - - build/acceptance/run-local.sh allow-git-repository-modifications features/login.feature + - tests/acceptance/run-local.sh allow-git-repository-modifications features/login.feature when: matrix: TESTS-ACCEPTANCE: login diff --git a/build/acceptance/composer.json b/tests/acceptance/composer.json index 87b6ba4a22c..87b6ba4a22c 100644 --- a/build/acceptance/composer.json +++ b/tests/acceptance/composer.json diff --git a/build/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml index 6c3d9e4a7b9..6c3d9e4a7b9 100644 --- a/build/acceptance/config/behat.yml +++ b/tests/acceptance/config/behat.yml diff --git a/build/acceptance/features/access-levels.feature b/tests/acceptance/features/access-levels.feature index 57998899a57..57998899a57 100644 --- a/build/acceptance/features/access-levels.feature +++ b/tests/acceptance/features/access-levels.feature diff --git a/build/acceptance/features/bootstrap/FeatureContext.php b/tests/acceptance/features/bootstrap/FeatureContext.php index a125ea01ccc..a125ea01ccc 100644 --- a/build/acceptance/features/bootstrap/FeatureContext.php +++ b/tests/acceptance/features/bootstrap/FeatureContext.php diff --git a/build/acceptance/features/bootstrap/FilesAppContext.php b/tests/acceptance/features/bootstrap/FilesAppContext.php index 9702e64b552..9702e64b552 100644 --- a/build/acceptance/features/bootstrap/FilesAppContext.php +++ b/tests/acceptance/features/bootstrap/FilesAppContext.php diff --git a/build/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php index 55db8c33bb7..55db8c33bb7 100644 --- a/build/acceptance/features/bootstrap/LoginPageContext.php +++ b/tests/acceptance/features/bootstrap/LoginPageContext.php diff --git a/build/acceptance/features/bootstrap/NotificationContext.php b/tests/acceptance/features/bootstrap/NotificationContext.php index f8b784e2465..f8b784e2465 100644 --- a/build/acceptance/features/bootstrap/NotificationContext.php +++ b/tests/acceptance/features/bootstrap/NotificationContext.php diff --git a/build/acceptance/features/bootstrap/SettingsMenuContext.php b/tests/acceptance/features/bootstrap/SettingsMenuContext.php index 9ce8df4caef..9ce8df4caef 100644 --- a/build/acceptance/features/bootstrap/SettingsMenuContext.php +++ b/tests/acceptance/features/bootstrap/SettingsMenuContext.php diff --git a/build/acceptance/features/bootstrap/UsersSettingsContext.php b/tests/acceptance/features/bootstrap/UsersSettingsContext.php index 93ab7246eb6..93ab7246eb6 100644 --- a/build/acceptance/features/bootstrap/UsersSettingsContext.php +++ b/tests/acceptance/features/bootstrap/UsersSettingsContext.php diff --git a/build/acceptance/features/core/Actor.php b/tests/acceptance/features/core/Actor.php index a27e8e6a015..a27e8e6a015 100644 --- a/build/acceptance/features/core/Actor.php +++ b/tests/acceptance/features/core/Actor.php diff --git a/build/acceptance/features/core/ActorAware.php b/tests/acceptance/features/core/ActorAware.php index f1d355c1b0e..f1d355c1b0e 100644 --- a/build/acceptance/features/core/ActorAware.php +++ b/tests/acceptance/features/core/ActorAware.php diff --git a/build/acceptance/features/core/ActorAwareInterface.php b/tests/acceptance/features/core/ActorAwareInterface.php index 9363bc3e607..9363bc3e607 100644 --- a/build/acceptance/features/core/ActorAwareInterface.php +++ b/tests/acceptance/features/core/ActorAwareInterface.php diff --git a/build/acceptance/features/core/ActorContext.php b/tests/acceptance/features/core/ActorContext.php index 9667ef2f01c..9667ef2f01c 100644 --- a/build/acceptance/features/core/ActorContext.php +++ b/tests/acceptance/features/core/ActorContext.php diff --git a/build/acceptance/features/core/Locator.php b/tests/acceptance/features/core/Locator.php index 0ebae9b8fb1..0ebae9b8fb1 100644 --- a/build/acceptance/features/core/Locator.php +++ b/tests/acceptance/features/core/Locator.php diff --git a/build/acceptance/features/core/NextcloudTestServerContext.php b/tests/acceptance/features/core/NextcloudTestServerContext.php index f8d13a656b9..f8d13a656b9 100644 --- a/build/acceptance/features/core/NextcloudTestServerContext.php +++ b/tests/acceptance/features/core/NextcloudTestServerContext.php diff --git a/build/acceptance/features/core/NextcloudTestServerHelper.php b/tests/acceptance/features/core/NextcloudTestServerHelper.php index 198d78e3fcb..198d78e3fcb 100644 --- a/build/acceptance/features/core/NextcloudTestServerHelper.php +++ b/tests/acceptance/features/core/NextcloudTestServerHelper.php diff --git a/build/acceptance/features/core/NextcloudTestServerLocalHelper.php b/tests/acceptance/features/core/NextcloudTestServerLocalHelper.php index 32b5330c61a..32b5330c61a 100644 --- a/build/acceptance/features/core/NextcloudTestServerLocalHelper.php +++ b/tests/acceptance/features/core/NextcloudTestServerLocalHelper.php diff --git a/build/acceptance/features/core/NoSuchElementException.php b/tests/acceptance/features/core/NoSuchElementException.php index 5f8270d2a49..5f8270d2a49 100644 --- a/build/acceptance/features/core/NoSuchElementException.php +++ b/tests/acceptance/features/core/NoSuchElementException.php diff --git a/build/acceptance/features/core/Utils.php b/tests/acceptance/features/core/Utils.php index 86b7515e4c6..86b7515e4c6 100644 --- a/build/acceptance/features/core/Utils.php +++ b/tests/acceptance/features/core/Utils.php diff --git a/build/acceptance/features/login.feature b/tests/acceptance/features/login.feature index c4cd2add8e6..c4cd2add8e6 100644 --- a/build/acceptance/features/login.feature +++ b/tests/acceptance/features/login.feature diff --git a/build/acceptance/installAndConfigureServer.sh b/tests/acceptance/installAndConfigureServer.sh index c41f03ece16..c41f03ece16 100755 --- a/build/acceptance/installAndConfigureServer.sh +++ b/tests/acceptance/installAndConfigureServer.sh diff --git a/build/acceptance/run-local.sh b/tests/acceptance/run-local.sh index bd5d6b09be1..ee7a4e6455c 100755 --- a/build/acceptance/run-local.sh +++ b/tests/acceptance/run-local.sh @@ -54,13 +54,13 @@ composer install cd ../../ echo "Installing and configuring Nextcloud server" -build/acceptance/installAndConfigureServer.sh +tests/acceptance/installAndConfigureServer.sh echo "Saving the default state so acceptance tests can reset to it" find . -name ".gitignore" -exec rm --force {} \; git add --all && echo 'Default state' | git -c user.name='John Doe' -c user.email='john@doe.org' commit --quiet --file=- -cd build/acceptance +cd tests/acceptance # Ensure that the Selenium server is ready before running the tests. echo "Waiting for Selenium" diff --git a/build/acceptance/run.sh b/tests/acceptance/run.sh index 8cb2bee621d..f9711cbb404 100755 --- a/build/acceptance/run.sh +++ b/tests/acceptance/run.sh @@ -118,7 +118,8 @@ function prepareDocker() { # "docker cp" does not take them into account (the extracted files are set # to root). echo "Copying local Git working directory of Nextcloud to the container" - tar --create --file="$NEXTCLOUD_LOCAL_TAR" --exclude=".git" --exclude="./config/config.php" --exclude="./data" --exclude="./data-autotest" --exclude="./tests" --directory=../../ . + tar --create --file="$NEXTCLOUD_LOCAL_TAR" --exclude=".git" --exclude="./build" --exclude="./config/config.php" --exclude="./data" --exclude="./data-autotest" --exclude="./tests" --directory=../../ . + tar --append --file="$NEXTCLOUD_LOCAL_TAR" --directory=../../ tests/acceptance/ docker exec $NEXTCLOUD_LOCAL_CONTAINER mkdir /nextcloud docker cp - $NEXTCLOUD_LOCAL_CONTAINER:/nextcloud/ < "$NEXTCLOUD_LOCAL_TAR" @@ -174,4 +175,4 @@ prepareSelenium prepareDocker echo "Running tests" -docker exec $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd nextcloud && build/acceptance/run-local.sh allow-git-repository-modifications $SCENARIO_TO_RUN" +docker exec $NEXTCLOUD_LOCAL_CONTAINER bash -c "cd nextcloud && tests/acceptance/run-local.sh allow-git-repository-modifications $SCENARIO_TO_RUN" |