From 04550ce1daff2b3d13aa85931686a303bf93fbd8 Mon Sep 17 00:00:00 2001 From: Diego Date: Sun, 9 Mar 2014 15:01:51 -0300 Subject: Play Integration with: X-Trace-Token, WebExternal Time and Error publishing in Akka EventStream --- .../test/scala/kamon/play/RequestInstrumentationSpec.scala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala') diff --git a/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala b/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala index 2dce39f8..0c4ac57b 100644 --- a/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala +++ b/kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala @@ -1,5 +1,5 @@ /* =================================================== - * Copyright © 2013 2014 the kamon project + * Copyright © 2013-2014 the kamon project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,7 +73,7 @@ class RequestInstrumentationSpec extends PlaySpecification { private val traceTokenValue = "kamon-trace-token-test" private val traceTokenHeaderName = "X-Trace-Token" private val expectedToken = Some(traceTokenValue) - private val traceTokenHeader = (traceTokenHeaderName -> traceTokenValue) + private val traceTokenHeader = traceTokenHeaderName -> traceTokenValue "the Request instrumentation" should { "respond to the asyncResult action with X-Trace-Token" in new WithServer(appWithRoutes) { @@ -81,28 +81,28 @@ class RequestInstrumentationSpec extends PlaySpecification { header(traceTokenHeaderName, result) must equalTo(expectedToken) } - "respond to the async action with X-Trace-Token" in new WithServer(appWithRoutes) { + "respond to the Async Action with X-Trace-Token" in new WithServer(appWithRoutes) { val Some(result) = route(FakeRequest(GET, "/async").withHeaders(traceTokenHeader)) header(traceTokenHeaderName, result) must equalTo(expectedToken) } - "respond to the notFound action with X-Trace-Token" in new WithServer(appWithRoutes) { + "respond to the NotFound Action with X-Trace-Token" in new WithServer(appWithRoutes) { val Some(result) = route(FakeRequest(GET, "/notFound").withHeaders(traceTokenHeader)) header(traceTokenHeaderName, result) must equalTo(expectedToken) } - "respond to the default action with X-Trace-Token" in new WithServer(appWithRoutes) { + "respond to the Default Action with X-Trace-Token" in new WithServer(appWithRoutes) { val Some(result) = route(FakeRequest(GET, "/default").withHeaders(traceTokenHeader)) header(traceTokenHeaderName, result) must equalTo(expectedToken) } - "respond to the redirect action with X-Trace-Token" in new WithServer(appWithRoutes) { + "respond to the Redirect Action with X-Trace-Token" in new WithServer(appWithRoutes) { val Some(result) = route(FakeRequest(GET, "/redirect").withHeaders(traceTokenHeader)) header("Location", result) must equalTo(Some("/redirected")) header(traceTokenHeaderName, result) must equalTo(expectedToken) } - "respond to the async action with X-Trace-Token and the renamed trace" in new WithServer(appWithRoutes) { + "respond to the Async Action with X-Trace-Token and the renamed trace" in new WithServer(appWithRoutes) { val Some(result) = route(FakeRequest(GET, "/async-renamed").withHeaders(traceTokenHeader)) header(traceTokenHeaderName, result) must equalTo(expectedToken) } -- cgit v1.2.3