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

refactor(core): Use a rest controller for status endpoints #388

Merged
merged 5 commits into from
Jun 24, 2019
Merged

refactor(core): Use a rest controller for status endpoints #388

merged 5 commits into from
Jun 24, 2019

Conversation

ezimanyi
Copy link
Contributor

  • test(core): Update tests to test statusHandler

    The status endpoint tests are currently testing AllStatusEndpoint and InstanceStatusEndpoint which are pass-through classes that will be removed; update the tests to directly test StatusHandler.

  • refactor(core): Use a rest controller for status endpoints

    The Endpoint classes that are used to implement the status endpoint have significantly changed in Spring Boot 2. Instead of creating and exposing an endpoint, just use a rest controller.

The status endpoint tests are currently testing AllStatusEndpoint and
InstanceStatusEndpoint which are pass-through classes that will be
removed; update the tests to directly test StatusHandler.
The Endpoint classes that are used to implement the status endpoint
have significantly changed in Spring Boot 2. Instead of creating and
exposing an endpoint, just use a rest controller.
Copy link
Contributor

@maggieneterval maggieneterval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔚 👉

The prior commit moved everything out of the endpoints package into
other packages, so we should remove it from the component scan.
Copy link

@duftler duftler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ezimanyi ezimanyi merged commit e04da7d into spinnaker:master Jun 24, 2019
@ezimanyi ezimanyi deleted the refactor-status-endpoint branch June 24, 2019 15:10
opsmxdemo pushed a commit to OpsMx/rosco that referenced this pull request Sep 15, 2020
…#388)

* test(core): Update tests to test statusHandler

The status endpoint tests are currently testing AllStatusEndpoint and
InstanceStatusEndpoint which are pass-through classes that will be
removed; update the tests to directly test StatusHandler.

* refactor(core): Use a rest controller for status endpoints

The Endpoint classes that are used to implement the status endpoint
have significantly changed in Spring Boot 2. Instead of creating and
exposing an endpoint, just use a rest controller.

* fix(core): Remove package from componentscan

The prior commit moved everything out of the endpoints package into
other packages, so we should remove it from the component scan.
opsmxdemo pushed a commit to OpsMx/rosco that referenced this pull request Sep 16, 2020
…#388)

* test(core): Update tests to test statusHandler

The status endpoint tests are currently testing AllStatusEndpoint and
InstanceStatusEndpoint which are pass-through classes that will be
removed; update the tests to directly test StatusHandler.

* refactor(core): Use a rest controller for status endpoints

The Endpoint classes that are used to implement the status endpoint
have significantly changed in Spring Boot 2. Instead of creating and
exposing an endpoint, just use a rest controller.

* fix(core): Remove package from componentscan

The prior commit moved everything out of the endpoints package into
other packages, so we should remove it from the component scan.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants