access-engine/pkg/decisionpep/export_test.go
tegwick ca0cb75729
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 1m22s
Add producer-owned authenticated Go decision client and validated Forgejo profile
Assistant: codex
Assistant-Model: gpt-6.1-sol
Assistant-Session: 01a14bfc-9643-7872-aa12-98326dcf25e7
2026-10-18 01:20:05 +02:00

15 lines
449 B
Go

package decisionpep
import (
"os/exec"
"path/filepath"
"testing"
)
// The distribution is a generated source slice, never a second implementation.
func TestConsumerExportMatchesProducerSource(t *testing.T) {
command := exec.Command("python3", filepath.Join("..", "..", "tools", "export_decisionpep_adapter.py"), "--check")
if output, err := command.CombinedOutput(); err != nil {
t.Fatalf("consumer export drift: %v\n%s", err, output)
}
}