fix(接口测试): 修复K8s执行csv文件未同步问题

--bug=1010156 --user=赵勇 【接口测试】批量执行场景- k8s资源池执行失败 https://www.tapd.cn/55049933/s/1102782
This commit is contained in:
fit2-zhao 2022-02-10 16:30:15 +08:00 committed by fit2-zhao
parent 4593c4892e
commit 4f7b9af283
1 changed files with 3 additions and 3 deletions

View File

@ -222,10 +222,10 @@ public class FileUtils {
} }
} else if (key instanceof CSVDataSet) { } else if (key instanceof CSVDataSet) {
CSVDataSet source = (CSVDataSet) key; CSVDataSet source = (CSVDataSet) key;
if (source != null && source.getFilename() != null) { if (source != null && StringUtils.isNotEmpty(source.getPropertyAsString("filename"))) {
BodyFile file = new BodyFile(); BodyFile file = new BodyFile();
file.setId(source.getFilename()); file.setId(source.getPropertyAsString("filename"));
file.setName(source.getFilename()); file.setName(source.getPropertyAsString("filename"));
files.add(file); files.add(file);
} }
} }