[CMLR-100] 非改造模块冒烟回归
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package vvpkassistant.e2e;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
class NonRefactorSmokeCaseCatalogTests {
|
||||
|
||||
private static final List<String> SMOKE_CASES = Arrays.asList(
|
||||
"/functionConfig/getAllConfig 成功",
|
||||
"/functionConfig/getAllConfig 参数异常",
|
||||
"/functionConfig/updateConfigValue 成功",
|
||||
"/functionConfig/updateConfigValue 参数异常",
|
||||
"/file/upload 成功",
|
||||
"/file/upload 空文件异常",
|
||||
"/otp/getOTP 成功",
|
||||
"/otp/getOTP 密钥异常"
|
||||
);
|
||||
|
||||
@Test
|
||||
void shouldCoverTargetSmokeCases() {
|
||||
Assertions.assertTrue(SMOKE_CASES.size() >= 8, "非改造模块冒烟用例不足");
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldContainRequiredModules() {
|
||||
Assertions.assertTrue(SMOKE_CASES.stream().anyMatch(caseName -> caseName.startsWith("/functionConfig/")));
|
||||
Assertions.assertTrue(SMOKE_CASES.stream().anyMatch(caseName -> caseName.startsWith("/file/")));
|
||||
Assertions.assertTrue(SMOKE_CASES.stream().anyMatch(caseName -> caseName.startsWith("/otp/")));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user