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

Add health check for redmine services #410

Merged

Conversation

Art4
Copy link
Collaborator

@Art4 Art4 commented Jul 3, 2024

Working with Behat I've sometimes forget to start the docker services. If I run the Behat tests I see all tests failing because of the missing redmine services.

This PR adds a health check for the Redmine server running upfront the Behat tests. The tests wont start if the Redmine service or database isn't accessible and a proper error message will be shown. It also simplifies the procedure to add or update the Redmine server versions for Behat tests.

@Art4 Art4 added this to the v2.7.0 milestone Jul 3, 2024
@Art4 Art4 self-assigned this Jul 3, 2024
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.50%. Comparing base (35bb710) to head (f93c4fc).
Report is 4 commits behind head on v2.x.

Additional details and impacted files
@@            Coverage Diff            @@
##               v2.x     #410   +/-   ##
=========================================
  Coverage     98.49%   98.50%           
- Complexity      619      623    +4     
=========================================
  Files            29       29           
  Lines          1866     1876   +10     
=========================================
+ Hits           1838     1848   +10     
  Misses           28       28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Art4 Art4 requested a review from kbsali July 3, 2024 10:57
Copy link
Owner

@kbsali kbsali left a comment

Choose a reason for hiding this comment

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

brillant 💯

@Art4 Art4 merged commit a3c0dd7 into kbsali:v2.x Jul 3, 2024
12 checks passed
@Art4 Art4 deleted the add-redmine-server-health-check-for-redmine-services branch July 3, 2024 13:00
Art4 added a commit to Art4/php-redmine-api that referenced this pull request Jul 5, 2024
Pinging the redmine server for the health check create a new AnonymousUser with id 4

refs kbsali#410
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants