fix(接口测试): 修复未选择LOCAL资源池的缺陷
--bug=1026748 --user=王孝刚 【接口测试】项目关闭默认资源池-接口用例列表-操作-执行-未优先走local资源池 https://www.tapd.cn/55049933/s/1379614
This commit is contained in:
parent
7aa30e6f05
commit
49d9a737b7
|
@ -91,14 +91,11 @@ public class ApiPoolDebugService {
|
||||||
|
|
||||||
if (!contains) {
|
if (!contains) {
|
||||||
List<TestResourcePoolDTO> pools = poolList.stream().filter(pool ->
|
List<TestResourcePoolDTO> pools = poolList.stream().filter(pool ->
|
||||||
StringUtils.equals(pool.getName(), "LOCAL") &&
|
StringUtils.equals(pool.getName(), "LOCAL")).collect(Collectors.toList());
|
||||||
!StringUtils.equals(config.getResourcePoolId(),pool.getId())).collect(Collectors.toList());
|
|
||||||
if (CollectionUtils.isNotEmpty(pools)) {
|
if (CollectionUtils.isNotEmpty(pools)) {
|
||||||
config.setResourcePoolId(pools.get(0).getId());
|
config.setResourcePoolId(pools.get(0).getId());
|
||||||
} else {
|
} else {
|
||||||
List<TestResourcePoolDTO> other = poolList.stream().filter(pool ->
|
config.setResourcePoolId(poolList.get(0).getId());
|
||||||
!StringUtils.equals(config.getResourcePoolId() ,pool.getId())).collect(Collectors.toList());
|
|
||||||
config.setResourcePoolId(other.get(0).getId());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue