Search in sources :

Example 11 with DockerJob

use of com.chinaunicom.rundocker.bean.DockerJob in project mesosFramework by zhizuqiu.

the class ToolsTest method before.

@Before
public void before() {
    String id = "/2048/1";
    DockerJob dockerJob = new DockerJob();
    dockerJob.setId(id);
    AppDataStore.jobsPut(id.replaceAll("/", "."), dockerJob);
    DockerStatus dockerStatus = new DockerStatus();
    dockerStatus.setId(id);
    AppDataStore.statusPut(id.replaceAll("/", "."), dockerStatus);
    AppDataStore.setConfig(new Config());
    AppDataStore.getConfig().setFrameworkName("2048");
}
Also used : Config(com.chinaunicom.rundocker.store.Config) DockerStatus(com.chinaunicom.rundocker.bean.DockerStatus) DockerJob(com.chinaunicom.rundocker.bean.DockerJob) Before(org.junit.Before)

Aggregations

DockerJob (com.chinaunicom.rundocker.bean.DockerJob)11 DockerStatus (com.chinaunicom.rundocker.bean.DockerStatus)9 EtcdService (com.chinaunicom.rundocker.service.EtcdService)2 AppDataStore (com.chinaunicom.rundocker.store.AppDataStore)2 Gson (com.google.gson.Gson)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Node (com.chinaunicom.etcd.v2.model.Node)1 ResponseNode (com.chinaunicom.etcd.v2.model.ResponseNode)1 Jobs (com.chinaunicom.rundocker.bean.returnparm.Jobs)1 Task (com.chinaunicom.rundocker.bean.returnparm.Task)1 MesosService (com.chinaunicom.rundocker.service.MesosService)1 OfferTemp (com.chinaunicom.rundocker.service.OfferTemp)1 Config (com.chinaunicom.rundocker.store.Config)1 JsonSyntaxException (com.google.gson.JsonSyntaxException)1 HttpMap (com.zhizuqiu.nettyrestful.annotation.HttpMap)1 List (java.util.List)1 Before (org.junit.Before)1 Test (org.junit.Test)1