It may be caused by this problem
@TestPropertySource(locations = { "classpath:application.yml", "classpath:contract-test.properties" })@ActiveProfiles({ "local" })
Check application.yml and contract-test.properties
Ensure that the endpoint IDs for all Actuator-related configurations are legal (lowercase letters, numbers, and hyphens are allowed only -)