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-2947: Allow Some /metadata Requests to Fail #27

Conversation

emichaud998
Copy link
Collaborator

Summary

Allow for some endpoints to fail the /metadata request without failing the whole system. Some endpoint lists have so many endpoints that at any given time some might be down because they have been decommissioned since the list was published, and that isn't a sign of nonconformance on the publishers part. This PR adds an input that allows the user to select between 3 options for testing endpoint availability:

  • All endpoints that are tested need to be available to pass
  • At least 1 endpoint that is tested needs to be available to pass
  • No endpoints that are tested need to be available to pass

@emichaud998 emichaud998 self-assigned this Aug 14, 2024
@emichaud998 emichaud998 requested review from arscan and removed request for arscan August 30, 2024 18:05
@emichaud998 emichaud998 changed the base branch from main to FI-2945_Service_Base_URL_Refactor_Tests August 30, 2024 18:21
@emichaud998 emichaud998 changed the base branch from FI-2945_Service_Base_URL_Refactor_Tests to FI-2946_Input_Limit_Endpoints August 30, 2024 18:23
Copy link
Contributor

@arscan arscan left a comment

Choose a reason for hiding this comment

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

I think you'll need to fix that issue with the 'get' not being protected within the warning before this can go in.

One other minor thing besides the inline comments, with this in, we may want to just update the description of the 'availability limit' to say something like this first "In the case where the Endpoint Availability Success Rate is 'All', "

Copy link
Contributor

@arscan arscan left a comment

Choose a reason for hiding this comment

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

You updates seem to work to me!

@emichaud998 emichaud998 force-pushed the FI-2947_Allow_Some_Metadata_Request_Failure branch from b20a01a to 3165e8d Compare September 6, 2024 21:27
@emichaud998 emichaud998 merged commit e4f73e5 into FI-2946_Input_Limit_Endpoints Sep 6, 2024
emichaud998 added a commit that referenced this pull request Sep 6, 2024
* Add input to allow user to select if some metadata requests can fail and still pass the test

* Fix issue with get not being protected and update endpoint availability limit description
emichaud998 added a commit that referenced this pull request Sep 6, 2024
* Add input to limit the numeber of endpoints that Inferno will check for availability

* Remove line used for testing purposes

* Clean up code and add additional info message

* FI-2947: Allow Some /metadata Requests to Fail (#27)

* Add input to allow user to select if some metadata requests can fail and still pass the test

* Fix issue with get not being protected and update endpoint availability limit description

* Fix problems after rebase

* Fix spelling typo
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