Skip to content

Commit

Permalink
Added test for DELETE /_plugins/_observability/object. (#718)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Dec 10, 2024
1 parent b89cf13 commit 2539457
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions tests/default/observability/object.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,60 @@ chapters:
method: DELETE
parameters:
object_id: test_object
- synopsis: Create another observability object.
path: /_plugins/_observability/object
method: POST
request:
payload:
objectId: test_object
operationalPanel:
name: test_panel
visualizations: []
timeRange:
from: now-1h
to: now
queryFilter:
query: ''
language: ppl
applicationId: test_app
savedVisualization:
name: viz1
description: desc1
query: ''
type: line
selected_date_range:
start: now-1d
end: now
text: Last 24 hours
selected_timestamp:
name: timestamp
type: time
selected_fields:
text: field1
tokens:
- name: field1
type: text
savedQuery:
name: query1
description: desc1
query: ''
selected_date_range:
start: now-1d
end: now
text: Last 24 hours
selected_timestamp:
name: timestamp
type: time
selected_fields:
text: field1
tokens:
- name: field1
type: text
- synopsis: Delete an observability object (query string).
path: /_plugins/_observability/object
method: DELETE
parameters:
objectId: test_object
epilogues:
- path: /_plugins/_observability/object/{object_id}
method: DELETE
Expand Down

0 comments on commit 2539457

Please sign in to comment.