fix(接口测试): 增加是否开启定时同步jar开关

This commit is contained in:
fit2-zhao 2021-12-28 19:16:08 +08:00 committed by fit2-zhao
parent 5559acb9a0
commit e6afadea4d
6 changed files with 21 additions and 2 deletions

View File

@ -11,6 +11,8 @@ import java.util.Map;
public class RunRequest {
private String testId;
private String poolId;
// 开启定时同步
private boolean enable;
// api / case 或有这个属性值
private String reportId;
private String url;

View File

@ -7,6 +7,7 @@ import lombok.Setter;
@Setter
public class NodeDTO {
private String ip;
private boolean enable;
private Integer port;
private Integer monitorPort;
private Integer maxConcurrency;

View File

@ -128,18 +128,23 @@
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-col :span="8">
<el-form-item :label="$t('test_resource_pool.max_threads')"
:rules="requiredRules">
<el-input-number v-model="item.maxConcurrency" :min="1" :max="1000000000"/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="8">
<el-form-item :label="$t('test_resource_pool.pod_thread_limit')"
:rules="requiredRules">
<el-input-number v-model="item.podThreadLimit" :min="1" :max="1000000"/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('test_resource_pool.sync_jar')">
<el-checkbox v-model="item.enable"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col>
@ -201,6 +206,14 @@
:max="1000000000"></el-input-number>
</template>
</el-table-column>
<el-table-column
align="center"
prop="enable"
:label="$t('test_resource_pool.sync_jar')">
<template v-slot:default="{row}">
<el-checkbox size="small" v-model="row.enable"/>
</template>
</el-table-column>
<el-table-column align="center" :label="$t('commons.operating')">
<template v-slot:default="{row, $index}">
<el-button @click="removeResourceInfo($index)" type="danger" icon="el-icon-delete" size="mini"

View File

@ -2287,6 +2287,7 @@ export default {
update_resource_pool: 'Create resource pool',
select_pool_type: 'Select resource type',
max_threads: 'Maximum concurrent number',
sync_jar: 'Timing synchronization jar',
input_pool_name: 'Please enter the resource pool name',
pool_name_valid: 'Resource pool name does not support special characters',
cannot_remove_all_node: 'Cannot delete all independent nodes',

View File

@ -2291,6 +2291,7 @@ export default {
update_resource_pool: '修改资源池',
select_pool_type: '选择资源类型',
max_threads: '最大并发数',
sync_jar: '定时同步JAR',
input_pool_name: '请输入资源池名称',
pool_name_valid: '资源池名称不支持特殊字符',
cannot_remove_all_node: '不能删除所有独立节点',

View File

@ -2291,6 +2291,7 @@ export default {
update_resource_pool: '修改資源池',
select_pool_type: '選擇資源類型',
max_threads: '最大並發數',
sync_jar: '定時同步JAR',
input_pool_name: '請輸入資源池名稱',
pool_name_valid: '資源池名稱不支持特殊字符',
cannot_remove_all_node: '不能刪除所有獨立節點',