on-demand-service-broker

module
v0.15.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2017 License: Apache-2.0

README

on-demand-service-broker

A Cloud Foundry generic on demand service broker.

This is an on-demand broker designed to take advantage of BOSH 2.0 features such as IP management and global cloud configuration.

In production, this application is deployed via a BOSH release. See its repo for more details.

User Documentation

User documentation can be found here. Documentation is targeted at service authors wishing to deploy their services on-demand and operators wanting to offer services on-demand.

Development

How are dependencies managed?

We only deploy this application with BOSH. Its dependencies are vendored as submodules into the BOSH release.

Configuration

This app is configured with a config file, the path to which should be supplied on the command line: on-demand-broker -configFilePath /some/file.yml.

An example configuration file is config/test_assets/good_config.yml.

You will need to upload a service release for example a Redis release to your BOSH director.

Running tests

You can make use of the script in scripts/run-tests.sh to run tests skipping system tests.

Running Systests

In order to run the systests you must set the environment variable that are listed in system_tests/.envrc.template. The values for these variables can be taken from the pipeline.yml and adjusted for your local environment

Dev / test tools
  • go 1.6
  • counterfeiter (for re-generating fakes)
  • CF CLI (for system tests. See below)
What's in that system_tests directory?

Black-box tests designed to be run against this broker, a real BOSH director and a real Cloud Foundry.

Directories

Path Synopsis
fake_command_runner
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
cmd
fakes
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter
integration_tests
fake_manageable_broker
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
system_tests
fakes
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
fakes
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL