-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.1
-
MOODLE_401_STABLE
This would be good to add new parameters to setup the feedback url to the bbb broker (so when for example recording are ready).
We could do (from Eloy):
define("TEST_MOD_BIGBLUEBUTTONBN_BROKER',' 'http://host.docker.internal:80/~stronk7/behattesting/mod/bigbluebuttonbn/bbb_broker.php'); |
Or, alternatively, in the docker container, support passing that:
docker run -d -p 8001:80 | |
--env BROKER=http://host.docker.internal:80/~stronk7/behattesting/mod/bigbluebuttonbn/bbb_broker.php | |
moodlehq/bigbluebutton_mock:latest |
But being able to inject a custom broker with any of the 2 alternatives will allow more environments to use the container. Everything as is now... but if a custom broker is defined.
Note: maybe the second is easier, as far as it doesn't requires code changes in moodle, but I don't know how you "inform" to the mock server about the broker URL. So, depending of that, maybe the first is easier... up to you...
Edited: In the examples above, maybe we don't need to pass the whole URL but only the http://host:port part. Again, it depends of the way the mock server is informed about the broker URL.
Currently the workaround is:
- Edit /etc/hosts file and add:
127.0.0.1 host.docker.internal
- Setup $CFG->wwwroot (and $CFG->behat_wwwroot) to use that in config.php:
$CFG->wwwroot = 'http://host.docker.internal/path/to/my/moodle';
That way the behat tests (apache host) run with that URL and the mock server container can access to it. This works for both macs and windows (using docker desktop). To achieve the same with linux, --add-host is needed.
- Discovered while testing
-
MDL-73193 Random failures in BBB automated tests
-
- Closed
-