test(ds03): 修正对象效果文件字段读取
build / build (push) Successful in 1m25s

对象效果 JSON 使用 resource_id/key 小写标签;按 Key 匹配会得到空集合,
导致已发生的 delete-intent 被误报为缺失。
This commit is contained in:
姚章浩
2026-11-02 04:39:37 +08:00
parent 68f03bb30e
commit b39902ef90
@@ -1310,7 +1310,7 @@ func r38ObjectEffectPhases(t *testing.T, archiveRoot, key string) map[string]map
if json.Unmarshal(raw, &effect) != nil || effect.Object == nil {
return nil
}
if got, _ := effect.Object["Key"].(string); got != key {
if got, _ := effect.Object["key"].(string); got != key {
return nil
}
out[strings.TrimSuffix(filepath.Base(path), ".json")] = map[string]any{