Releases: krujos/willitconnect
Releases · krujos/willitconnect
Dependency updates
Use latest boot
Dependency Bump.
keeping up with the joneses.
Bound Services
This release includes many UI improvements and support for bound services
Fix crash introduced in v0.3
v0.3.1 Rev 0.3.1
Add endpoint for host names in bound services (/serviceresults)
This release adds a new endpoint at /serviceresults that displays willitconnect's ability to establish a connection to bound hosts.
The logic looks through all of VCAP_SERVICES
for entries with a key that contains the substring host
and a port
entry as a peer. For example if your VCAP_SERVICES
looks like this:
➜ willitconnect git:(master) cf env willitconnect $
Getting env variables for app willitconnect in org jdk / space development as admin...
OK
System-Provided:
{
"VCAP_SERVICES": {
"p-mysql": [
{
"credentials": {
"hostname": "10.0.16.86",
"jdbcUrl": "jdbc:mysql://10.0.16.86:3306/cf_c52045b3_c6db_43c6_b51e_ac6be978bd6c?user=BvaMPkzQvEDr7qMR\u0026password=0s1gA6YuhqcygC1R",
"name": "cf_c52045b3_c6db_43c6_b51e_ac6be978bd6c",
"password": "0s1gA6YuhqcygC1R",
"port": 3306,
"uri": "mysql://BvaMPkzQvEDr7qMR:[email protected]:3306/cf_c52045b3_c6db_43c6_b51e_ac6be978bd6c?reconnect=true",
"username": "BvaMPkzQvEDr7qMR"
},
"label": "p-mysql",
"name": "cities-db",
"plan": "100mb-dev",
"tags": [
"mysql",
"relational"
]
}
]
}
}
<snip/>...
No staging env variables have been set
You will get output that looks like this:
➜ willitconnect git:(master) curl http://willitconnect.apps.mypcf.com/serviceresults
[{"lastChecked":1443837042716,"entry":"10.0.16.86:3306","canConnect":true,"validHostname":true}]
Now with UI!
Initial release
Minimal connection test based on parameters passed in by the user.