fix(module_type): 对齐 module_type 规范大写并加防回归守卫(防 similarasin/SIMILAR_ASIN 之类漂移)
- heartbeat 夹具 moduleType 改规范大写 SIMILAR_ASIN 并加断言锁定
- ModuleTypeAlignmentTest:扫描 src/main——MODULE_TYPE 常量须大写下划线、setModuleType("小写") 禁止(仅允许 legacy collectdata)——守卫写入/常量/夹具三者一致
- 全量扫描结果:生产代码写入均用常量大写,无存量漂移
This commit is contained in:
@@ -60,6 +60,8 @@ class PythonContractFixtureTest {
|
||||
JsonNode resp = json("heartbeat.response.json");
|
||||
assertTrue(req.has("moduleType") && req.has("phase"));
|
||||
assertTrue(resp.has("alive") && resp.has("status"));
|
||||
assertEquals("SIMILAR_ASIN", req.path("moduleType").asText(),
|
||||
"夹具 moduleType 须用规范大写(与服务 MODULE_TYPE 常量一致,防小写漂移 bug)");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user