|
|
|
@ -2359,7 +2359,16 @@ func TestState_WatchesAndUpdates(t *testing.T) {
|
|
|
|
|
{
|
|
|
|
|
CorrelationID: "discovery-chain:" + dbUID.String(),
|
|
|
|
|
Result: &structs.DiscoveryChainResponse{
|
|
|
|
|
Chain: discoverychain.TestCompileConfigEntries(t, "db", "default", "default", "dc1", "trustdomain.consul", nil),
|
|
|
|
|
Chain: discoverychain.TestCompileConfigEntries(
|
|
|
|
|
t, "db", "default", "default", "dc1", "trustdomain.consul", nil,
|
|
|
|
|
&structs.ServiceConfigEntry{
|
|
|
|
|
Kind: structs.ServiceDefaults,
|
|
|
|
|
Name: "db",
|
|
|
|
|
TransparentProxy: structs.TransparentProxyConfig{
|
|
|
|
|
DialedDirectly: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
Err: nil,
|
|
|
|
|
},
|
|
|
|
@ -2396,7 +2405,7 @@ func TestState_WatchesAndUpdates(t *testing.T) {
|
|
|
|
|
Proxy: structs.ConnectProxyConfig{
|
|
|
|
|
DestinationServiceName: "db",
|
|
|
|
|
TransparentProxy: structs.TransparentProxyConfig{
|
|
|
|
|
DialedDirectly: true,
|
|
|
|
|
DialedDirectly: false, // This is set true by the service-defaults entry above.
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
RaftIndex: structs.RaftIndex{
|
|
|
|
@ -2455,7 +2464,7 @@ func TestState_WatchesAndUpdates(t *testing.T) {
|
|
|
|
|
Proxy: structs.ConnectProxyConfig{
|
|
|
|
|
DestinationServiceName: "db",
|
|
|
|
|
TransparentProxy: structs.TransparentProxyConfig{
|
|
|
|
|
DialedDirectly: true,
|
|
|
|
|
DialedDirectly: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
RaftIndex: structs.RaftIndex{
|
|
|
|
|