Skip to content

Commit 4c7beea

Browse files
jbriantaismarc0der
authored andcommitted
Add new minor versions 5.6.x for JMeter
1 parent ab183d0 commit 4c7beea

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

src/main/scala/io/sdkman/changelogs/JMeterMigration.scala

+21-15
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package io.sdkman.changelogs
22

33
import com.github.mongobee.changeset.{ChangeLog, ChangeSet}
44
import com.mongodb.client.MongoDatabase
5-
import org.bson.Document
65

76
@ChangeLog(order = "051")
87
class JMeterMigration {
8+
val candidate = "jmeter"
99

1010
@ChangeSet(
1111
order = "001",
@@ -14,7 +14,7 @@ class JMeterMigration {
1414
)
1515
def migration001(implicit db: MongoDatabase): Candidate = {
1616
Candidate(
17-
candidate = "jmeter",
17+
candidate = candidate,
1818
name = "Apache JMeter",
1919
description =
2020
"The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.",
@@ -23,20 +23,26 @@ class JMeterMigration {
2323
}
2424

2525
@ChangeSet(
26-
order = "006",
27-
id = "006-add_5.6_jmeter_candidate",
28-
author = "eddumelendez"
26+
order = "007",
27+
id = "007-add_5.6.x_jmeter_candidate",
28+
author = "jbriantais"
2929
)
30-
def migration006(implicit db: MongoDatabase): Unit = {
31-
val version = "5.6"
32-
Version(
33-
candidate = "jmeter",
34-
version = version,
35-
url =
36-
s"https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$version.zip"
37-
).validate()
30+
def migration007(implicit db: MongoDatabase): Unit = {
31+
List(
32+
"5.6.1",
33+
"5.6.2",
34+
"5.6.3"
35+
).map(
36+
version =>
37+
Version(
38+
candidate = candidate,
39+
version = version,
40+
url =
41+
s"https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$version.zip"
42+
)
43+
)
44+
.validate()
3845
.insert()
39-
.asCandidateDefault()
46+
setCandidateDefault(candidate, "5.6.3")
4047
}
41-
4248
}

0 commit comments

Comments
 (0)