pull up MySQL URI scheme
This commit is contained in:
@@ -3,14 +3,15 @@ package org.springframework.cloud.cloudfoundry;
|
||||
import org.springframework.cloud.service.common.MysqlServiceInfo;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Ramnivas Laddad
|
||||
*
|
||||
*/
|
||||
public class MysqlServiceInfoCreator extends RelationalServiceInfoCreator<MysqlServiceInfo> {
|
||||
|
||||
public MysqlServiceInfoCreator() {
|
||||
super(new Tags("mysql"), "mysql");
|
||||
// the literal in the tag is CloudFoundry-specific
|
||||
super(new Tags("mysql"), MysqlServiceInfo.URI_SCHEME);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -3,14 +3,16 @@ package org.springframework.cloud.service.common;
|
||||
import org.springframework.cloud.service.ServiceInfo.ServiceLabel;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Ramnivas Laddad
|
||||
*
|
||||
*/
|
||||
@ServiceLabel("mysql")
|
||||
public class MysqlServiceInfo extends RelationalServiceInfo {
|
||||
|
||||
public static final String URI_SCHEME = "mysql";
|
||||
|
||||
public MysqlServiceInfo(String id, String url) {
|
||||
super(id, url, "mysql");
|
||||
super(id, url, URI_SCHEME);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,14 +3,14 @@ package org.springframework.cloud.heroku;
|
||||
import org.springframework.cloud.service.common.MysqlServiceInfo;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Ramnivas Laddad
|
||||
*
|
||||
*/
|
||||
public class MysqlServiceInfoCreator extends RelationalServiceInfoCreator<MysqlServiceInfo> {
|
||||
|
||||
public MysqlServiceInfoCreator() {
|
||||
super("mysql");
|
||||
super(MysqlServiceInfo.URI_SCHEME);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -13,15 +13,15 @@ import org.springframework.cloud.service.ServiceInfo;
|
||||
import org.springframework.cloud.service.common.MysqlServiceInfo;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Ramnivas Laddad
|
||||
*
|
||||
*/
|
||||
public class HerokuConnectorMysqlServiceTest extends AbstractHerokuConnectorRelationalServiceTest {
|
||||
public HerokuConnectorMysqlServiceTest() {
|
||||
super("mysql");
|
||||
super(MysqlServiceInfo.URI_SCHEME);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void mysqlServiceCreation() {
|
||||
Map<String, String> env = new HashMap<String, String>();
|
||||
|
||||
Reference in New Issue
Block a user