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 Cases for Add Datasource from YAML #1134

Open
shekhar316 opened this issue Mar 26, 2024 · 0 comments
Open

Test Cases for Add Datasource from YAML #1134

shekhar316 opened this issue Mar 26, 2024 · 0 comments
Assignees
Labels
kruize-local Tag for mentioning all the PR's and issues raised which covers the kruize local monitoring usecase remote_monitoring test

Comments

@shekhar316
Copy link
Contributor

shekhar316 commented Mar 26, 2024

Add datasource from yaml, details would be as below:

datasource : {
                        "name": "prometheus1",
      			"provider": "prometheus",
     			"serviceName": "prometheus-k8s-0",
   	   		"namespace": "monitoring",
   	   		"url": ""
}

Positive test scenarios for addDataSource:

  • Valid data source without serviceName and namespace, including URL.
  • Valid data source without URL, including serviceName and namespace.

Negative test scenarios for addDataSource:

  • Unsupported data source provider..
  • Data source already exists.
  • Data source contains both URL and serviceName.
  • Not reachable data source URL.
  • Combination of valid and invalid datasources in JSON.
  • Invalid path of JSON file containing datasource.
  • Missing fields in JSON object
@shekhar316 shekhar316 added local_monitoring kruize-local Tag for mentioning all the PR's and issues raised which covers the kruize local monitoring usecase labels Mar 26, 2024
@shekhar316 shekhar316 self-assigned this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kruize-local Tag for mentioning all the PR's and issues raised which covers the kruize local monitoring usecase remote_monitoring test
Projects
Status: No status
Development

No branches or pull requests

2 participants