refactor(接口测试): swagger 导入重构
This commit is contained in:
parent
d571c9dc07
commit
fde6ae766c
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.api.parse;
|
||||
package io.metersphere.api.parse.old;
|
||||
|
||||
import io.metersphere.api.dto.ApiTestImportRequest;
|
||||
import io.metersphere.api.dto.scenario.KeyValue;
|
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.api.parse;
|
||||
package io.metersphere.api.parse.old;
|
||||
|
||||
import io.metersphere.api.dto.ApiTestImportRequest;
|
||||
import io.metersphere.api.dto.definition.parse.ApiDefinitionImport;
|
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.api.parse;
|
||||
package io.metersphere.api.parse.old;
|
||||
|
||||
import io.metersphere.commons.constants.ApiImportPlatform;
|
||||
import org.apache.commons.lang3.StringUtils;
|
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.api.parse;
|
||||
package io.metersphere.api.parse.old;
|
||||
|
||||
import io.metersphere.commons.utils.LogUtil;
|
||||
import io.metersphere.commons.utils.ScriptEngineUtils;
|
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.api.parse;
|
||||
package io.metersphere.api.parse.old;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.api.parse;
|
||||
package io.metersphere.api.parse.old;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
|
@ -1,4 +1,4 @@
|
|||
package io.metersphere.api.parse;
|
||||
package io.metersphere.api.parse.old;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
|
@ -79,8 +79,8 @@ public class Swagger2Parser extends ApiImportAbstractParser {
|
|||
headerManager.setId(UUID.randomUUID().toString());
|
||||
headerManager.setName(res.getName() + "Postman MsHeaderManager");
|
||||
headerManager.setHeaders(res.getHeaders());
|
||||
HashTree tree = new HashTree();
|
||||
tree.add(headerManager);
|
||||
// HashTree tree = new HashTree();
|
||||
// tree.add(headerManager);
|
||||
LinkedList<MsTestElement> list = new LinkedList<>();
|
||||
list.add(headerManager);
|
||||
requestElement.setHashTree(list);
|
Loading…
Reference in New Issue