Skip to content

Commit

Permalink
olivias comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tlangs committed Jul 8, 2024
1 parent f3e82ed commit 035eedc
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,14 @@ class GoogleExtensionRoutesSpec extends GoogleExtensionRoutesSpecHelper with Sca
responseAs[Map[WorkbenchEmail, Seq[SyncReportItem]]] should not be empty
}

// A duplicate call should return OK and an empty response
// A duplicate call should return OK and the email with no sync report items
Post(s"/api/google/resource/${resourceType.name}/foo/${resourceType.ownerRoleName.value}/sync") ~> routes.route ~> check {
status shouldEqual StatusCodes.OK
val response = responseAs[Map[WorkbenchEmail, Seq[SyncReportItem]]]
response.keys should not be empty
response.keys should have size 1
val email = response.keys.head.value
email should startWith("policy-")
email should endWith("example.com")
response.values.flatten shouldBe empty
}
}
Expand Down

0 comments on commit 035eedc

Please sign in to comment.