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

Log assertions: add assertions for log errors in HTTP tracker #1163

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Dec 26, 2024

Log assertions: add assertions for log errors in HTTP tracker.

It's using the info-hash to find the ERROR in logs. It's generated a newly random info-hash for each test.

It could have been also used a x-request-id header in the HTTP request but this solution is simpler and the chances to have an info-hash collision is very low.

It's using the info-hash to find the ERROR in logs. IT's generated a
newly random info-hash for each tests.

It could have been also used a `x-request-id` header in the HTTP request
but this solution is simpler and the chances to have an info-hash
collision is very low.
@josecelano josecelano linked an issue Dec 26, 2024 that may be closed by this pull request
@josecelano josecelano self-assigned this Dec 26, 2024
@josecelano josecelano added the Testing Checking Torrust label Dec 26, 2024
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.17%. Comparing base (2a8a114) to head (03243cb).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1163   +/-   ##
========================================
  Coverage    76.17%   76.17%           
========================================
  Files          174      174           
  Lines        11601    11601           
  Branches     11601    11601           
========================================
  Hits          8837     8837           
  Misses        2606     2606           
  Partials       158      158           

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

@josecelano josecelano requested a review from da2ce7 December 26, 2024 12:33
@josecelano josecelano changed the title Log assertions: add assertions for log errors in HTTP and UDP trackers Log assertions: add assertions for log errors in HTTP tracker Dec 26, 2024
@josecelano josecelano marked this pull request as ready for review December 26, 2024 12:41
@josecelano
Copy link
Member Author

ACK 03243cb

@josecelano josecelano merged commit e58831c into torrust:develop Dec 26, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Checking Torrust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log assertions: add assertions for log errors in HTTP tracker
1 participant