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
cb7ae2e6
Commit
cb7ae2e6
authored
Jan 17, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a deployment test for WebSphere Liberty Profile
Closes gh-7419
parent
69f362ba
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
188 additions
and
1 deletion
+188
-1
pom.xml
spring-boot-deployment-tests/pom.xml
+1
-0
pom.xml
...-deployment-tests/spring-boot-deployment-test-wlp/pom.xml
+88
-0
SampleController.java
...yment-test-wlp/src/main/java/sample/SampleController.java
+30
-0
SampleWlpDeployApplication.java
...-wlp/src/main/java/sample/SampleWlpDeployApplication.java
+25
-0
SampleWlpDeployApplicationIT.java
...lp/src/test/java/sample/SampleWlpDeployApplicationIT.java
+43
-0
pom.xml
spring-boot-parent/pom.xml
+1
-1
No files found.
spring-boot-deployment-tests/pom.xml
View file @
cb7ae2e6
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<module>
spring-boot-deployment-test-tomee
</module>
<module>
spring-boot-deployment-test-tomee
</module>
<module>
spring-boot-deployment-test-tomcat
</module>
<module>
spring-boot-deployment-test-tomcat
</module>
<module>
spring-boot-deployment-test-wildfly
</module>
<module>
spring-boot-deployment-test-wildfly
</module>
<module>
spring-boot-deployment-test-wlp
</module>
</modules>
</modules>
<build>
<build>
<pluginManagement>
<pluginManagement>
...
...
spring-boot-deployment-tests/spring-boot-deployment-test-wlp/pom.xml
0 → 100644
View file @
cb7ae2e6
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-deployment-tests
</artifactId>
<version>
1.5.0.BUILD-SNAPSHOT
</version>
</parent>
<artifactId>
spring-boot-deployment-test-wlp
</artifactId>
<packaging>
war
</packaging>
<name>
Spring Boot WebSphere Liberty Profile Deployment Test
</name>
<description>
Spring Boot WebSphere Liberty Profile Deployment Test
</description>
<url>
http://projects.spring.io/spring-boot/
</url>
<organization>
<name>
Pivotal Software, Inc.
</name>
<url>
http://www.spring.io
</url>
</organization>
<properties>
<main.basedir>
${basedir}/../..
</main.basedir>
<wlp.version>
16.0.0.4
</wlp.version>
<cargo.container.id>
liberty
</cargo.container.id>
<cargo.container.url>
http://central.maven.org/maven2/com/ibm/websphere/appserver/runtime/wlp-webProfile7/${wlp.version}/wlp-webProfile7-${wlp.version}.zip
</cargo.container.url>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
build-helper-maven-plugin
</artifactId>
<executions>
<execution>
<id>
reserve-network-port
</id>
<goals>
<goal>
reserve-network-port
</goal>
</goals>
<phase>
process-resources
</phase>
<configuration>
<portNames>
<portName>
appserver.port
</portName>
</portNames>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.codehaus.cargo
</groupId>
<artifactId>
cargo-maven2-plugin
</artifactId>
<configuration>
<configuration>
<properties>
<cargo.servlet.port>
${appserver.port}
</cargo.servlet.port>
</properties>
</configuration>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-failsafe-plugin
</artifactId>
<configuration>
<systemPropertyVariables>
<port>
${appserver.port}
</port>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>
spring-boot-deployment-tests/spring-boot-deployment-test-wlp/src/main/java/sample/SampleController.java
0 → 100644
View file @
cb7ae2e6
/*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
sample
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
public
class
SampleController
{
@GetMapping
(
"/"
)
public
String
hello
()
{
return
"Hello World"
;
}
}
spring-boot-deployment-tests/spring-boot-deployment-test-wlp/src/main/java/sample/SampleWlpDeployApplication.java
0 → 100644
View file @
cb7ae2e6
/*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
sample
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.support.SpringBootServletInitializer
;
@SpringBootApplication
public
class
SampleWlpDeployApplication
extends
SpringBootServletInitializer
{
}
spring-boot-deployment-tests/spring-boot-deployment-test-wlp/src/test/java/sample/SampleWlpDeployApplicationIT.java
0 → 100644
View file @
cb7ae2e6
/*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
sample
;
import
org.junit.Test
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
* Integration Tests for {@link SampleWlpDeployApplication}.
*/
public
class
SampleWlpDeployApplicationIT
{
private
int
port
=
Integer
.
valueOf
(
System
.
getProperty
(
"port"
));
@Test
public
void
testHome
()
throws
Exception
{
String
url
=
"http://localhost:"
+
this
.
port
+
"/bootapp/"
;
ResponseEntity
<
String
>
entity
=
new
TestRestTemplate
().
getForEntity
(
url
,
String
.
class
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
OK
);
assertThat
(
entity
.
getBody
()).
isEqualTo
(
"Hello World"
);
}
}
spring-boot-parent/pom.xml
View file @
cb7ae2e6
...
@@ -340,7 +340,7 @@
...
@@ -340,7 +340,7 @@
<plugin>
<plugin>
<groupId>
org.codehaus.cargo
</groupId>
<groupId>
org.codehaus.cargo
</groupId>
<artifactId>
cargo-maven2-plugin
</artifactId>
<artifactId>
cargo-maven2-plugin
</artifactId>
<version>
1.
4.15
</version>
<version>
1.
6.2
</version>
</plugin>
</plugin>
<plugin>
<plugin>
<groupId>
org.codehaus.gmavenplus
</groupId>
<groupId>
org.codehaus.gmavenplus
</groupId>
...
...
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