diff --git a/cloud-run/src/jvmIntegrationTest/kotlin/io/ashdavies/cloud/ApplicationTest.kt b/cloud-run/src/jvmIntegrationTest/kotlin/io/ashdavies/cloud/ApplicationTest.kt index a63d2c1cc..8137c63ff 100644 --- a/cloud-run/src/jvmIntegrationTest/kotlin/io/ashdavies/cloud/ApplicationTest.kt +++ b/cloud-run/src/jvmIntegrationTest/kotlin/io/ashdavies/cloud/ApplicationTest.kt @@ -70,6 +70,15 @@ internal class ApplicationTest { assertEquals(DEFAULT_LIMIT, events.size) } + + @Test + fun `should aggregate github events`() = testMainApplication { client -> + val response = client.post("/events:aggregate") { + contentType(ContentType.Application.Json) + } + + assertEquals(200, response.status.value) + } } @KtorDsl