Meta Azure Service Broker implements Service Broker API. Each services module will provision/deprovision/bind/unbind the service instance accordingly.
If you want to support a new service in Meta Azure Service Broker, you need to implement the following things:
- A new service module
- Add the test cases and make sure that they can pass.
- Write a document to describe how to manage the service.
Create a new directory under the directory lib/services/
. The new directory name is recommended to be the service name. Please see the detailed designs for more informations.
After you finish the codes for the service operations, you need to implement the test cases. The test cases include two parts: unit tests and integration tests.
- Create a new directory under the directory
test/unit/services/
. The new directory name should be the service name. - Implement the test cases in
test/unit/services/<service-name>
. - Add the case file name in
test/unittestlist.txt
.
Add the new cases in test/integration/test-matrix.js
.
Please see Test the Broker Locally for more informations.
After you test the broker locally, you can submit a PR. Travis CI will test your PR automatically to ensure the quality.