|
|
@ -397,7 +397,7 @@ func TestAgent_Service(t *testing.T) {
|
|
|
|
Service: "web-sidecar-proxy",
|
|
|
|
Service: "web-sidecar-proxy",
|
|
|
|
Port: 8000,
|
|
|
|
Port: 8000,
|
|
|
|
Proxy: expectProxy.ToAPI(),
|
|
|
|
Proxy: expectProxy.ToAPI(),
|
|
|
|
ContentHash: "9d9b74b6df3fccd9",
|
|
|
|
ContentHash: "fa3af167b81f6721",
|
|
|
|
Weights: api.AgentWeights{
|
|
|
|
Weights: api.AgentWeights{
|
|
|
|
Passing: 1,
|
|
|
|
Passing: 1,
|
|
|
|
Warning: 1,
|
|
|
|
Warning: 1,
|
|
|
@ -411,7 +411,7 @@ func TestAgent_Service(t *testing.T) {
|
|
|
|
// Copy and modify
|
|
|
|
// Copy and modify
|
|
|
|
updatedResponse := *expectedResponse
|
|
|
|
updatedResponse := *expectedResponse
|
|
|
|
updatedResponse.Port = 9999
|
|
|
|
updatedResponse.Port = 9999
|
|
|
|
updatedResponse.ContentHash = "a0d21e81f72cdf7b"
|
|
|
|
updatedResponse.ContentHash = "fa3af167b81f6721"
|
|
|
|
|
|
|
|
|
|
|
|
// Simple response for non-proxy service registered in TestAgent config
|
|
|
|
// Simple response for non-proxy service registered in TestAgent config
|
|
|
|
expectWebResponse := &api.AgentService{
|
|
|
|
expectWebResponse := &api.AgentService{
|
|
|
|