diff --git a/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/instance/JiraPlanIT.kt b/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/instance/JiraPlanIT.kt index cc7db7e7..afc81957 100644 --- a/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/instance/JiraPlanIT.kt +++ b/src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/jira/instance/JiraPlanIT.kt @@ -76,6 +76,7 @@ class JiraPlanIT { val dataCenter = dcPlan.materialize() // then + assertJiraAccessible(dataCenter) dataCenter.nodes.forEach { node -> val installed = node.installed val serverXml = installed @@ -84,12 +85,7 @@ class JiraPlanIT { .download(Files.createTempFile("downloaded-config", ".xml")) assertThat(serverXml.readText()).contains(" - ssh.execute("wget ${dataCenter.address.addressPrivately()}") - } } - dataCenter.address.addressPublicly().toURL().readText() } @@ -186,6 +182,7 @@ class JiraPlanIT { val reports = jiraServerPlan.report().downloadTo(Files.createTempDirectory("jira-server-plan-")) // then + assertJiraAccessible(jiraServer) val theNode = jiraServer.nodes.single() val serverXml = theNode .installed @@ -216,6 +213,15 @@ class JiraPlanIT { } } + private fun assertJiraAccessible(jira: JiraInstance) { + val fakeVu = infrastructure.serveSsh() + fakeVu.newConnection().use { ssh -> + ssh.execute("wget ${jira.address.addressPrivately()}") + } + val response = jira.address.addressPublicly().toURL().readText() + assertThat(response).contains("