Skip to content

Commit b128004

Browse files
committed
fix tests
1 parent a329853 commit b128004

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

http/src/test/scala/org/broadinstitute/dsde/workbench/leonardo/http/api/HttpRoutesSpec.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class HttpRoutesSpec
6060
val routes =
6161
new HttpRoutes(
6262
openIdConnectionConfiguration,
63+
helloService,
6364
statusService,
6465
createGcpOnlyServicesRegistry(),
6566
MockDiskV2ServiceInterp,
@@ -73,6 +74,7 @@ class HttpRoutesSpec
7374

7475
val httpRoutesAzureOnly = new HttpRoutes(
7576
openIdConnectionConfiguration,
77+
helloService,
7678
statusService,
7779
createGcpOnlyServicesRegistry(),
7880
MockDiskV2ServiceInterp,
@@ -88,6 +90,7 @@ class HttpRoutesSpec
8890
val routesWithStrictRefererConfig =
8991
new HttpRoutes(
9092
openIdConnectionConfiguration,
93+
helloService,
9194
statusService,
9295
createGcpOnlyServicesRegistry(),
9396
MockDiskV2ServiceInterp,
@@ -102,6 +105,7 @@ class HttpRoutesSpec
102105
val routesWithWildcardReferer =
103106
new HttpRoutes(
104107
openIdConnectionConfiguration,
108+
helloService,
105109
statusService,
106110
createGcpOnlyServicesRegistry(),
107111
MockDiskV2ServiceInterp,
@@ -116,6 +120,7 @@ class HttpRoutesSpec
116120
val routesWithDisabledRefererConfig =
117121
new HttpRoutes(
118122
openIdConnectionConfiguration,
123+
helloService,
119124
statusService,
120125
createGcpOnlyServicesRegistry(),
121126
MockDiskV2ServiceInterp,
@@ -963,6 +968,7 @@ class HttpRoutesSpec
963968

964969
new HttpRoutes(
965970
openIdConnectionConfiguration,
971+
helloService,
966972
statusService,
967973
gcpOnlyServicesRegistry,
968974
MockDiskV2ServiceInterp,
@@ -984,6 +990,7 @@ class HttpRoutesSpec
984990

985991
new HttpRoutes(
986992
openIdConnectionConfiguration,
993+
helloService,
987994
statusService,
988995
gcpOnlyServicesRegistry,
989996
MockDiskV2ServiceInterp,

http/src/test/scala/org/broadinstitute/dsde/workbench/leonardo/http/api/ProxyRoutesSpec.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ class ProxyRoutesSpec
551551

552552
val httpRoutes = new HttpRoutes(
553553
openIdConnectionConfiguration,
554+
helloService,
554555
statusService,
555556
gcpOnlyServicesRegistry,
556557
MockDiskV2ServiceInterp,
@@ -728,6 +729,7 @@ class ProxyRoutesSpec
728729

729730
new HttpRoutes(
730731
openIdConnectionConfiguration,
732+
helloService,
731733
statusService,
732734
gcpOnlyServicesRegistry,
733735
MockDiskV2ServiceInterp,

http/src/test/scala/org/broadinstitute/dsde/workbench/leonardo/http/api/TestLeoRoutes.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ trait TestLeoRoutes {
173173
MockGoogleOAuth2Service
174174
)
175175

176+
val helloService = new HelloService()
176177
val statusService =
177178
new StatusService(mockSamDAO, testDbRef, pollInterval = 1.second)
178179
val timedUserInfo = defaultUserInfo.copy(tokenExpiresIn = tokenAge)
@@ -208,6 +209,7 @@ trait TestLeoRoutes {
208209
val httpRoutes =
209210
new HttpRoutes(
210211
openIdConnectionConfiguration,
212+
helloService,
211213
statusService,
212214
gcpOnlyServicesRegistry,
213215
MockDiskV2ServiceInterp,
@@ -222,6 +224,7 @@ trait TestLeoRoutes {
222224
val timedHttpRoutes =
223225
new HttpRoutes(
224226
openIdConnectionConfiguration,
227+
helloService,
225228
statusService,
226229
gcpOnlyServicesRegistry,
227230
MockDiskV2ServiceInterp,

pact4s/src/test/scala/org/broadinstitute/dsde/workbench/leonardo/provider/LeoProvider.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class LeoProvider extends AnyFlatSpec with BeforeAndAfterAll with PactVerifier {
3737
implicit val system: ActorSystem = ActorSystem("leotests")
3838

3939
val mockOpenIDConnectConfiguration: OpenIDConnectConfiguration = mock[OpenIDConnectConfiguration]
40+
val mockHelloService: HelloService = mock[HelloService]
4041
val mockStatusService: StatusService = mock[StatusService]
4142
val mockProxyService: ProxyService = mock[ProxyService]
4243
val mockRuntimeService: RuntimeService[IO] = mock[RuntimeService[IO]]
@@ -63,6 +64,7 @@ class LeoProvider extends AnyFlatSpec with BeforeAndAfterAll with PactVerifier {
6364
val routes =
6465
new HttpRoutes(
6566
mockOpenIDConnectConfiguration,
67+
mockHelloService,
6668
mockStatusService,
6769
gcpOnlyServicesRegistry,
6870
mockDiskV2Service,

0 commit comments

Comments
 (0)