S8收口:audience数组漂移闸断言入册(byUuid/byCode两寻址同集合)
build / build-push (push) Failing after 2m8s

This commit is contained in:
chenxing
2026-10-20 22:37:39 +08:00
parent be2752ed4d
commit b2437a2074
@@ -169,6 +169,8 @@ class OapiFormServiceIT extends AnswerTestSupport {
// 两份组装的漂移闸(问题单 P108):同库同表同版本,两种形态的 groups 必须逐字相同
OapiModels.SchemaView byCode = oapiFormService.schema(SCH, null, CODE);
assertThat(byUuid.getGroups().toString()).isEqualTo(byCode.getGroups().toString());
// audience 换数组(C5/G3)后同样要过这条闸:两条寻址路径给的必须是同一个集合,不是各拼一遍
assertThat(byUuid.getAudience()).isEqualTo(byCode.getAudience());
// 内联展开 + valueSchema 的口径也一致(uuid 形态不是"半成品"schema)
assertThat(field(byUuid.getGroups(), "grade").path("options").get(0).path("label").asText())
.isEqualTo("高二年级");