Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(loadFromVCAPServices): Service configuration factory.
Remove ConfigureService call from the BaseService constructor function. Add a name field to the service interface. Create a list of service entries and check for the service name within them before checking the keys to the service entry lists. Update unit test to check that loadFromVCAPServices is looking for service credentials from the VCAP in the correct order. loadFromVCAPServices checks for service names in keys of service entry lists before checking keys to service entry lists. BREAKING CHANGE: NewBaseService constructor changes. `displayname`, and `serviceName` removed from construction function signature, since they are no longer used.
- Loading branch information