@@ -30,7 +30,7 @@ import org.springframework.data.release.model.TrainIteration;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link BackportTargets}.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
class BackportTargetsUnitTests {
|
||||
@@ -51,7 +51,7 @@ class BackportTargetsUnitTests {
|
||||
}
|
||||
|
||||
@Test // #11
|
||||
void includesMasterBranchForServiceReleaseSource() {
|
||||
void includesMainBranchForServiceReleaseSource() {
|
||||
|
||||
TrainIteration iteration = new TrainIteration(ReleaseTrains.GOSLING, Iteration.SR2);
|
||||
ModuleIteration module = iteration.getModule(Projects.COMMONS);
|
||||
@@ -59,7 +59,7 @@ class BackportTargetsUnitTests {
|
||||
BackportTargets targets = new BackportTargets(module, Arrays.asList(ReleaseTrains.FOWLER));
|
||||
|
||||
assertThat(targets).hasSize(2);
|
||||
assertThat(targets).contains(Branch.MASTER, fowlerBranch);
|
||||
assertThat(targets).contains(Branch.MAIN, fowlerBranch);
|
||||
}
|
||||
|
||||
private static Branch getBranch(Train train) {
|
||||
|
||||
@@ -34,7 +34,7 @@ class BranchUnitTests {
|
||||
void testname() {
|
||||
|
||||
IterationVersion iterationVersion = new SimpleIterationVersion(Version.of(1, 4), Iteration.RC1);
|
||||
assertThat(Branch.from(iterationVersion).toString()).isEqualTo("master");
|
||||
assertThat(Branch.from(iterationVersion).toString()).isEqualTo("main");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -23,10 +23,6 @@ import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
|
||||
import org.eclipse.jgit.api.Git;
|
||||
import org.eclipse.jgit.internal.storage.file.FileRepository;
|
||||
import org.eclipse.jgit.lib.ObjectId;
|
||||
import org.eclipse.jgit.revwalk.RevCommit;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -102,29 +98,4 @@ class GitOperationsIntegrationTests extends AbstractIntegrationTests {
|
||||
assertThat(hopperSR9.getIteration()).isEqualTo(Iteration.SR9);
|
||||
}
|
||||
|
||||
@Test
|
||||
void verify() throws Exception {
|
||||
|
||||
// gitOperations.update(ReleaseTrains.HOPPER);
|
||||
|
||||
try (Git git = new Git(new FileRepository("/Users/mpaluch/git/data/spring-data-elasticsearch/.git"))) {
|
||||
|
||||
ObjectId resolve = git.getRepository().parseCommit(git.getRepository().resolve("3.0.0.RELEASE"));
|
||||
Iterable<RevCommit> master = git.log().addRange(resolve, git.getRepository().resolve("master")).call();
|
||||
|
||||
for (RevCommit revCommit : master) {
|
||||
|
||||
ParsedCommitMessage message = ParsedCommitMessage.parse(revCommit.getFullMessage());
|
||||
|
||||
if (message.getTicketReference() == null || message.getSummary() == null) {
|
||||
System.out.println(revCommit.getFullMessage());
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
} catch (Exception o_O) {
|
||||
throw new RuntimeException(o_O);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user