From 2539457543e9f688affe47cccb3fafa7783aab32 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Tue, 10 Dec 2024 14:39:11 -0500 Subject: [PATCH] Added test for DELETE /_plugins/_observability/object. (#718) Signed-off-by: dblock --- tests/default/observability/object.yaml | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/tests/default/observability/object.yaml b/tests/default/observability/object.yaml index 16f01f77..cb0f0884 100644 --- a/tests/default/observability/object.yaml +++ b/tests/default/observability/object.yaml @@ -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