Skip to content

Commit 2165f77

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

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

base.yml

+4
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ services:
2626
image: "selenium/standalone-firefox${MOODLE_DOCKER_SELENIUM_SUFFIX}:2.53.1"
2727
volumes:
2828
- "${MOODLE_DOCKER_WWWROOT}:/var/www/html:ro"
29+
mlbackendpython:
30+
image: "moodlehq/moodle-mlbackend-python:2.3.0-python3.7.5"
31+
ports:
32+
- "5000:5000"

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');

0 commit comments

Comments
 (0)