mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
24 lines
469 B
Go
24 lines
469 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package consul
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/nomad/ci"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestConnectProxies_Proxies(t *testing.T) {
|
|
ci.Parallel(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)
|
|
}
|