Open
Description
When looking to some problems @ MDL-70658 related to this image... it was not straightforward to know what is needed to get it working in a local environment.
So I had to look to both this and moodle-ci-runner
(that already supports it) to see how to configure my local testing environment.
It would be great to get that minimally documented, maybe in the README.
For the records, this is what I did here to get the image working with both phpunit and behat. Tricky that we use that dynamic hash (not sure why), but it works. Added to config.php
:
// Also keep the BBB docker mock server at hand if we are running tests.
// docker run -d -p 8080:80 moodlehq/bigbluebutton_mock:latest
$mockhash = sha1($CFG->wwwroot);
if (defined('BEHAT_TESTS') || defined('BEHAT_SITE_RUNNING')) {
$mockhash = sha1($CFG->behat_wwwroot);
}
define("TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER", 'http://127.0.0.1:8080/hash' . $mockhash);
Metadata
Metadata
Assignees
Labels
No labels