Coder Social home page Coder Social logo

bigbluebutton_mock's Introduction

BigBlueButton Mock API Server

This project and associated docker containers provide a mock of the main BigBlueButton server and can be used for testing of BigBlueButton integrations.

Quick setup using Docker

Run the following command to get your mock server up and running:

docker run -p 8001:80 moodlehq/bigbluebutton_mock

Example usage

Automated tests

You need to define TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER in your config.php when running automated tests like PHPUnit and Behat. Otherwise, most of the BigBlueButton tests will be marked skipped.

For example, add the following to your config.php after the $CFG->wwwroot line:

define('TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER', "http://localhost:8001/hash" . sha1($CFG->wwwroot));

More information

All endpoints must be prefixed with a serverID to allow for parallel runs, for example:

http://localhost:8001/someServerID/api

In addition to the standard endpoints, additional endpoints are provided for setting up data which a test requires or expects:

/backoffice/createMeeting
/backoffice/createRecording

In addition, the following endpoint can be used to trigger a reset between tests:

/backoffice/reset

And the following endpoints exist to view the current meetings and recordings:

/backoffice/meetings
/backoffice/recordings

Local development

  • Symphony : wget https://get.symfony.com/cli/installer -O - | bash
  • PHP SQLLite3 : example sudo apt install php7.4-sqlite3

Check requirements:

cd application
symfony check:requirements

Set up the db:

php bin/console doctrine:database:drop --force
php bin/console doctrine:schema:create

Run the project:

symfony server:start --port=8001 --no-tls --allow-http

Debugging:

XDEBUG_SESSION=1 symfony server:start --port=8001 --no-tls --allow-http

Notes:

  • The database is intended to be disposable. Migrations are not guaranteed to work. Please be prepared to drop and recreate the database.

Publishing status

Note : if you want to publish on your own repository (being Docker Hub or Git Container Registry), you need to define the following secrets following secrets :

  • DOCKERHUB_OWNER
  • DOCKERHUB_PASSWORD
  • DOCKERHUB_TOKEN
  • DOCKERHUB_USERNAME
  • GH_OWNER

Docker multiarch publish

bigbluebutton_mock's People

Contributors

andrewnicols avatar ilyatregubov avatar junpataleta avatar laurentdavid avatar stronk7 avatar vmdef avatar

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.