diff options
author | Diego <diegolparra@gmail.com> | 2014-03-09 15:01:51 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-03-09 15:01:51 -0300 |
commit | 04550ce1daff2b3d13aa85931686a303bf93fbd8 (patch) | |
tree | a9be0d45072915d4f3c10e7cdc50052f7ef7d445 /kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala | |
parent | b8a26e0f173a528c700a3d0cfa4ed2f8079a7ae1 (diff) | |
download | Kamon-04550ce1daff2b3d13aa85931686a303bf93fbd8.tar.gz Kamon-04550ce1daff2b3d13aa85931686a303bf93fbd8.tar.bz2 Kamon-04550ce1daff2b3d13aa85931686a303bf93fbd8.zip |
Play Integration with: X-Trace-Token, WebExternal Time and Error publishing in Akka EventStream
Diffstat (limited to 'kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala')
-rw-r--r-- | kamon-play/src/test/scala/kamon/play/RequestInstrumentationSpec.scala | 14 |
1 files changed, 7 insertions, 7 deletions
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 <http://kamon.io/> + * Copyright © 2013-2014 the kamon project <http://kamon.io/> * * 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) } |