Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
asingh7115 committed Oct 23, 2017
1 parent 2886c5c commit f5e9472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ akka.ssl-config {
}
}

whitelist = ["user1@example.com"]
whiteList = ["user1@example.com"]

Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ class LeoRoutesSpec extends FlatSpec with Matchers with ScalatestRouteTest with
}
}

it should "401 when using a non-whitelisted user" in isolatedDbTest {
it should "401 when using a non-white-listed user" in isolatedDbTest {
val invalidUserLeoRoutes = new LeoRoutes(leonardoService, proxyService, swaggerConfig, whiteListConfig) with MockUserInfoDirectives {
override val userInfo: UserInfo = UserInfo(OAuth2BearerToken("accessToken"), WorkbenchUserId("badUser"), WorkbenchUserEmail("badUser@example.com"), 0)
}
Get("/api/clusters") ~> invalidUserLeoRoutes.route ~> check {
status shouldEqual StatusCodes.Unauthorized
}
}

it should "404 when getting a nonexistent cluster" in isolatedDbTest {
Get(s"/api/cluster/nonexistent/cluster") ~> leoRoutes.route ~> check {
status shouldEqual StatusCodes.NotFound
Expand Down

0 comments on commit f5e9472

Please sign in to comment.