-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix existing tests and add httpRoute unit tests
- Loading branch information
Showing
5 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
.../scala/org/broadinstitute/dsde/workbench/leonardo/http/service/MockResourcesService.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.broadinstitute.dsde.workbench.leonardo.http.service | ||
|
||
import cats.mtl.Ask | ||
import cats.effect.IO | ||
import org.broadinstitute.dsde.workbench.leonardo.AppContext | ||
import org.broadinstitute.dsde.workbench.model.google.GoogleProject | ||
import org.broadinstitute.dsde.workbench.model.UserInfo | ||
|
||
object MockResourcesService extends ResourcesService[IO] { | ||
|
||
def deleteAllResources(userInfo: UserInfo, googleProject: GoogleProject, deleteInCloud: Boolean, deleteDisk: Boolean)( | ||
implicit as: Ask[IO, AppContext] | ||
): IO[Unit] = IO.unit | ||
} |
8 changes: 8 additions & 0 deletions
8
.../org/broadinstitute/dsde/workbench/leonardo/http/service/ResourcesServiceInterpSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.broadinstitute.dsde.workbench.leonardo | ||
package http | ||
package service | ||
|
||
import org.broadinstitute.dsde.workbench.leonardo.db.TestComponent | ||
import org.scalatest.flatspec.AnyFlatSpec | ||
|
||
final class ResourcesServiceInterpSpec extends AnyFlatSpec with LeonardoTestSuite with TestComponent {} |