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 Logs query SDK #19254

Closed
28 of 32 tasks
rakshith91 opened this issue Jun 14, 2021 · 0 comments
Closed
28 of 32 tasks

Test cases for Logs query SDK #19254

rakshith91 opened this issue Jun 14, 2021 · 0 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Monitor Monitor, Monitor Ingestion, Monitor Query MQ This issue is part of a "milestone of quality" initiative.

Comments

@rakshith91
Copy link
Contributor

rakshith91 commented Jun 14, 2021

Logs query

Client test

  • Every request should include user-agent header in the expected format
  • Test distributed tracing instrumentation
  • Test support for different cloud environments*

Single query

  • Test a single query - happy case
  • Test a single query with partial success (returns 200 response but response body has tables + error)
  • Test a single query that returns an error (non-200 response)
  • Test all column data types are handled
  • Test mapping a table row into a strongly typed model
  • Test query for specific time ranges
    • Start and end datetime range (2021-06-08/2021-06-09)
    • Start datetime and end duration (2021-06-09/PT3H)
    • Start duration and end datetime (PT3H/2021-06-09)
    • Duration (PT12H)
    • No time range (query full dataset)
  • Test query that returns statistics
  • Test query that returns visualization data
  • Test query that requires > 3m to run and set server timeout value to 10 m
  • Test query that uses additional workspaces
    • Azure resource id
    • Workspace name
    • Workspace id
    • Fully qualified resource id

Batch query

  • Test a batch request - happy case
  • Test a batch request with error (server returns non-200 response)
  • Test a batch request with partial success (some queries in batch fail)
  • Test a batch request with individual queries returning partial success (single query in a batch has status 200 with error in the result)
  • Test a batch request which contains a query that requires > 3m to run and set the server timeout value to 10 m for that query
  • Test a batch request that returns statistics (for some or all queries in the batch)
  • Test a batch request that returns visualization data (for some or all queries in the batch)
  • Test a batch request that uses different workspaces for different queries in the batch
  • Test a batch request that uses additional workspaces for a query in the batch
  • Test a batch request that has n queries (n > 200) in a batch (service supports up to 200 requests in 30-second window) to validate server returning 429 response for n - 200 queries and successful response for first 200 queries.
@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 14, 2021
@rakshith91 rakshith91 added this to the [2021] July milestone Jun 14, 2021
@rakshith91 rakshith91 self-assigned this Jun 14, 2021
@rakshith91 rakshith91 added Client This issue points to a problem in the data-plane of the library. Monitor - Log labels Jun 14, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 14, 2021
@rakshith91 rakshith91 modified the milestones: [2021] July, [2021] August Jun 27, 2021
@rakshith91 rakshith91 added the MQ This issue is part of a "milestone of quality" initiative. label Nov 16, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
@scottaddie scottaddie added Monitor Monitor, Monitor Ingestion, Monitor Query and removed Monitor - Query labels Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Monitor Monitor, Monitor Ingestion, Monitor Query MQ This issue is part of a "milestone of quality" initiative.
Projects
None yet
Development

No branches or pull requests

2 participants