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

Fixing tests for accessing data from xcube server via python api #592

Merged

Conversation

AliceBalfanz
Copy link
Contributor

@AliceBalfanz AliceBalfanz commented Jan 21, 2022

This PR only fixes the tests for test_s3buckethandlers.py when serving data the classical way: one dataset per identifyer, as in examples/serve/demo/config.yml . The data access does not work yet for cubes served via DataStores like in the config examples/serve/demo/config-with-stores.yml
Checklist:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/source/*
  • Changes documented in CHANGES.md
  • AppVeyor CI passes
  • Test coverage remains or increases (target 100%)

Remember to close associated issues after merge!

Copy link
Contributor

@TonioF TonioF left a comment

Choose a reason for hiding this comment

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

I tried to review by following the steps to reproduce in the original issue. I could not reproduce it. The tests work your changes, too, though.

@AliceBalfanz
Copy link
Contributor Author

I tried to review by following the steps to reproduce in the original issue. I could not reproduce it. The tests work your changes, too, though.

If you delete your .aws (or give it a different name) then you will see the error with the old code :)

@TonioF TonioF self-requested a review January 24, 2022 14:44
Copy link
Contributor

@TonioF TonioF left a comment

Choose a reason for hiding this comment

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

Okay, I could test it now. Works fine!

Copy link
Member

@forman forman left a comment

Choose a reason for hiding this comment

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

Just tiny minor formatting issue :)

test/webapi/test_s3buckethandlers.py Outdated Show resolved Hide resolved
AliceBalfanz and others added 3 commits January 28, 2022 10:15
Co-authored-by: Norman Fomferra <norman.fomferra@brockmann-consult.de>
…s_xcube_python_api' into alicja-574-fix_server_data_access_xcube_python_api
@AliceBalfanz AliceBalfanz merged commit ca1718a into master Jan 28, 2022
@AliceBalfanz AliceBalfanz deleted the alicja-574-fix_server_data_access_xcube_python_api branch January 28, 2022 12:25
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.

None yet

3 participants