feat: swagger定时同步
This commit is contained in:
parent
8e1f189ce9
commit
3048d8b52d
|
@ -5,7 +5,7 @@ import java.net.URLConnection;
|
|||
|
||||
public class UrlTestUtils {
|
||||
|
||||
/* public static boolean testUrlWithTimeOut(String urlString, int timeOutMillSeconds) {
|
||||
public static boolean testUrlWithTimeOut(String urlString, int timeOutMillSeconds) {
|
||||
try {
|
||||
URL url = new URL(urlString);
|
||||
URLConnection co = url.openConnection();
|
||||
|
@ -16,5 +16,5 @@ public class UrlTestUtils {
|
|||
LogUtil.error(e);
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,10 +80,10 @@ public class DockerTestEngine extends AbstractEngine {
|
|||
}
|
||||
|
||||
// docker 不能从 localhost 中下载文件
|
||||
/* if (StringUtils.contains(metersphereUrl, "http://localhost")
|
||||
if (StringUtils.contains(metersphereUrl, "http://localhost")
|
||||
|| !UrlTestUtils.testUrlWithTimeOut(metersphereUrl, 1000)) {
|
||||
MSException.throwException(Translator.get("run_load_test_file_init_error"));
|
||||
}*/
|
||||
}
|
||||
|
||||
Map<String, String> env = new HashMap<>();
|
||||
env.put("RATIO", "" + ratio);
|
||||
|
|
Loading…
Reference in New Issue