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

Template healthcheck + integration test improvements and fixes #3616 #3822

Merged
merged 13 commits into from
Feb 3, 2025

Conversation

@de-jcup de-jcup self-assigned this Jan 24, 2025
- junit4 rule logic moved to IntegrationTestSupport class
- junit4 rule uses now the integration test support
- junit5 extension IntegrationTestExtension created
  + WithScenario annotation
- junit5 extension uses also IntegrationTestSupport class
feature-3616-healthcheck-for-templates-and-assets
@de-jcup de-jcup force-pushed the feature-3616-healthcheck-for-templates-and-assets branch from c6e189f to fb17a08 Compare January 27, 2025 15:33
@de-jcup de-jcup changed the title initial template healthcheck implementation #3616 Template healthcheck + integration test improvements and fixes #3616 Jan 28, 2025
- fixed failing TemplateRestControllerRestDocTest
- added RestDoc test for template health checks
@de-jcup de-jcup force-pushed the feature-3616-healthcheck-for-templates-and-assets branch from 31a1cde to d122960 Compare January 28, 2025 12:43
- restdoc test path problem fixed (was wrong usecase)
- template servcie + config service + repository
  added missing implementation + tests to find all project ids
  which uses a template
- Existing integration test for templates extended with healthcheck
  parts (scenario1). Has no errors in output because products do
  not support templates, so no conflict detected (correct)
- Created new test (scenario9) for templates which fails with errors
  because product does support templates...
@de-jcup de-jcup force-pushed the feature-3616-healthcheck-for-templates-and-assets branch from d122960 to 1c7578d Compare January 28, 2025 16:00


- some integration test parts were executed in normal test phase and
  failed because no server available at this time on CI builds
  The junit5 extension does now full automatically prevent
  also afterAll, afterEach, beforeAll, beforeAch methods to be
  executed when integration tests are not enabled.

- the failing Junit4 test was changed to Junit5 test which fixed
  the problem here as well.

- documented the integration tests inside coding conventions
documentation
@de-jcup de-jcup force-pushed the feature-3616-healthcheck-for-templates-and-assets branch from 4f422e7 to 495d6be Compare January 31, 2025 09:09
- integration tests now depend on cleanIntegrationTest task
  to remove old junit results (skipped results are still results
  for gradle and new output does not appear /is collected...)
@de-jcup de-jcup force-pushed the feature-3616-healthcheck-for-templates-and-assets branch from 495d6be to 1898929 Compare January 31, 2025 09:15
@de-jcup de-jcup requested a review from winzj January 31, 2025 14:45
@de-jcup de-jcup marked this pull request as ready for review January 31, 2025 14:46
Copy link
Member

@winzj winzj left a comment

Choose a reason for hiding this comment

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

Looking all good to me,

thanks for the comments in the code 🚀

- templates overview action added
- templates delete action added
- templates health check action added
- added missing template ids to DeveloperProjectDetailInformation
  class
- refactored templates health check service
  (huge method separated)
- improved parts of documentation + fix typo
@de-jcup de-jcup merged commit 70aac3e into develop Feb 3, 2025
2 checks passed
@de-jcup de-jcup deleted the feature-3616-healthcheck-for-templates-and-assets branch February 3, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment