21 lines
509 B
Go
21 lines
509 B
Go
package asterisk
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
// Explicitly opt in on the Cell to check real ARI credentials without
|
|
// creating a channel, issuing a dial or reading private audio.
|
|
func TestAgentARIReadOnlyIntegration(t *testing.T) {
|
|
configDir := os.Getenv("AGENT_ARI_READONLY_TEST_CONFIG_DIR")
|
|
if configDir == "" {
|
|
t.Skip("real Agent ARI readback requires explicit Cell config path")
|
|
}
|
|
client, err := (Loader{ConfigDir: configDir}).OpenARI()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer client.Close()
|
|
}
|