diff options
author | vlad <vlad@drivergrp.com> | 2016-10-26 20:06:38 -0400 |
---|---|---|
committer | vlad <vlad@drivergrp.com> | 2016-10-26 20:06:38 -0400 |
commit | 88978d91edca16f9c6a4177b5ed997bc12486b29 (patch) | |
tree | 9877cf39bb79bfa188b688fb0c7979c660625034 /src/test/scala/xyz/driver/core | |
parent | 98a1173d82f7d5f137657979926e2621def63191 (diff) | |
download | driver-core-88978d91edca16f9c6a4177b5ed997bc12486b29.tar.gz driver-core-88978d91edca16f9c6a4177b5ed997bc12486b29.tar.bz2 driver-core-88978d91edca16f9c6a4177b5ed997bc12486b29.zip |
Request tracing and audit loggingv0.9.7
Diffstat (limited to 'src/test/scala/xyz/driver/core')
-rw-r--r-- | src/test/scala/xyz/driver/core/AuthTest.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/xyz/driver/core/AuthTest.scala b/src/test/scala/xyz/driver/core/AuthTest.scala index fef3eda..97279de 100644 --- a/src/test/scala/xyz/driver/core/AuthTest.scala +++ b/src/test/scala/xyz/driver/core/AuthTest.scala @@ -40,7 +40,7 @@ class AuthTest extends FlatSpec with Matchers with MockitoSugar with ScalatestRo it should "throw error is authorized user is not having the requested permission" in { - val referenceAuthToken = AuthToken(Base64("I am a pathologist's token")) + val referenceAuthToken = AuthToken(Base64("I am a pathologist's token"), "BC131CD") Post("/administration/attempt").addHeader( RawHeader(AuthService.AuthenticationTokenHeader, referenceAuthToken.value.value) @@ -60,7 +60,7 @@ class AuthTest extends FlatSpec with Matchers with MockitoSugar with ScalatestRo it should "pass and retrieve the token to client code, if token is in request and user has permission" in { - val referenceAuthToken = AuthToken(Base64("I am token")) + val referenceAuthToken = AuthToken(Base64("I am token"), "AAADDDFFF") Get("/valid/attempt/?a=2&b=5").addHeader( RawHeader(AuthService.AuthenticationTokenHeader, referenceAuthToken.value.value) |