Skip to content

Test cases for Logs query SDK #19254

Description

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.

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.MQThis issue is part of a "milestone of quality" initiative.MonitorMonitor, Monitor Ingestion, Monitor Query

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions