Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoet committed Nov 16, 2023
1 parent b0a700f commit 0e3fb61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ class AzureService(crlService: CrlService, directoryDAO: DirectoryDAO, azureMana
createdPet <- directoryDAO.createPetManagedIdentity(petToCreate, samRequestContext)
} yield (createdPet, true)

private def getRegionFromMrg(mrgCoords: ManagedResourceGroupCoordinates, mrgManager: ResourceManager, samRequestContext: SamRequestContext) = {
private def getRegionFromMrg(mrgCoords: ManagedResourceGroupCoordinates, mrgManager: ResourceManager, samRequestContext: SamRequestContext) =
traceIOWithContext("getRegionFromMrg", samRequestContext) { _ =>
IO(mrgManager.resourceGroups().getByName(mrgCoords.managedResourceGroupName.value).region())
}
}

/** Loads a SamUser from the database by email.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ class AzureServiceSpec(_system: ActorSystem) extends TestKit(_system) with AnyFl
// create user
val defaultUser = genWorkbenchUserAzure.sample.get
val userStatus = userService.createUser(defaultUser, samRequestContext).unsafeRunSync()
userStatus shouldBe UserStatus(UserStatusDetails(defaultUser.id, defaultUser.email), Map("tosAccepted" -> false, "adminEnabled" -> true, "ldap" -> true, "allUsersGroup" -> true, "google" -> true))
userStatus shouldBe UserStatus(
UserStatusDetails(defaultUser.id, defaultUser.email),
Map("tosAccepted" -> false, "adminEnabled" -> true, "ldap" -> true, "allUsersGroup" -> true, "google" -> true)
)

// user should exist in postgres
directoryDAO.loadUser(defaultUser.id, samRequestContext).unsafeRunSync() shouldBe Some(defaultUser.copy(enabled = true))
Expand Down

0 comments on commit 0e3fb61

Please sign in to comment.