diff options
author | Jakob Odersky <jakob@driver.xyz> | 2018-10-04 13:52:14 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2018-10-09 16:19:39 -0700 |
commit | 477804e21c3c61666a48b74f17caef04233c2363 (patch) | |
tree | 0f12c52e34850cac4ddeab99ae8b5d761f2dd3a3 /core-rest/src/test/scala/xyz/driver/core/AuthTest.scala | |
parent | e67f49c20c6901bf77bcfb735254e44dc70c0cee (diff) | |
download | driver-core-477804e21c3c61666a48b74f17caef04233c2363.tar.gz driver-core-477804e21c3c61666a48b74f17caef04233c2363.tar.bz2 driver-core-477804e21c3c61666a48b74f17caef04233c2363.zip |
Fix dependencies in tests to accomodate project split
Diffstat (limited to 'core-rest/src/test/scala/xyz/driver/core/AuthTest.scala')
-rw-r--r-- | core-rest/src/test/scala/xyz/driver/core/AuthTest.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core-rest/src/test/scala/xyz/driver/core/AuthTest.scala b/core-rest/src/test/scala/xyz/driver/core/AuthTest.scala index 2e772fb..8c32aa7 100644 --- a/core-rest/src/test/scala/xyz/driver/core/AuthTest.scala +++ b/core-rest/src/test/scala/xyz/driver/core/AuthTest.scala @@ -9,11 +9,12 @@ import akka.http.scaladsl.model.headers.{ import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server._ import akka.http.scaladsl.testkit.ScalatestRouteTest +import com.typesafe.scalalogging.Logger import org.scalatest.{FlatSpec, Matchers} +import org.slf4j.helpers.NOPLogger import pdi.jwt.{Jwt, JwtAlgorithm} import xyz.driver.core.auth._ import xyz.driver.core.domain.Email -import xyz.driver.core.logging._ import xyz.driver.core.rest._ import xyz.driver.core.rest.auth._ import xyz.driver.core.time.Time @@ -53,7 +54,7 @@ class AuthTest extends FlatSpec with Matchers with ScalatestRouteTest { val authorization = new ChainedAuthorization[User](tokenAuthorization, basicAuthorization) - val authStatusService = new AuthProvider[User](authorization, NoLogger) { + val authStatusService = new AuthProvider[User](authorization, Logger(NOPLogger.NOP_LOGGER)) { override def authenticatedUser(implicit ctx: ServiceRequestContext): OptionT[Future, User] = OptionT.optionT[Future] { if (ctx.contextHeaders.keySet.contains(AuthProvider.AuthenticationTokenHeader)) { |