Skip to content

@SpringBootTest(randomPort = true) does not generate random port for actuator #4424

@matsev

Description

@matsev

Step by step

  1. Add the actuator to a web project
  2. Change the port configuration of the actuator, e.g. management.port=8081
  3. Create an integration test that uses the @WebIntegrationTest(randomPort = true)
  4. Execute the test

Expected result

The actuator endpoints should be assigned to a random port.

Actual result

The actuator endpoints are assigned to the same port as in the configuration file (i.e. 8081 in the example above)

Version

Spring Boot 1.3.0.RC1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions