-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing VCAP_SERVICE credentials check (#4084)
* Fix invalid VCAP_SERVICE credentials check - Fixes 4081 - When Stratos is deployed via CF and bound to a db service we search VCAP_SERVICE for db credentials - If we don't find the right properties we fall back on the uri and try to extract them from there - The check for the right properties was failing due to the following concept ``` fmt.Sprintf("%v", nil) == "<nil>" ``` - Fix is to ensure we pass in better values Also - Tidied up and improved logging - Improved handling of uri reg ex * Fix backend unit tests * Fall back on default port of provider
- Loading branch information
1 parent
6624d26
commit 26a3afa
Showing
3 changed files
with
58 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters