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

FI-2468: Enable different test results in resume_test_route #446

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

tstrass
Copy link
Contributor

@tstrass tstrass commented Feb 6, 2024

Summary

This allows different URLs to trigger different test results for a waiting test by adding keyword param result to resume_test_route.

Testing Guidance

Run the demo suite Wait Group and test the various URLs.

@tstrass tstrass self-assigned this Feb 6, 2024
@@ -140,6 +140,18 @@ def pass_waiting_result(result_id, message = nil)
update(result_id, result: 'pass', result_message: message)
end

def fail_waiting_result(result_id, message = nil)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should replace all these with a generic update_waiting_result method. It looks like the existing pass_waiting_result and cancel_waiting_result were only used in one place, so it should be an easy change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

80b77b8 While at it, I renamed the method to update_result since its behavior is not specific to a waiting result

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (fc90518) 77.29% compared to head (80b77b8) 77.32%.

Files Patch % Lines
.../inferno/apps/web/controllers/test_runs/destroy.rb 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #446      +/-   ##
==========================================
+ Coverage   77.29%   77.32%   +0.02%     
==========================================
  Files         225      225              
  Lines       11215    11224       +9     
  Branches     1053     1053              
==========================================
+ Hits         8669     8679      +10     
+ Misses       1945     1944       -1     
  Partials      601      601              
Flag Coverage Δ
backend 93.89% <93.75%> (+0.04%) ⬆️
frontend 70.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@tstrass tstrass merged commit 4f765d2 into main Feb 8, 2024
10 checks passed
@tstrass tstrass deleted the resume_test_route_result_type branch February 8, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants