- module path renamed (no external importers); golangci local-prefixes - ACCESS_ENGINE_RUN_TOPAZ_INTEGRATION replaces FLEX_AUTH_RUN_TOPAZ_INTEGRATION - README title and identity paragraph reflect the landed renames - docs/runtime-rename-inventory.md: per-consumer references by kind and order - chart name, image package and /opt paths deliberately left for T05 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 735967@bnt-lap001 Assistant-Session: 5971967f-77f8-4ced-9e02-c6ef67040ffc
30 lines
898 B
Go
30 lines
898 B
Go
package topaz_test
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestTopazDockerComposeExample(t *testing.T) {
|
|
if os.Getenv("FLEX_AUTH_RUN_TOPAZ_INTEGRATION") == "1" {
|
|
t.Skip("FLEX_AUTH_RUN_TOPAZ_INTEGRATION was renamed: set ACCESS_ENGINE_RUN_TOPAZ_INTEGRATION=1 (FLEX-WP-0036)")
|
|
}
|
|
if os.Getenv("ACCESS_ENGINE_RUN_TOPAZ_INTEGRATION") != "1" {
|
|
t.Skip("set ACCESS_ENGINE_RUN_TOPAZ_INTEGRATION=1 to run the examples/topaz docker-compose integration")
|
|
}
|
|
|
|
dir := filepath.Join("..", "..", "..", "examples", "topaz")
|
|
cmd := exec.Command("docker", "compose", "up", "--abort-on-container-exit", "--exit-code-from", "probe")
|
|
cmd.Dir = dir
|
|
output, err := cmd.CombinedOutput()
|
|
t.Cleanup(func() {
|
|
down := exec.Command("docker", "compose", "down", "-v")
|
|
down.Dir = dir
|
|
down.Run()
|
|
})
|
|
if err != nil {
|
|
t.Fatalf("docker compose integration failed: %v\n%s", err, output)
|
|
}
|
|
}
|