fix(测试跟踪): 修复执行测试计划时保存并执行选项中所属资源池不生效的问题
--bug=1032263 --user=宋天阳 【测试跟踪】执行测试计划-选择k8s资源池保存并执行,报告是显示LOCAL资源池 https://www.tapd.cn/55049933/s/1429450
This commit is contained in:
parent
b0e7969b55
commit
5b88c1d475
|
@ -460,15 +460,17 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
refreshNodeOperation() {
|
||||
let nodeOperationInfoRequest = {nodeIds: []};
|
||||
this.resourcePools.forEach(item => {
|
||||
nodeOperationInfoRequest.nodeIds.push(item.id);
|
||||
});
|
||||
if (!this.isShare) {
|
||||
let nodeOperationInfoRequest = {nodeIds: []};
|
||||
this.resourcePools.forEach(item => {
|
||||
nodeOperationInfoRequest.nodeIds.push(item.id);
|
||||
});
|
||||
|
||||
getNodeOperationInfo(nodeOperationInfoRequest)
|
||||
getNodeOperationInfo(nodeOperationInfoRequest)
|
||||
.then(response => {
|
||||
this.parseNodeOperationStatus(response.data);
|
||||
});
|
||||
}
|
||||
},
|
||||
nodeCpuUsage(row) {
|
||||
let nodeInfo = this.nodeOperationInfo[this.resourcePool];
|
||||
|
@ -506,11 +508,12 @@ export default {
|
|||
this.resourcePools.forEach(item => {
|
||||
nodeOperationInfoRequest.nodeIds.push(item.id);
|
||||
});
|
||||
|
||||
getNodeOperationInfo(nodeOperationInfoRequest)
|
||||
.then(response => {
|
||||
this.parseNodeOperationStatus(response.data);
|
||||
});
|
||||
if (!this.isShare) {
|
||||
getNodeOperationInfo(nodeOperationInfoRequest)
|
||||
.then(response => {
|
||||
this.parseNodeOperationStatus(response.data);
|
||||
});
|
||||
}
|
||||
this.resourcePoolChange();
|
||||
});
|
||||
},
|
||||
|
|
|
@ -331,9 +331,6 @@ public class TestPlanExecuteService {
|
|||
String environmentGroupId = testPlanRunRequest.getEnvironmentGroupId();
|
||||
runModeConfig = testPlanService.getRunModeConfigDTO(testPlanRunRequest, envType, envMap, environmentGroupId, testPlanId);
|
||||
runModeConfig.setTestPlanDefaultEnvMap(testPlanRunRequest.getTestPlanDefaultEnvMap());
|
||||
if (!testPlanRunRequest.isRunWithinResourcePool()) {
|
||||
runModeConfig.setResourcePoolId(null);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogUtil.error("获取测试计划保存的环境信息出错!", e);
|
||||
|
|
Loading…
Reference in New Issue