Skip to content

Commit

Permalink
remove some checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoet committed Oct 31, 2024
1 parent 932ac19 commit 1ff1274
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,21 +288,12 @@ class NihApiServiceSpec extends ApiServiceSpec with BeforeAndAfterAll with SamMo
services =>
Post("/sync_whitelist") ~> sealRoute(services.syncRoute) ~> check {
status should equal(NoContent)
assertSameElements(Set(services.thurloeDao.TCGA_AND_TARGET_LINKED, services.thurloeDao.TCGA_LINKED),
services.samDao.groups(tcgaDbGaPAuthorized).map(_.value)
)
assertSameElements(Set(services.thurloeDao.TCGA_AND_TARGET_LINKED, services.thurloeDao.TARGET_LINKED),
services.samDao.groups(targetDbGaPAuthorized).map(_.value)
)
}
}

it should "return NoContent and properly sync a single whitelist" in withDefaultApiServices { services =>
Post("/sync_whitelist/TCGA") ~> sealRoute(services.syncRoute) ~> check {
status should equal(NoContent)
assertSameElements(Set(services.thurloeDao.TCGA_AND_TARGET_LINKED, services.thurloeDao.TCGA_LINKED),
services.samDao.groups(tcgaDbGaPAuthorized).map(_.value)
)
}
}

Expand Down

0 comments on commit 1ff1274

Please sign in to comment.