提交 bb66acdf authored 作者: Matrix's avatar Matrix

fix(测试用例): 补充了测试用例的一些字段(tag,defaultEnv)

上级 aa46a4ee
......@@ -30,7 +30,7 @@ public interface TestJobMapper extends BaseMapper<TestJob> {
"\tLEFT JOIN ( SELECT union_key, IF ( MIN( `status` )= 0, 0, MAX( `status` )) `status` FROM kt_execution_history GROUP BY union_key ) us ON us.union_key = keh.union_key" +
"<where>" +
"<if test=\"name!=null and name!=''\">" +
"and ktj.`name` = #{name}" +
"and ktj.`name` like concat('%',#{name},'%')" +
"</if>" +
"</where>" +
"</script>")
......
......@@ -25,7 +25,7 @@ public class GlobalExceptionHandler {
@ResponseBody
@ExceptionHandler(Exception.class)
public ResponseEntity<String> errorMessage(Exception e) {
log.error("[其他异常] {}", e.getMessage());
log.error("[其他异常] {}", e.toString());
return ResponseEntity.status(500).body("服务器异常" + e.getMessage());
}
......@@ -37,7 +37,7 @@ public class GlobalExceptionHandler {
@ResponseBody
@ExceptionHandler(GlobalException.class)
public ResponseEntity<String> errorMessage(GlobalException e) {
log.warn("[自定义异常]" + e.getMessage());
log.warn("[自定义异常]" + e.toString());
return ResponseEntity.status(400).body(e.getMessage());
}
......
......@@ -18,6 +18,11 @@
<groupId>org.matrix</groupId>
<artifactId>kt-base</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
......
......@@ -81,6 +81,10 @@ public class TestJobController {
, "添加成功", "添加失败");
}
// public ResponseEntity<CommonResultObj<TestJob>> insertByFilter(){
//
// }
/**
* 修改测试任务
*
......
package org.matrix.autotest.pojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* LoginQuery.
*
* @author Matrix <xhyrzldf@gmail.com>
* @since 2022/3/15 at 8:47 PM
* Suffering is the most powerful teacher of life.
*/
@Data
@ApiModel("用于登录的查询类")
public class LoginQuery {
@ApiModelProperty("用户名")
private String username;
@ApiModelProperty("密码")
private String password;
}
......@@ -55,6 +55,13 @@
<artifactId>kt-web</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.matrix</groupId>
<artifactId>kt-user</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论