[CMLR-100] 非改造模块冒烟回归

This commit is contained in:
2026-02-08 20:29:05 +08:00
parent 55fdd3d6e0
commit 62b6e66f78
2 changed files with 34 additions and 1 deletions

View File

@@ -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/")));
}
}