Update some tests to fix ContentHash broken by the tagged service addresses (#5996)

This commit is contained in:
Matt Keeler 2019-06-20 11:50:18 -04:00 committed by GitHub
parent 52378c522f
commit f1a6919b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -318,7 +318,7 @@ func TestAgent_Service(t *testing.T) {
Service: "web-sidecar-proxy",
Port: 8000,
Proxy: expectProxy.ToAPI(),
ContentHash: "3442362e971c43d1",
ContentHash: "ab93d2418205fe0d",
Weights: api.AgentWeights{
Passing: 1,
Warning: 1,
@ -328,14 +328,14 @@ func TestAgent_Service(t *testing.T) {
// Copy and modify
updatedResponse := *expectedResponse
updatedResponse.Port = 9999
updatedResponse.ContentHash = "90b5c19bf0f5073"
updatedResponse.ContentHash = "96dab876aa16edaf"
// Simple response for non-proxy service registered in TestAgent config
expectWebResponse := &api.AgentService{
ID: "web",
Service: "web",
Port: 8181,
ContentHash: "69351c1ac865b034",
ContentHash: "f6e4f875dd7c0de8",
Weights: api.AgentWeights{
Passing: 1,
Warning: 1,

View File

@ -779,7 +779,7 @@ func TestAPI_AgentService(t *testing.T) {
ID: "foo",
Service: "foo",
Tags: []string{"bar", "baz"},
ContentHash: "ad8c7a278470d1e8",
ContentHash: "325d9e4891696c34",
Port: 8000,
Weights: AgentWeights{
Passing: 1,