connect/native: fixup command/agent/consul/connect test cases
This commit is contained in:
parent
6154181a64
commit
e79b79034d
|
@ -32,7 +32,7 @@ func TestConnect_newConnect(t *testing.T) {
|
|||
|
||||
t.Run("native", func(t *testing.T) {
|
||||
asr, err := newConnect("", &structs.ConsulConnect{
|
||||
Native: "foo",
|
||||
Native: true,
|
||||
}, nil)
|
||||
require.NoError(t, err)
|
||||
require.True(t, asr.Native)
|
||||
|
@ -41,7 +41,7 @@ func TestConnect_newConnect(t *testing.T) {
|
|||
|
||||
t.Run("with sidecar", func(t *testing.T) {
|
||||
asr, err := newConnect("redis", &structs.ConsulConnect{
|
||||
Native: "",
|
||||
Native: false,
|
||||
SidecarService: &structs.ConsulSidecarService{
|
||||
Tags: []string{"foo", "bar"},
|
||||
Port: "sidecarPort",
|
||||
|
|
Loading…
Reference in a new issue