fix(测试跟踪): 修复执行测试计划时保存并执行选项中所属资源池不生效的问题

--bug=1032263 --user=宋天阳 【测试跟踪】执行测试计划-选择k8s资源池保存并执行,报告是显示LOCAL资源池
https://www.tapd.cn/55049933/s/1429450
This commit is contained in:
song-tianyang 2023-10-23 13:39:55 +08:00 committed by 建国
parent b0e7969b55
commit 5b88c1d475
2 changed files with 13 additions and 13 deletions

View File

@ -460,6 +460,7 @@ export default {
},
methods: {
refreshNodeOperation() {
if (!this.isShare) {
let nodeOperationInfoRequest = {nodeIds: []};
this.resourcePools.forEach(item => {
nodeOperationInfoRequest.nodeIds.push(item.id);
@ -469,6 +470,7 @@ export default {
.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);
});
if (!this.isShare) {
getNodeOperationInfo(nodeOperationInfoRequest)
.then(response => {
this.parseNodeOperationStatus(response.data);
});
}
this.resourcePoolChange();
});
},

View File

@ -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);