Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate if adding a @WebEndpointTest for testing custom actuator web points is now feasible #40574

Open
philwebb opened this issue Apr 29, 2024 · 1 comment
Labels
type: enhancement A general enhancement

Comments

@philwebb
Copy link
Member

See #11399 for background. The codebase has moved on quite bit since that issue was raised so we might be able to consider it.

@philwebb philwebb added for: team-meeting An issue we'd like to discuss as a team to make progress status: waiting-for-triage An issue we've not yet triaged labels Apr 29, 2024
@philwebb
Copy link
Member Author

philwebb commented May 1, 2024

We think it's worth investigating this a little more, but it might be prudent to do so alongside #20290 since we expect some of the actuator core to change.

In the meantime, the following code should work for testing Spring MVC apps:

@ImportAutoConfiguration({EndpointAutoConfiguration.class, WebEndpointAutoConfiguration.class, 
    BeansEndpointAutoConfiguration.class, ManagementContextAutoConfiguration.class})

@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged for: team-meeting An issue we'd like to discuss as a team to make progress labels May 1, 2024
@philwebb philwebb added this to the General Backlog milestone May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant