Skip to content

Commit fb442fa

Browse files
author
David Monllaó
committed
Add mlbackend_python tests
1 parent 444f2da commit fb442fa

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ You can change the configuration of the docker images by setting various environ
127127
| `MOODLE_DOCKER_WWWROOT` | yes | path on your file system | none | The path to the Moodle codebase you intend to test |
128128
| `MOODLE_DOCKER_PHP_VERSION` | no | 7.4, 7.3, 7.2, 7.1, 7.0, 5.6 | 7.2 | The php version to use |
129129
| `MOODLE_DOCKER_BROWSER` | no | firefox, chrome | firefox | The browser to run Behat against |
130-
| `MOODLE_DOCKER_PHPUNIT_EXTERNAL_SERVICES` | no | any value | not set | If set, dependencies for memcached, redis, solr, and openldap are added |
130+
| `MOODLE_DOCKER_PHPUNIT_EXTERNAL_SERVICES` | no | any value | not set | If set, dependencies for memcached, redis, solr, and others are added |
131131
| `MOODLE_DOCKER_WEB_HOST` | no | any valid hostname | localhost | The hostname for web |
132132
| `MOODLE_DOCKER_WEB_PORT` | no | any integer value | 8000 | The port number for web. If set to 0, no port is used |
133133
| `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 |

config.docker-template.php

+5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
define('TEST_ENROL_LDAP_BIND_DN', 'cn=admin,dc=openstack,dc=org');
8181
define('TEST_ENROL_LDAP_BIND_PW', 'password');
8282
define('TEST_ENROL_LDAP_DOMAIN', 'ou=Users,dc=openstack,dc=org');
83+
84+
define('TEST_MLBACKEND_PYTHON_HOST', 'mlbackendpython');
85+
define('TEST_MLBACKEND_PYTHON_PORT', 5000);
86+
define('TEST_MLBACKEND_PYTHON_USERNAME', 'default');
87+
define('TEST_MLBACKEND_PYTHON_PASSWORD', 'sshhhh');
8388
}
8489

8590
require_once(__DIR__ . '/lib/setup.php');

phpunit-external-services.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ services:
1919
- test
2020
ldap:
2121
image: larrycai/openldap
22+
mlbackendpython:
23+
image: "moodlehq/moodle-mlbackend-python:2.3.0-python3.7.5"

0 commit comments

Comments
 (0)