refactor: modularize audit and harden build validation

This commit is contained in:
Mikhail Chusavitin
2026-08-31 21:22:16 +03:00
parent bb22ccfafe
commit ac4bc0b2b7
78 changed files with 13598 additions and 13130 deletions
+4
View File
@@ -1145,6 +1145,10 @@ func TestMissingAuditJSONReturnsNotFound(t *testing.T) {
func TestSupportBundleEndpointReturnsArchive(t *testing.T) {
dir := t.TempDir()
// Isolate os.TempDir(): BuildSupportBundle stages and writes its archive
// there, and a concurrent support-bundle test in another package would
// otherwise race on the same paths.
t.Setenv("TMPDIR", dir)
exportDir := filepath.Join(dir, "export")
if err := os.MkdirAll(exportDir, 0755); err != nil {
t.Fatal(err)