小改动
This commit is contained in:
parent
f90b870c3f
commit
c6b24f35bd
|
@ -27,6 +27,10 @@ public class KubernetesTestEngine implements Engine {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start() {
|
public void start() {
|
||||||
|
if (context == null) {
|
||||||
|
LogUtil.warn("Please initial the engine.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
// todo 运行测试
|
// todo 运行测试
|
||||||
ClientCredential credential = new ClientCredential();
|
ClientCredential credential = new ClientCredential();
|
||||||
credential.setMasterUrl("https://172.16.10.93:6443");
|
credential.setMasterUrl("https://172.16.10.93:6443");
|
||||||
|
@ -43,7 +47,7 @@ public class KubernetesTestEngine implements Engine {
|
||||||
setName(configMapName);
|
setName(configMapName);
|
||||||
}});
|
}});
|
||||||
item.setData(new HashMap<String, String>() {{
|
item.setData(new HashMap<String, String>() {{
|
||||||
put("sample.jmx", context.getContent());
|
put(context.getTestId() + ".jmx", context.getContent());
|
||||||
}});
|
}});
|
||||||
client.configMaps().inNamespace(context.getNamespace()).create(item);
|
client.configMaps().inNamespace(context.getNamespace()).create(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue