33 lines
507 B
Go
33 lines
507 B
Go
package reach
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestReachViewConfiguration(t *testing.T) {
|
|
|
|
if !*runReachViewIntegrationTests {
|
|
t.Skip("To run this test, use: go test -reachview-integration")
|
|
}
|
|
|
|
client := NewReachViewClient(
|
|
WithStandardLogger(),
|
|
WithEndpoint(*reachHost, 80),
|
|
)
|
|
if err := client.Connect(); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
config, err := client.Configuration()
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
|
|
if config == nil {
|
|
t.Error("config should not be nil")
|
|
}
|
|
|
|
defer client.Close()
|
|
|
|
}
|