server/tests
Daniel Calviño Sánchez d70b6bc94b Set "wd_host" directly in "behat.yml" instead of through "BEHAT_PARAMS"
The "wd_host" parameter of Selenium2 sessions specify the URL used by
the Selenium driver to connect with the Selenium server. Thus, when the
Selenium server is at a different host or port than the default one (for
example, when run on Drone) the "wd_host" parameter must be set for each
of the Selenium2 sessions defined in "behat.yml".

The "BEHAT_PARAMS" environment variable, which extends the "behat.yml"
configuration file, was used for that. However, this required adding to
the "BEHAT_PARAMS" in "run-local.sh" each new session added to
"behat.yml", including those added in the acceptance tests of apps.

To address that limitation, this commit introduces a simulated variable,
"selenium.server"; just before the acceptance tests are run the
"selenium.server" variable in the "wd_host" parameter is replaced in the
"behat.yml" file used by the acceptance tests. Note that the file that
is modified is the one inside the Docker container used to run the
acceptance tests, so the original file is not touched.

Note that a simulated variable is needed because Behat does not support
overridding nor setting configuration parameters with environment
variables.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-06-22 19:46:44 +02:00
..
acceptance Set "wd_host" directly in "behat.yml" instead of through "BEHAT_PARAMS" 2018-06-22 19:46:44 +02:00
apps Validate the info.xml against the appstore schema file 2018-02-16 10:23:51 +01:00
Core prefill userid for login after password reset 2018-06-21 15:18:07 +02:00
data fix appinfo parsing when a single localized option is provided 2018-04-17 11:14:03 +02:00
docker Namespace and array syntax fixes 2017-03-19 14:52:54 -06:00
lib Merge pull request #9518 from nextcloud/feature/5986/public_share_controller_middleware 2018-06-21 10:09:20 +02:00
objectstore make object prefix configurable 2016-11-14 15:10:56 +01:00
Settings Fix tests 2018-06-19 17:17:34 +02:00
travis Changed name of default logfile from owncloud.log to nextcloud.log. 2016-07-04 11:50:32 +02:00
apps.php
bootstrap.php Require PHPUnit 6.5 or higher 2018-01-24 17:23:59 +01:00
drone-wait-objectstore.sh Kill objectstore CI if we can't create a file 2018-02-26 14:54:27 +01:00
enable_all.php Add tests 2018-01-25 13:44:47 +01:00
karma.config.js Fixing failing test cases due to change in functionality. 2018-03-27 01:34:00 +05:30
phpunit-autotest-external.xml
phpunit-autotest.xml Add tests 2018-01-25 13:44:47 +01:00
preseed-config.php add azure unit tests with azurite 2018-06-04 16:18:03 +02:00
redis-cluster.config.php Fix drone 2017-07-14 15:04:18 +02:00
redis.config.php Fix drone 2017-07-14 15:04:18 +02:00
startsessionlistener.php Require PHPUnit 6.5 or higher 2018-01-24 17:23:59 +01:00