Skip to content

Commit

Permalink
Add test to see how preview behaves on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Sep 19, 2024
1 parent 2debb16 commit c30d24e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ class GetOriginalMetadataEndpointTest(
}
}

@Test
fun `GIVEN still processing submitted data THEN return 503`() {
convenienceClient.submitDefaultFiles()
val response = submissionControllerClient.getOriginalMetadata()
response.andExpect(status().isServiceUnavailable)
}

@Test
fun `GIVEN no sequence entries in database THEN returns empty response`() {
val response = submissionControllerClient.getOriginalMetadata()
Expand Down

0 comments on commit c30d24e

Please sign in to comment.