diff --git a/src/main/kotlin/dk/aau/claaudia/openstackgateway/services/OpenStackService.kt b/src/main/kotlin/dk/aau/claaudia/openstackgateway/services/OpenStackService.kt index c0b1ee2f..5c25112a 100644 --- a/src/main/kotlin/dk/aau/claaudia/openstackgateway/services/OpenStackService.kt +++ b/src/main/kotlin/dk/aau/claaudia/openstackgateway/services/OpenStackService.kt @@ -1112,7 +1112,8 @@ class OpenStackService( Thread.sleep(config.monitor.delay) } logger.error("Job: ${job.openstackName} Job could not be deleted: $job") - sendJobFailedMessage(job.id, "Job deletion failed. Please try again later.") + // TODO: should we send a status in this case and what should the wording be + //sendJobFailedMessage(job.id, "Job deletion failed. Please try again later.") } fun asyncMonitorStackSuspensions(jobs: List) { diff --git a/src/test/kotlin/dk/aau/claaudia/openstackgateway/OpenStackServiceTest.kt b/src/test/kotlin/dk/aau/claaudia/openstackgateway/OpenStackServiceTest.kt index 1504111e..69840f6b 100644 --- a/src/test/kotlin/dk/aau/claaudia/openstackgateway/OpenStackServiceTest.kt +++ b/src/test/kotlin/dk/aau/claaudia/openstackgateway/OpenStackServiceTest.kt @@ -413,6 +413,8 @@ class OpenStackServiceTest( ) openStackService.monitorDeletion(job) + + verify(inverse = true) { openStackService.sendJobStatusMessage(job.id, any(), any()) } } @Test