- Description
- Getting Started
- Changes
- Usage
- Test Classes
- Contribution
- Changes
This application is a generalized test program for service brokers. It runs rest calls against the defined service broker and checks if it behaves as expected to the service broker API specification Tests are created dynamically based upon the service broker catalog or custom input by the operator.
to build the application run {path}/osb-checker-kotlin/gradlew build
on linux and MacOS or {path}/osb-checker-kotlin/gradlew.bat build
on windows.
Afterwards you can find osb-checker-kotlin-1.1.3.jar
in osb-checker-kotlin/build/libs
.
The start the basic run configuration create a application.yml file at the same location of the .jar file similar to the example below.
##Define the service broker connection here
config:
url: http://localhost
port : 80
apiVersion: 2.15
user: user
password: password
Then call java -jar osb-checker-kotlin-1.1.3.jar
on the commandline to start checker. In this configuration the checker will run all tests for every service-plan listed
in the catalog. See the chapter Usage for more details about configuring this test-application.
Changes since v1.0:
- Added 2.15 feature testing:
- Using maintenance_info if defined in catalog.
- Option to set X-Broker-API-Request-Identity header.
- When testing polling maximum polling duration is tested.
- Added Option to set X-Broker-API-Originating-Identity.
- Added checks for osb-error-codes in response bodies.
- Added tests for fetching non existing bindings / provisions.
- Tests for what happens, when trying to create already existing provisions / bindings.
- Various improvements of logging such as using names of services and plans instead of id.
- setting up a custom catalog requires only the id's of the plan and no more additional information. This is gathered from the catalog now.
- Add Optional test for Dashboard URLs.
- Restructuring of binding test:
- All plans in the catalog are now tested for invalid binding attempts.
- Too reduce runtime invalid and valid binding tests use the same provision for testing instead.
- Contract test uses preemptive authentication to avoid unintentional 401 status codes. Read here for more information.