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

Test scenarios for Datasource APIs #1129

Open
shreyabiradar07 opened this issue Mar 22, 2024 · 1 comment
Open

Test scenarios for Datasource APIs #1129

shreyabiradar07 opened this issue Mar 22, 2024 · 1 comment

Comments

@shreyabiradar07
Copy link
Contributor

  1. List Datasources -> GET - /datasources

    • List all datasources
    • List datasources with name query parameter
      • /datasources?name=<datasource_name>
    • List datasources with invalid parameter value for datasource name
      • Non-existing datasource name
  2. Import Metadata -> POST - /dsmetadata

    • Importing metadata for a valid datasource to the API.
    • Post an invalid header content type
    • Post the same datasource again
    • Test with invalid values such as blank, null or an invalid value for various keys in the dsmetadata input request json
    • Validate error messages when the mandatory fields are missing
  3. List datasource metadata -> GET - /dsmetadata

    • List metadata specifying a valid datasource
    • List metadata for a datasource with parameters by specifying the following parameters:
      • /dsmetadata?datasource=<datasource_name>&verbose=false
      • /dsmetadata?datasource=<datasource_name>&verbose=true
      • /dsmetadata?datasource=<datasource_name>&cluster_name=<cluster_name>&verbose=false
      • /dsmetadata?datasource=<datasource_name>&cluster_name=<cluster_name>&verbose=true
      • /dsmetadata?datasource=<datasource_name>&cluster_name=<cluster_name>&namespace=<namespace_name>&verbose=false
      • /dsmetadata?datasource=<datasource_name>&cluster_name=<cluster_name>&namespace=<namespace_name>&verbose=true
    • List metadata with invalid parameter values for datasource, cluster_name and namespace
      • Non-existing datasource
      • Non-existing cluster_name
      • Non-existing namespace
    • List metadata without specifying any parameters
    • List metadata after creating a datasource but without importing metadata
@chandrams
Copy link
Contributor

Include these additional test scenarios:

  • List datasources with invalid parameter value for datasource name - test with empty, NULL or invalid.

  • Delete a datasource and verify if list datasources doesn't list it

  • List dsmetadata without datasource name

  • List dsmetadata with datasource and namespace but without clustername

  • List the dsmetadata for a datasource that has been deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants