Skip to content

Commit

Permalink
Add mlbackend_python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllaó committed Dec 6, 2019
1 parent 444f2da commit fb442fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ You can change the configuration of the docker images by setting various environ
| `MOODLE_DOCKER_WWWROOT` | yes | path on your file system | none | The path to the Moodle codebase you intend to test |
| `MOODLE_DOCKER_PHP_VERSION` | no | 7.4, 7.3, 7.2, 7.1, 7.0, 5.6 | 7.2 | The php version to use |
| `MOODLE_DOCKER_BROWSER` | no | firefox, chrome | firefox | The browser to run Behat against |
| `MOODLE_DOCKER_PHPUNIT_EXTERNAL_SERVICES` | no | any value | not set | If set, dependencies for memcached, redis, solr, and openldap are added |
| `MOODLE_DOCKER_PHPUNIT_EXTERNAL_SERVICES` | no | any value | not set | If set, dependencies for memcached, redis, solr, and others are added |
| `MOODLE_DOCKER_WEB_HOST` | no | any valid hostname | localhost | The hostname for web |
| `MOODLE_DOCKER_WEB_PORT` | no | any integer value | 8000 | The port number for web. If set to 0, no port is used |
| `MOODLE_DOCKER_SELENIUM_VNC_PORT` | no | any integer value | not set | If set, the selenium node will expose a vnc session on the port specified |
Expand Down
5 changes: 5 additions & 0 deletions config.docker-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
define('TEST_ENROL_LDAP_BIND_DN', 'cn=admin,dc=openstack,dc=org');
define('TEST_ENROL_LDAP_BIND_PW', 'password');
define('TEST_ENROL_LDAP_DOMAIN', 'ou=Users,dc=openstack,dc=org');

define('TEST_MLBACKEND_PYTHON_HOST', 'mlbackendpython');
define('TEST_MLBACKEND_PYTHON_PORT', 5000);
define('TEST_MLBACKEND_PYTHON_USERNAME', 'default');
define('TEST_MLBACKEND_PYTHON_PASSWORD', 'sshhhh');
}

require_once(__DIR__ . '/lib/setup.php');
2 changes: 2 additions & 0 deletions phpunit-external-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ services:
- test
ldap:
image: larrycai/openldap
mlbackendpython:
image: "moodlehq/moodle-mlbackend-python:2.3.0-python3.7.5"

0 comments on commit fb442fa

Please sign in to comment.