open-nomad/command/agent/consul/connect_proxies_test.go
Mahmood Ali 4d90afb425 gofmt all the files
mostly to handle build directives in 1.17.
2021-10-01 10:14:28 -04:00

18 lines
348 B
Go

package consul
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestConnectProxies_Proxies(t *testing.T) {
pc := NewConnectProxiesClient(NewMockAgent(ossFeatures))
proxies, err := pc.Proxies()
require.NoError(t, err)
require.Equal(t, map[string][]string{
"envoy": {"1.14.2", "1.13.2", "1.12.4", "1.11.2"},
}, proxies)
}