Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
07e32bf5
Commit
07e32bf5
authored
Dec 07, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.2.x' into 2.3.x
Closes gh-24347
parents
c7fe3721
f64b7f84
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
AbstractLaunchScriptIntegrationTests.java
...ot/launchscript/AbstractLaunchScriptIntegrationTests.java
+6
-3
JarLaunchScriptIntegrationTests.java
...rk/boot/launchscript/JarLaunchScriptIntegrationTests.java
+6
-0
SysVinitLaunchScriptIntegrationTests.java
...ot/launchscript/SysVinitLaunchScriptIntegrationTests.java
+5
-0
Dockerfile
...src/intTest/resources/conf/CentOS/7.9-e4ca2ed0/Dockerfile
+2
-3
No files found.
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/java/org/springframework/boot/launchscript/AbstractLaunchScriptIntegrationTests.java
View file @
07e32bf5
...
@@ -20,6 +20,7 @@ import java.io.File;
...
@@ -20,6 +20,7 @@ import java.io.File;
import
java.time.Duration
;
import
java.time.Duration
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.function.Predicate
;
import
org.assertj.core.api.Condition
;
import
org.assertj.core.api.Condition
;
import
org.testcontainers.containers.GenericContainer
;
import
org.testcontainers.containers.GenericContainer
;
...
@@ -50,11 +51,13 @@ abstract class AbstractLaunchScriptIntegrationTests {
...
@@ -50,11 +51,13 @@ abstract class AbstractLaunchScriptIntegrationTests {
this
.
scriptsDir
=
scriptsDir
;
this
.
scriptsDir
=
scriptsDir
;
}
}
static
List
<
Object
[]>
parameters
()
{
static
List
<
Object
[]>
parameters
(
Predicate
<
File
>
osFilter
)
{
List
<
Object
[]>
parameters
=
new
ArrayList
<>();
List
<
Object
[]>
parameters
=
new
ArrayList
<>();
for
(
File
os
:
new
File
(
"src/intTest/resources/conf"
).
listFiles
())
{
for
(
File
os
:
new
File
(
"src/intTest/resources/conf"
).
listFiles
())
{
for
(
File
version
:
os
.
listFiles
())
{
if
(
osFilter
.
test
(
os
))
{
parameters
.
add
(
new
Object
[]
{
os
.
getName
(),
version
.
getName
()
});
for
(
File
version
:
os
.
listFiles
())
{
parameters
.
add
(
new
Object
[]
{
os
.
getName
(),
version
.
getName
()
});
}
}
}
}
}
return
parameters
;
return
parameters
;
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/java/org/springframework/boot/launchscript/JarLaunchScriptIntegrationTests.java
View file @
07e32bf5
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
package
org
.
springframework
.
boot
.
launchscript
;
package
org
.
springframework
.
boot
.
launchscript
;
import
java.util.List
;
import
org.junit.jupiter.params.ParameterizedTest
;
import
org.junit.jupiter.params.ParameterizedTest
;
import
org.junit.jupiter.params.provider.MethodSource
;
import
org.junit.jupiter.params.provider.MethodSource
;
...
@@ -36,6 +38,10 @@ class JarLaunchScriptIntegrationTests extends AbstractLaunchScriptIntegrationTes
...
@@ -36,6 +38,10 @@ class JarLaunchScriptIntegrationTests extends AbstractLaunchScriptIntegrationTes
super
(
"jar/"
);
super
(
"jar/"
);
}
}
static
List
<
Object
[]>
parameters
()
{
return
parameters
((
file
)
->
true
);
}
@ParameterizedTest
(
name
=
"{0} {1}"
)
@ParameterizedTest
(
name
=
"{0} {1}"
)
@MethodSource
(
"parameters"
)
@MethodSource
(
"parameters"
)
void
basicLaunch
(
String
os
,
String
version
)
throws
Exception
{
void
basicLaunch
(
String
os
,
String
version
)
throws
Exception
{
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIntegrationTests.java
View file @
07e32bf5
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
package
org
.
springframework
.
boot
.
launchscript
;
package
org
.
springframework
.
boot
.
launchscript
;
import
java.util.List
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
org.junit.jupiter.api.Assumptions
;
import
org.junit.jupiter.api.Assumptions
;
...
@@ -41,6 +42,10 @@ class SysVinitLaunchScriptIntegrationTests extends AbstractLaunchScriptIntegrati
...
@@ -41,6 +42,10 @@ class SysVinitLaunchScriptIntegrationTests extends AbstractLaunchScriptIntegrati
super
(
"init.d/"
);
super
(
"init.d/"
);
}
}
static
List
<
Object
[]>
parameters
()
{
return
parameters
((
file
)
->
!
file
.
getName
().
contains
(
"CentOS"
));
}
@ParameterizedTest
(
name
=
"{0} {1}"
)
@ParameterizedTest
(
name
=
"{0} {1}"
)
@MethodSource
(
"parameters"
)
@MethodSource
(
"parameters"
)
void
statusWhenStopped
(
String
os
,
String
version
)
throws
Exception
{
void
statusWhenStopped
(
String
os
,
String
version
)
throws
Exception
{
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/resources/conf/CentOS/
6.9-a23bced6
/Dockerfile
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/resources/conf/CentOS/
7.9-e4ca2ed0
/Dockerfile
View file @
07e32bf5
# CentOS
6.9 from 02/06/2017
# CentOS
7.9 from 18/11/2020
FROM
centos@sha256:
a23bced61701af9a0a758e94229676d9f09996a3ff0f3d26955b06bac8c282e0
FROM
centos@sha256:
e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e
RUN
yum
install
-y
wget
&&
\
RUN
yum
install
-y
wget
&&
\
yum
install
-y
system-config-services
&&
\
yum
install
-y
curl
&&
\
yum
install
-y
curl
&&
\
wget
--output-document
jdk.rpm
\
wget
--output-document
jdk.rpm
\
https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-linux.x86_64.rpm
&&
\
https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-linux.x86_64.rpm
&&
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment