[优化] 移除不必要的支持文件过滤函数,更新相关测试以验证 WAF 配置包含

This commit is contained in:
ryan
2026-05-30 15:39:18 +08:00
parent 1bff2dadd4
commit e094f4a3b7
5 changed files with 46 additions and 21 deletions
+2 -2
View File
@@ -383,8 +383,8 @@ func TestPhase1HTTPSAndCertificateImportLifecycle(t *testing.T) {
t.Fatalf("expected active config to expose main_config, got %#v", activeConfig["main_config"])
}
supportFiles, ok := activeConfig["support_files"].([]any)
if !ok || len(supportFiles) != 3 {
t.Fatalf("expected active config to expose 3 support files, got %#v", activeConfig["support_files"])
if !ok || len(supportFiles) != 4 {
t.Fatalf("expected active config to expose 4 support files, got %#v", activeConfig["support_files"])
}
}