From 46ac2bae3e57d6e21492e4d073eec4f94401312a Mon Sep 17 00:00:00 2001 From: Maciej Kwidzinski Date: Wed, 16 Oct 2019 16:44:22 +0200 Subject: [PATCH] Expose `Reports.listReports` --- .../performance/tools/infrastructure/api/jira/hook/Reports.kt | 2 +- .../infrastructure/api/jira/hook/start/HookedJiraStartIT.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt b/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt index fb1e5c0d..25b109ed 100644 --- a/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt +++ b/src/main/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/Reports.kt @@ -13,7 +13,7 @@ open class Reports protected constructor() { reports.add(report) } - internal fun allReports(): Iterable { + fun listReports(): Iterable { return reports.toList() } } diff --git a/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt b/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt index de592753..b90f3e2e 100644 --- a/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt +++ b/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/hook/start/HookedJiraStartIT.kt @@ -49,7 +49,7 @@ class HookedJiraStartIT { val installed = jiraInstallation.install(ssh, server, hooks) val started = jiraStart.start(ssh, installed, hooks) stop(started, ssh) - hooks.allReports().flatMap { it.locate(ssh) } + hooks.listReports().flatMap { it.locate(ssh) } } // then @@ -98,7 +98,7 @@ class HookedJiraStartIT { } catch (e: Exception) { println("Failed: ${e.message}") } - return@useSsh hooks.allReports().flatMap { it.locate(ssh) } + return@useSsh hooks.listReports().flatMap { it.locate(ssh) } } }