Coder Social home page Coder Social logo

bigbluebutton_mock's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bigbluebutton_mock's Issues

Document a little bit how to use the Docker image from Moodle

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

Consider adding some CI (GHA) to have the mock server continuously tested

It would be great if we can get the mock server covered with tests.

The can be proper/pure unit tests, not requiring the server to be running and accepting requests. But also can have some integration tests, with the server launched and various requests (postman style) verifying that everything is working as expected. Or, more specifically, it can also be a Moodle instance, configured to to use a mock instance and running Moodle's phpunit/behat tests.

There is a world of opportunities, let's pick a strategy and try to get the mock server continuously verified.

Ciao :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.