diff --git a/src/test/scala/org/broadinstitute/dsde/workbench/sam/google/GoogleExtensionRoutesSpec.scala b/src/test/scala/org/broadinstitute/dsde/workbench/sam/google/GoogleExtensionRoutesSpec.scala index 3fcfc43d9..e3d751527 100644 --- a/src/test/scala/org/broadinstitute/dsde/workbench/sam/google/GoogleExtensionRoutesSpec.scala +++ b/src/test/scala/org/broadinstitute/dsde/workbench/sam/google/GoogleExtensionRoutesSpec.scala @@ -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 } }