Proxy policy wiring and fail-closed execution

- replace proxy wiring with global and per-engine tag policies
- split stats endpoints and lock fail-closed proxy behavior with tests
This commit is contained in:
Rustem Kamalov
2026-04-01 00:54:21 +03:00
parent 8bec5578c0
commit 3daa48e6a3
15 changed files with 1925 additions and 603 deletions

25
testutil/integration.go Normal file
View File

@@ -0,0 +1,25 @@
package testutil
import (
"os"
"strings"
"testing"
)
const IntegrationEnv = "OPENSERP_INTEGRATION_TESTS"
func RequireIntegration(t *testing.T) {
t.Helper()
if strings.TrimSpace(os.Getenv(IntegrationEnv)) != "1" {
t.Skipf("set %s=1 to run integration tests", IntegrationEnv)
}
}
func RequireEnv(t *testing.T, key string) string {
t.Helper()
value := strings.TrimSpace(os.Getenv(key))
if value == "" {
t.Skipf("set %s to run this integration test", key)
}
return value
}