Skip to content

Commit 44247b3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[monitors] Avoid inconsistent result in production for user templates (DataDog#3457)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 9a605b2 commit 44247b3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/scenarios/features/v2/monitors.feature

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ Feature: Monitors
241241
And operation "ListMonitorUserTemplates" enabled
242242
When the request is sent
243243
Then the response status is 200 OK
244-
And the response "data" has length 1
244+
And the response "data" has item with field "type" with value "monitor-user-template"
245+
And the response "data" has item with field "id" with value "{{ monitor_user_template.data.id }}"
246+
And the response "data" has item with field "attributes.description" with value "It's a threshold"
247+
And the response "data" has item with field "attributes.monitor_definition.message" with value "cats"
245248

246249
@skip-validation @team:DataDog/monitor-app
247250
Scenario: Update a monitor notification rule returns "Bad Request" response

0 commit comments

Comments
 (0)