Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize Jira start API #101

Merged

Conversation

dagguh
Copy link
Contributor

@dagguh dagguh commented Feb 12, 2021

Depends on #100

@dagguh dagguh force-pushed the issue/JPERF-273-generalize-jira-starts branch 2 times, most recently from 11f32fc to 4bfee89 Compare February 19, 2021 10:34
@dagguh dagguh force-pushed the issue/JPERF-273-generalize-jira-starts branch from 4bfee89 to fd31f40 Compare February 19, 2021 11:03
@dagguh dagguh marked this pull request as ready for review February 19, 2021 11:03
@dagguh dagguh requested a review from a team as a code owner February 19, 2021 11:03

@Test
fun shouldInstallJira() {
// given
val installation = ParallelInstallation(
jiraHomeSource = EmptyJiraHome(),
productDistribution = PublicJiraSoftwareDistribution("7.13.0"),
jdk = AdoptOpenJDK11()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out that Jira 7.13.0 didn't like this JDK during start:

Wrong JVM version! You are running with openjdk version "11.0.1" 2018-10-16 but JIRA requires at least 1.8 to run.

import com.atlassian.performance.tools.infrastructure.toSsh
import com.atlassian.performance.tools.sshubuntu.api.SshUbuntuContainer
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import java.nio.file.Files
import java.util.function.Consumer

class ParallelInstallationIT {
class JiraLaunchScriptIT {
Copy link
Contributor Author

@dagguh dagguh Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm renaming the integration test to point to the biggest top-level chunk. E.g now it tests both ParallelInstallation and JiraLaunchScript, but the launch script goes further and relies on the installation, so it encompasses a bigger chunk of the system. When I'll add hooks API, they will be the top level.

@dagguh dagguh merged commit e6483fb into atlassian:master Feb 19, 2021
@dagguh dagguh deleted the issue/JPERF-273-generalize-jira-starts branch February 19, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants