mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
Fixup tests
This commit is contained in:
parent
7cb3f32672
commit
e1808af729
@ -3519,6 +3519,10 @@ func testAgent_RegisterService_UnmanagedConnectProxy(t *testing.T, extraHCL stri
|
|||||||
LocalBindPort: 1235,
|
LocalBindPort: 1235,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Mode: api.ProxyModeTransparent,
|
||||||
|
TransparentProxy: &api.TransparentProxyConfig{
|
||||||
|
OutboundListenerPort: 808,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +46,10 @@ func TestConnectProxyConfig_ToAPI(t *testing.T) {
|
|||||||
LocalBindAddress: "127.10.10.10",
|
LocalBindAddress: "127.10.10.10",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Mode: ProxyModeTransparent,
|
||||||
|
TransparentProxy: TransparentProxyConfig{
|
||||||
|
OutboundListenerPort: 808,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
want: &api.AgentServiceConnectProxyConfig{
|
want: &api.AgentServiceConnectProxyConfig{
|
||||||
DestinationServiceName: "web",
|
DestinationServiceName: "web",
|
||||||
@ -76,6 +80,10 @@ func TestConnectProxyConfig_ToAPI(t *testing.T) {
|
|||||||
LocalBindAddress: "127.10.10.10",
|
LocalBindAddress: "127.10.10.10",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Mode: api.ProxyModeTransparent,
|
||||||
|
TransparentProxy: &api.TransparentProxyConfig{
|
||||||
|
OutboundListenerPort: 808,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -122,6 +122,10 @@ func TestStructsToAgentService(t *testing.T) {
|
|||||||
LocalServiceAddress: "127.0.0.1",
|
LocalServiceAddress: "127.0.0.1",
|
||||||
LocalServicePort: 8181,
|
LocalServicePort: 8181,
|
||||||
Upstreams: structs.TestUpstreams(t),
|
Upstreams: structs.TestUpstreams(t),
|
||||||
|
Mode: structs.ProxyModeTransparent,
|
||||||
|
TransparentProxy: structs.TransparentProxyConfig{
|
||||||
|
OutboundListenerPort: 808,
|
||||||
|
},
|
||||||
Config: map[string]interface{}{
|
Config: map[string]interface{}{
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
@ -138,6 +142,10 @@ func TestStructsToAgentService(t *testing.T) {
|
|||||||
LocalServiceAddress: "127.0.0.1",
|
LocalServiceAddress: "127.0.0.1",
|
||||||
LocalServicePort: 8181,
|
LocalServicePort: 8181,
|
||||||
Upstreams: structs.TestUpstreams(t).ToAPI(),
|
Upstreams: structs.TestUpstreams(t).ToAPI(),
|
||||||
|
Mode: api.ProxyModeTransparent,
|
||||||
|
TransparentProxy: &api.TransparentProxyConfig{
|
||||||
|
OutboundListenerPort: 808,
|
||||||
|
},
|
||||||
Config: map[string]interface{}{
|
Config: map[string]interface{}{
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user