package isolation import ( "archive/tar" "bytes" "compress/gzip" "context" "crypto/sha256" "encoding/json" "fmt" "io" "os" "path/filepath" "testing" ) func TestDatabaseBackupManifestAndSQLAreInSameArchive(t *testing.T) { root := t.TempDir() sql := []byte("CREATE TABLE marker(value TEXT); INSERT INTO marker VALUES ('SEA-BACKUP-SENTINEL');\n") file := filepath.Join(t.TempDir(), "db.sql") if err := os.WriteFile(file, sql, 0600); err != nil { t.Fatal(err) } if err := os.WriteFile(filepath.Join(root, "index.php"), []byte("