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

Validate that available_api_version contains base_url #1673

Closed
wants to merge 2 commits into from

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Jun 20, 2023

Closes #1672.

This works for now but raises the question of whether an API can link to an entirely different base_url in its available_api_versions section...

@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #1673 (4cfda4c) into master (945b339) will decrease coverage by 0.01%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##           master    #1673      +/-   ##
==========================================
- Coverage   90.90%   90.90%   -0.01%     
==========================================
  Files          74       74              
  Lines        4608     4616       +8     
==========================================
+ Hits         4189     4196       +7     
- Misses        419      420       +1     
Flag Coverage Δ
project 90.90% <87.50%> (-0.01%) ⬇️
validator 90.79% <87.50%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
optimade/validator/validator.py 83.80% <87.50%> (+0.05%) ⬆️

@ml-evs ml-evs closed this Jul 22, 2023
@ml-evs
Copy link
Member Author

ml-evs commented Jul 22, 2023

Current implementation is not general enough to be useful.

@blokhin
Copy link
Member

blokhin commented Aug 23, 2023

@ml-evs what was missing?

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.

Validator should follow available_api_version links and check they have info endpoints
2 participants