Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthibault79 committed Mar 27, 2024
1 parent a329853 commit b128004
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class HttpRoutesSpec
val routes =
new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
createGcpOnlyServicesRegistry(),
MockDiskV2ServiceInterp,
Expand All @@ -73,6 +74,7 @@ class HttpRoutesSpec

val httpRoutesAzureOnly = new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
createGcpOnlyServicesRegistry(),
MockDiskV2ServiceInterp,
Expand All @@ -88,6 +90,7 @@ class HttpRoutesSpec
val routesWithStrictRefererConfig =
new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
createGcpOnlyServicesRegistry(),
MockDiskV2ServiceInterp,
Expand All @@ -102,6 +105,7 @@ class HttpRoutesSpec
val routesWithWildcardReferer =
new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
createGcpOnlyServicesRegistry(),
MockDiskV2ServiceInterp,
Expand All @@ -116,6 +120,7 @@ class HttpRoutesSpec
val routesWithDisabledRefererConfig =
new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
createGcpOnlyServicesRegistry(),
MockDiskV2ServiceInterp,
Expand Down Expand Up @@ -963,6 +968,7 @@ class HttpRoutesSpec

new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
gcpOnlyServicesRegistry,
MockDiskV2ServiceInterp,
Expand All @@ -984,6 +990,7 @@ class HttpRoutesSpec

new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
gcpOnlyServicesRegistry,
MockDiskV2ServiceInterp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ class ProxyRoutesSpec

val httpRoutes = new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
gcpOnlyServicesRegistry,
MockDiskV2ServiceInterp,
Expand Down Expand Up @@ -728,6 +729,7 @@ class ProxyRoutesSpec

new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
gcpOnlyServicesRegistry,
MockDiskV2ServiceInterp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ trait TestLeoRoutes {
MockGoogleOAuth2Service
)

val helloService = new HelloService()
val statusService =
new StatusService(mockSamDAO, testDbRef, pollInterval = 1.second)
val timedUserInfo = defaultUserInfo.copy(tokenExpiresIn = tokenAge)
Expand Down Expand Up @@ -208,6 +209,7 @@ trait TestLeoRoutes {
val httpRoutes =
new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
gcpOnlyServicesRegistry,
MockDiskV2ServiceInterp,
Expand All @@ -222,6 +224,7 @@ trait TestLeoRoutes {
val timedHttpRoutes =
new HttpRoutes(
openIdConnectionConfiguration,
helloService,
statusService,
gcpOnlyServicesRegistry,
MockDiskV2ServiceInterp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class LeoProvider extends AnyFlatSpec with BeforeAndAfterAll with PactVerifier {
implicit val system: ActorSystem = ActorSystem("leotests")

val mockOpenIDConnectConfiguration: OpenIDConnectConfiguration = mock[OpenIDConnectConfiguration]
val mockHelloService: HelloService = mock[HelloService]
val mockStatusService: StatusService = mock[StatusService]
val mockProxyService: ProxyService = mock[ProxyService]
val mockRuntimeService: RuntimeService[IO] = mock[RuntimeService[IO]]
Expand All @@ -63,6 +64,7 @@ class LeoProvider extends AnyFlatSpec with BeforeAndAfterAll with PactVerifier {
val routes =
new HttpRoutes(
mockOpenIDConnectConfiguration,
mockHelloService,
mockStatusService,
gcpOnlyServicesRegistry,
mockDiskV2Service,
Expand Down

0 comments on commit b128004

Please sign in to comment.