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

Unit test: map between ESGF terms and STAC terms using "doctype" #7

Open
agstephens opened this issue Nov 17, 2022 · 0 comments
Open
Assignees

Comments

@agstephens
Copy link
Member

Overview

STAC talks about items and assets. These are equivalent to datasets and files in ESGF.
The client should allow the user to specify whether they are searching on items or assets by using: doctype=(item|asset)
And we should allow aliases for ESGF users, who can specify: doctype=(dataset|file)

Specific test requirements

  1. client.search(doctype="item") should return items, so it should be identical to client.search() (because item is the default)
  2. client.search(doctype="dataset") should behave the same as (1).
  3. client.search(doctype="asset") should re-route to a call to client.asset_search() and should return assets.
  4. client.search(doctype="file") should behave the same as (3).
  5. If doctype is not in the known list: ["item", "asset", "dataset", "file"] then the client should raise an Exception that explains the error.
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

No branches or pull requests

2 participants