Then the health endpoint should show the component "db"

Assert that the health endpoint shows, or does not show, a component to this session ("db", "diskSpace", "ping"). The app shows the components only to the accounts it allows (management.endpoint.health.show-details=when-authorized with management.endpoint.health.roles).

Examples

Then the health endpoint should show the component "db"
Then the health endpoint should not show the component "db"
And the health endpoint should show the component "diskSpace"
Then the health endpoint should show the component "ping"
But the health endpoint should not show the component "diskSpace"

Pattern

Then(/^the health endpoint should( not)* show the component "([^"]*)"$/, …)

Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.