use of com.sohu.cache.entity.AppDesc in project cachecloud by sohutv.
the class ImportAppCenterTest method testCheckClusterNodes.
@Test
public void testCheckClusterNodes() {
// 应用信息
AppDesc appDesc = new AppDesc();
appDesc.setName("carlosfu13");
// 实例信息
String appInstanceInfo = "10.10.53.159:8000:512\n" + "10.10.53.159:8001:512\n" + "10.10.53.159:8002:512\n" + "10.10.53.159:8003:512\n" + "10.10.53.159:8004:512\n" + "10.10.53.159:8005:512\n";
ImportAppResult importAppResult = importAppCenter.check(appDesc, appInstanceInfo);
logger.info("importAppResult: {}", importAppResult);
}
use of com.sohu.cache.entity.AppDesc in project cachecloud by sohutv.
the class ImportAppCenterTest method testCheckWrongFormatAppInstanceInfo2.
/**
* 应用实例详情格式有问题1
*/
@Test
public void testCheckWrongFormatAppInstanceInfo2() {
// 应用信息
AppDesc appDesc = new AppDesc();
appDesc.setName("carlosfu2");
// 实例信息
String appInstanceInfo = "\n10.10.53.159:6379:1024";
ImportAppResult importAppResult = importAppCenter.check(appDesc, appInstanceInfo);
logger.info("importAppResult: {}", importAppResult);
}
use of com.sohu.cache.entity.AppDesc in project cachecloud by sohutv.
the class ImportAppCenterTest method testCheckAppDuplicateName.
/**
* 重复应用名
*/
@Test
public void testCheckAppDuplicateName() {
// 应用信息
AppDesc appDesc = new AppDesc();
appDesc.setName("redis-cluster-test");
// 实例信息
String appInstanceInfo = "";
ImportAppResult importAppResult = importAppCenter.check(appDesc, appInstanceInfo);
logger.info("importAppResult: {}", importAppResult);
}
use of com.sohu.cache.entity.AppDesc in project cachecloud by sohutv.
the class ImportAppCenterTest method testCheckWrongFormatAppInstanceInfo3.
/**
* 应用实例详情格式有问题2
*/
@Test
public void testCheckWrongFormatAppInstanceInfo3() {
// 应用信息
AppDesc appDesc = new AppDesc();
appDesc.setName("carlosfu3");
// 实例信息
String appInstanceInfo = "10.10.53.159:6379";
ImportAppResult importAppResult = importAppCenter.check(appDesc, appInstanceInfo);
logger.info("importAppResult: {}", importAppResult);
}
use of com.sohu.cache.entity.AppDesc in project cachecloud by sohutv.
the class ImportAppCenterTest method testCheckWrongFormatAppInstanceInfo4.
/**
* 应用实例详情格式有问题4
*/
@Test
public void testCheckWrongFormatAppInstanceInfo4() {
// 应用信息
AppDesc appDesc = new AppDesc();
appDesc.setName("carlosfu4");
// 实例信息
String appInstanceInfo = "10.10.10.10:6379:1024";
ImportAppResult importAppResult = importAppCenter.check(appDesc, appInstanceInfo);
logger.info("importAppResult: {}", importAppResult);
}
Aggregations