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

Refactored the opts into a function & added a back off strategy #1187

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

seanconroy2021
Copy link
Contributor

@seanconroy2021 seanconroy2021 commented Dec 5, 2023

Add Backoff Strategy to Application Snapshot Handling Simplified the codebase by centralizing the creation of options into a single function. Enhanced the options configuration by adding a backoff strategy with default parameters.

A new mock HttpTransportTimeoutFailure has been added to test the backoff strategy under network failure scenarios. Resolves: RHTAPBUGS-960
Signed-off-by: Sean Conroy [email protected]

Additionally, a new mock, `HttpTransportTimeoutFailure`, has been implemented for testing the backoff strategy in various scenarios. The test case `TestApplicationSnapshotImage_ValidateImageAccess` has been updated to include scenarios where retry mechanisms are triggered and subsequently pass.
Resloves: RHTAPBUGS-960
Signed-off-by: Sean Conroy [email protected]

Add Backoff Strategy to Application Snapshot Handling
Simplified the codebase by centralizing the creation of options into a single function. Enhanced the options configuration by adding a backoff strategy with default parameters.

A new mock `HttpTransportTimeoutFailure` has been added to test the backoff strategy under network failure scenarios.
Resolves: RHTAPBUGS-960
Signed-off-by: Sean Conroy [email protected]
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Merging #1187 (cb28ad8) into main (a7dd1fa) will decrease coverage by 0.01%.
Report is 5 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1187      +/-   ##
==========================================
- Coverage   84.32%   84.31%   -0.01%     
==========================================
  Files          67       67              
  Lines        5341     5338       -3     
==========================================
- Hits         4504     4501       -3     
  Misses        837      837              
Flag Coverage Δ
acceptance 69.19% <100.00%> (-0.02%) ⬇️
generative 4.31% <ø> (ø)
integration 18.10% <ø> (ø)
unit 76.45% <100.00%> (-0.02%) ⬇️

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

Files Coverage Δ
...ation_snapshot_image/application_snapshot_image.go 73.22% <100.00%> (-0.27%) ⬇️

Copy link
Member

@zregvart zregvart left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@robnester-rh robnester-rh left a comment

Choose a reason for hiding this comment

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

LGTM

@seanconroy2021 seanconroy2021 merged commit ce1eae9 into enterprise-contract:main Dec 7, 2023
11 checks passed
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.

3 participants