File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed
spring-boot-system-tests/spring-boot-deployment-tests
systemTest/java/org/springframework/boot/deployment Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ configurations.all {
1717}
1818
1919dependencies {
20+ implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-actuator" ))
21+ implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-security" ))
2022 implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-web" )) {
2123 exclude group : " org.hibernate.validator"
2224 }
23- implementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-actuator" ))
2425
2526 systemTestImplementation(enforcedPlatform(project(path : " :spring-boot-project:spring-boot-parent" )))
2627 systemTestImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-test" ))
Original file line number Diff line number Diff line change 1+ spring :
2+ security :
3+ user :
4+ name : test
5+ password : test
16management.endpoints.web.exposure.include : ' *'
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ private void test(Consumer<TestRestTemplate> consumer) {
9595 TestRestTemplate rest = new TestRestTemplate (new RestTemplateBuilder ()
9696 .rootUri ("http://" + this .container .getHost () + ":" + this .container .getMappedPort (this .port )
9797 + "/spring-boot" )
98+ .basicAuthentication ("test" , "test" )
9899 .requestFactory (() -> new HttpComponentsClientHttpRequestFactory (HttpClients .custom ()
99100 .setRetryHandler (new StandardHttpRequestRetryHandler (10 , false )).build ())));
100101 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 org .springframework .boot .deployment ;
18+
19+ import org .testcontainers .junit .jupiter .Container ;
20+ import org .testcontainers .junit .jupiter .Testcontainers ;
21+
22+ /**
23+ * Deployment tests for Tomcat 8.5 (a Servlet 3.1 container).
24+ *
25+ * @author Andy Wilkinson
26+ */
27+ @ Testcontainers (disabledWithoutDocker = true )
28+ class Tomcat85DeploymentTests extends AbstractDeploymentTests {
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+ }
You can’t perform that action at this time.
0 commit comments