access-engine/pkg/decisionpep/export_test.go

16 lines
449 B
Go
Raw Normal View History

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)
}
}