Implement Topaz adapter
This commit is contained in:
parent
0fbb2a45c2
commit
1ce0181e8f
15 changed files with 1727 additions and 4 deletions
27
internal/adapters/topaz/integration_test.go
Normal file
27
internal/adapters/topaz/integration_test.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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("set FLEX_AUTH_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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue