File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed
spring-boot-tests/spring-boot-deployment-tests Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ configurations {
13
13
}
14
14
15
15
dependencies {
16
+ implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-actuator" ))
17
+ implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-security" ))
16
18
implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-web" )) {
17
19
exclude group : " org.hibernate.validator"
18
20
}
19
- implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-actuator" ))
20
21
21
22
intTestImplementation(enforcedPlatform(project(path : " :spring-boot-project:spring-boot-parent" )))
22
23
intTestImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-test" ))
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ private void test(Consumer<TestRestTemplate> consumer) {
95
95
TestRestTemplate rest = new TestRestTemplate (new RestTemplateBuilder ()
96
96
.rootUri ("http://" + this .container .getHost () + ":" + this .container .getMappedPort (this .port )
97
97
+ "/spring-boot" )
98
+ .basicAuthentication ("test" , "test" )
98
99
.requestFactory (() -> new HttpComponentsClientHttpRequestFactory (HttpClients .custom ()
99
100
.setRetryHandler (new StandardHttpRequestRetryHandler (10 , false )).build ())));
100
101
try {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2021 the original author or authors.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package sample ;
18
+
19
+ import org .testcontainers .junit .jupiter .Container ;
20
+ import org .testcontainers .junit .jupiter .Testcontainers ;
21
+
22
+ /**
23
+ * Deployment integration tests for Tomcat 8.5 (a Servlet 3.1 container).
24
+ *
25
+ * @author Andy Wilkinson
26
+ */
27
+ @ Testcontainers (disabledWithoutDocker = true )
28
+ class Tomcat85DeploymentIntegrationTests extends AbstractDeploymentIntegrationTests {
29
+
30
+ @ Container
31
+ static WarDeploymentContainer container = new WarDeploymentContainer ("tomcat:8.5.73-jdk8-openjdk" ,
32
+ "/usr/local/tomcat/webapps" , DEFAULT_PORT );
33
+
34
+ @ Override
35
+ WarDeploymentContainer getContainer () {
36
+ return container ;
37
+ }
38
+
39
+ }
Original file line number Diff line number Diff line change
1
+ spring :
2
+ security :
3
+ user :
4
+ name : test
5
+ password : test
1
6
management.endpoints.web.exposure.include : ' *'
You can’t perform that action at this time.
0 commit comments