github.com/hernad/nomad@v1.6.112/command/agent/consul/connect_proxies_test.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package consul
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/hernad/nomad/ci"
    10  	"github.com/stretchr/testify/require"
    11  )
    12  
    13  func TestConnectProxies_Proxies(t *testing.T) {
    14  	ci.Parallel(t)
    15  
    16  	pc := NewConnectProxiesClient(NewMockAgent(ossFeatures))
    17  
    18  	proxies, err := pc.Proxies()
    19  	require.NoError(t, err)
    20  	require.Equal(t, map[string][]string{
    21  		"envoy": {"1.14.2", "1.13.2", "1.12.4", "1.11.2"},
    22  	}, proxies)
    23  }