Skip to content

Commit

Permalink
tests: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Oct 18, 2017
1 parent 3a9c00c commit 92de401
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
13 changes: 7 additions & 6 deletions test/endpoints/baz/baz_metrics_test.go
Expand Up @@ -150,7 +150,7 @@ func TestCallMetrics(t *testing.T) {
"app": "test-gateway",
"service": "test-gateway",
"target-service": "bazService",
"target-endpoint": "SimpleService::call",
"target-endpoint": "SimpleService__call",
"host": zanzibar.GetHostname(),
}
for _, name := range tchannelNames {
Expand Down Expand Up @@ -194,11 +194,12 @@ func TestCallMetrics(t *testing.T) {
"test-gateway.test.all-workers.outbound.calls.success",
}
clientTags := map[string]string{
"env": "test",
"service": "test-gateway",
"client": "baz",
"method": "Call",
"target-service": "bazService",
"env": "test",
"service": "test-gateway",
"client": "baz",
"method": "Call",
"target-service": "bazService",
"target-endpoint": "SimpleService__call",
}
for _, name := range clientNames {
key := tally.KeyForPrefixedStringMap(name, clientTags)
Expand Down
17 changes: 9 additions & 8 deletions test/endpoints/tchannel/baz/baz_metrics_test.go
Expand Up @@ -117,7 +117,7 @@ func TestCallMetrics(t *testing.T) {
"host": zanzibar.GetHostname(),
"env": "test",
"service": "test-gateway",
"endpoint": "SimpleService::Call",
"endpoint": "SimpleService__Call",
"calling-service": "test-gateway",
}

Expand Down Expand Up @@ -158,7 +158,7 @@ func TestCallMetrics(t *testing.T) {
"service": "test-gateway",
"endpoint": "bazTChannel",
"handler": "call",
"method": "SimpleService--Call",
"method": "SimpleService__Call",
}

for _, name := range endpointNames {
Expand Down Expand Up @@ -196,7 +196,7 @@ func TestCallMetrics(t *testing.T) {
"host": zanzibar.GetHostname(),
"env": "test",
"service": "test-gateway",
"target-endpoint": "SimpleService::call",
"target-endpoint": "SimpleService__call",
"target-service": "bazService",
}

Expand Down Expand Up @@ -241,11 +241,12 @@ func TestCallMetrics(t *testing.T) {
"test-gateway.test.all-workers.outbound.calls.success",
}
clientTags := map[string]string{
"env": "test",
"service": "test-gateway",
"client": "baz",
"method": "Call",
"target-service": "bazService",
"env": "test",
"service": "test-gateway",
"client": "baz",
"method": "Call",
"target-service": "bazService",
"target-endpoint": "SimpleService__call",
}

for _, name := range clientNames {
Expand Down

0 comments on commit 92de401

Please sign in to comment.