Skip to content

Commit b0d250d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix spammy casette for Workflow Automation (#2574)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 293b577 commit b0d250d

21 files changed

+47
-47
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-27 15:21:04.559526",
8-
"spec_repo_commit": "97968943"
7+
"regenerated": "2025-05-27 17:12:13.841874",
8+
"spec_repo_commit": "ed439f7c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 15:21:04.576370",
13-
"spec_repo_commit": "97968943"
12+
"regenerated": "2025-05-27 17:12:13.857049",
13+
"spec_repo_commit": "ed439f7c"
1414
}
1515
}
1616
}

examples/v2/workflow-automation/CreateWorkflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
env=ConnectionEnvEnv.DEFAULT,
4646
),
4747
],
48-
handle="my-handle",
4948
input_schema=InputSchema(
5049
parameters=[
5150
InputSchemaParameters(

examples/v2/workflow-automation/UpdateWorkflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
env=ConnectionEnvEnv.DEFAULT,
5050
),
5151
],
52-
handle="my-handle",
5352
input_schema=InputSchema(
5453
parameters=[
5554
InputSchemaParameters(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:32.931Z
1+
2025-05-26T17:23:42.973Z

tests/v2/cassettes/test_scenarios/test_create_a_workflow_returns_bad_request_response.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
response:
1313
body:
1414
string: '{"errors":[{"detail":"workflow description exceeds size limit of [300]
15-
characters"}]}'
15+
characters"},{"detail":"spec is invalid"},{"detail":"no trigger found. At
16+
least one trigger is required."}]}'
1617
headers:
1718
content-type:
1819
- application/vnd.api+json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:33.114Z
1+
2025-05-26T17:23:43.084Z

tests/v2/cassettes/test_scenarios/test_create_a_workflow_returns_successfully_created_a_workflow_response.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"A sample workflow.","name":"Example
4-
Workflow","published":true,"spec":{"connectionEnvs":[{"connections":[{"connectionId":"11111111-1111-1111-1111-111111111111","label":"INTEGRATION_DATADOG"}],"env":"default"}],"handle":"my-handle","inputSchema":{"parameters":[{"defaultValue":"default","name":"input","type":"STRING"}]},"outputSchema":{"parameters":[{"name":"output","type":"ARRAY_OBJECT","value":"outputValue"}]},"steps":[{"actionId":"com.datadoghq.dd.monitor.listMonitors","connectionLabel":"INTEGRATION_DATADOG","name":"Step1","outboundEdges":[{"branchName":"main","nextStepName":"Step2"}],"parameters":[{"name":"tags","value":"service:monitoring"}]},{"actionId":"com.datadoghq.core.noop","name":"Step2"}],"triggers":[{"monitorTrigger":{"rateLimit":{"count":1,"interval":"3600s"}},"startStepNames":["Step1"]},{"githubWebhookTrigger":{},"startStepNames":["Step1"]}]},"tags":["team:infra","service:monitoring","foo:bar"]},"type":"workflows"}}'
4+
Workflow","published":true,"spec":{"connectionEnvs":[{"connections":[{"connectionId":"11111111-1111-1111-1111-111111111111","label":"INTEGRATION_DATADOG"}],"env":"default"}],"inputSchema":{"parameters":[{"defaultValue":"default","name":"input","type":"STRING"}]},"outputSchema":{"parameters":[{"name":"output","type":"ARRAY_OBJECT","value":"outputValue"}]},"steps":[{"actionId":"com.datadoghq.dd.monitor.listMonitors","connectionLabel":"INTEGRATION_DATADOG","name":"Step1","outboundEdges":[{"branchName":"main","nextStepName":"Step2"}],"parameters":[{"name":"tags","value":"service:monitoring"}]},{"actionId":"com.datadoghq.core.noop","name":"Step2"}],"triggers":[{"monitorTrigger":{"rateLimit":{"count":1,"interval":"3600s"}},"startStepNames":["Step1"]},{"githubWebhookTrigger":{},"startStepNames":["Step1"]}]},"tags":["team:infra","service:monitoring","foo:bar"]},"type":"workflows"}}'
55
headers:
66
accept:
77
- application/json
@@ -11,8 +11,8 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v2/workflows
1212
response:
1313
body:
14-
string: '{"data":{"id":"cb8dd95a-1463-495d-99d6-95efcd86e74e","type":"workflows","attributes":{"createdAt":"2025-02-04T04:58:33.224986Z","description":"A
15-
sample workflow.","name":"Example Workflow","published":true,"spec":{"triggers":[{"startStepNames":["Step1"],"monitorTrigger":{"rateLimit":{"count":1,"interval":"3600s"}}},{"startStepNames":["Step1"],"githubWebhookTrigger":{}}],"steps":[{"name":"Step1","actionId":"com.datadoghq.dd.monitor.listMonitors","connectionLabel":"INTEGRATION_DATADOG","parameters":[{"name":"tags","value":"service:monitoring"}],"outboundEdges":[{"nextStepName":"Step2","branchName":"main"}]},{"name":"Step2","actionId":"com.datadoghq.core.noop"}],"handle":"my-handle","connectionEnvs":[{"env":"default","connections":[{"connectionId":"11111111-1111-1111-1111-111111111111","label":"INTEGRATION_DATADOG"}]}],"inputSchema":{"parameters":[{"name":"input","type":"STRING","defaultValue":"default"}]},"outputSchema":{"parameters":[{"name":"output","type":"ARRAY_OBJECT","value":"outputValue"}]}},"tags":["foo:bar","team:infra","service:monitoring"],"updatedAt":"2025-02-04T04:58:33.224986Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
14+
string: '{"data":{"id":"c850935f-15fc-4e5b-8903-d68066c5343a","type":"workflows","attributes":{"createdAt":"2025-05-26T17:23:43.255617Z","description":"A
15+
sample workflow.","name":"Example Workflow","published":true,"spec":{"triggers":[{"startStepNames":["Step1"],"monitorTrigger":{"rateLimit":{"count":1,"interval":"3600s"}}},{"startStepNames":["Step1"],"githubWebhookTrigger":{}}],"steps":[{"name":"Step1","actionId":"com.datadoghq.dd.monitor.listMonitors","connectionLabel":"INTEGRATION_DATADOG","parameters":[{"name":"tags","value":"service:monitoring"}],"outboundEdges":[{"nextStepName":"Step2","branchName":"main"}]},{"name":"Step2","actionId":"com.datadoghq.core.noop"}],"connectionEnvs":[{"env":"default","connections":[{"connectionId":"11111111-1111-1111-1111-111111111111","label":"INTEGRATION_DATADOG"}]}],"inputSchema":{"parameters":[{"name":"input","type":"STRING","defaultValue":"default"}]},"outputSchema":{"parameters":[{"name":"output","type":"ARRAY_OBJECT","value":"outputValue"}]}},"tags":["foo:bar","service:monitoring","team:infra"],"updatedAt":"2025-05-26T17:23:43.255617Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
1616
headers:
1717
content-type:
1818
- application/vnd.api+json
@@ -25,7 +25,7 @@ interactions:
2525
accept:
2626
- '*/*'
2727
method: DELETE
28-
uri: https://api.datadoghq.com/api/v2/workflows/cb8dd95a-1463-495d-99d6-95efcd86e74e
28+
uri: https://api.datadoghq.com/api/v2/workflows/c850935f-15fc-4e5b-8903-d68066c5343a
2929
response:
3030
body:
3131
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:33.338Z
1+
2025-05-26T17:23:43.439Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:33.426Z
1+
2025-05-26T17:23:43.503Z

tests/v2/cassettes/test_scenarios/test_delete_an_existing_workflow_returns_successfully_deleted_a_workflow_response.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/workflows
1111
response:
1212
body:
13-
string: '{"data":{"id":"94300e37-bf51-498b-b56b-83d17ef45e6b","type":"workflows","attributes":{"createdAt":"2025-02-04T04:58:33.538848Z","description":"","name":"Cassette
14-
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-02-04T04:58:33.538848Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
13+
string: '{"data":{"id":"8b9af60d-3521-4ed0-85b2-8e2ab2131e58","type":"workflows","attributes":{"createdAt":"2025-05-26T17:23:43.642375Z","description":"","name":"Cassette
14+
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-05-26T17:23:43.642375Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
1515
headers:
1616
content-type:
1717
- application/vnd.api+json
@@ -24,7 +24,7 @@ interactions:
2424
accept:
2525
- '*/*'
2626
method: DELETE
27-
uri: https://api.datadoghq.com/api/v2/workflows/94300e37-bf51-498b-b56b-83d17ef45e6b
27+
uri: https://api.datadoghq.com/api/v2/workflows/8b9af60d-3521-4ed0-85b2-8e2ab2131e58
2828
response:
2929
body:
3030
string: ''
@@ -38,7 +38,7 @@ interactions:
3838
accept:
3939
- '*/*'
4040
method: DELETE
41-
uri: https://api.datadoghq.com/api/v2/workflows/94300e37-bf51-498b-b56b-83d17ef45e6b
41+
uri: https://api.datadoghq.com/api/v2/workflows/8b9af60d-3521-4ed0-85b2-8e2ab2131e58
4242
response:
4343
body:
4444
string: '{"errors":[{"detail":"workflow not found"}]}'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:33.693Z
1+
2025-05-26T17:23:43.912Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:33.759Z
1+
2025-05-26T17:23:43.998Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:33.829Z
1+
2025-05-26T17:23:44.094Z

tests/v2/cassettes/test_scenarios/test_get_an_existing_workflow_returns_successfully_got_a_workflow_response.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/workflows
1111
response:
1212
body:
13-
string: '{"data":{"id":"6ffa14c3-816b-4463-9386-cb8eb5b73438","type":"workflows","attributes":{"createdAt":"2025-02-04T04:58:33.952654Z","description":"","name":"Cassette
14-
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-02-04T04:58:33.952654Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
13+
string: '{"data":{"id":"dec8dfd0-2031-480a-90ce-4e9179b22793","type":"workflows","attributes":{"createdAt":"2025-05-26T17:23:44.222906Z","description":"","name":"Cassette
14+
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-05-26T17:23:44.222906Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
1515
headers:
1616
content-type:
1717
- application/vnd.api+json
@@ -24,11 +24,11 @@ interactions:
2424
accept:
2525
- application/json
2626
method: GET
27-
uri: https://api.datadoghq.com/api/v2/workflows/6ffa14c3-816b-4463-9386-cb8eb5b73438
27+
uri: https://api.datadoghq.com/api/v2/workflows/dec8dfd0-2031-480a-90ce-4e9179b22793
2828
response:
2929
body:
30-
string: '{"data":{"id":"6ffa14c3-816b-4463-9386-cb8eb5b73438","type":"workflows","attributes":{"createdAt":"2025-02-04T04:58:33.952654Z","description":"","name":"Cassette
31-
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-02-04T04:58:33.952654Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
30+
string: '{"data":{"id":"dec8dfd0-2031-480a-90ce-4e9179b22793","type":"workflows","attributes":{"createdAt":"2025-05-26T17:23:44.222906Z","description":"","name":"Cassette
31+
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-05-26T17:23:44.222906Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
3232
headers:
3333
content-type:
3434
- application/vnd.api+json
@@ -41,7 +41,7 @@ interactions:
4141
accept:
4242
- '*/*'
4343
method: DELETE
44-
uri: https://api.datadoghq.com/api/v2/workflows/6ffa14c3-816b-4463-9386-cb8eb5b73438
44+
uri: https://api.datadoghq.com/api/v2/workflows/dec8dfd0-2031-480a-90ce-4e9179b22793
4545
response:
4646
body:
4747
string: ''
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:34.162Z
1+
2025-05-26T17:23:44.483Z

tests/v2/cassettes/test_scenarios/test_update_an_existing_workflow_returns_bad_request_response.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/workflows
1111
response:
1212
body:
13-
string: '{"data":{"id":"748a9d1b-a9a5-415b-9360-3d8374329957","type":"workflows","attributes":{"createdAt":"2025-02-04T04:58:34.263325Z","description":"","name":"Cassette
14-
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-02-04T04:58:34.263325Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
13+
string: '{"data":{"id":"b40d1eb8-5741-474c-a137-897f73527a77","type":"workflows","attributes":{"createdAt":"2025-05-26T17:23:44.603489Z","description":"","name":"Cassette
14+
Workflow x-given","published":true,"spec":{"triggers":[{"startStepNames":["No_op"],"workflowTrigger":{}}],"steps":[{"name":"No_op","actionId":"com.datadoghq.core.noop"}]},"tags":[],"updatedAt":"2025-05-26T17:23:44.603489Z"},"relationships":{"creator":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}},"owner":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"users"}}}}}'
1515
headers:
1616
content-type:
1717
- application/vnd.api+json
@@ -27,11 +27,12 @@ interactions:
2727
content-type:
2828
- application/json
2929
method: PATCH
30-
uri: https://api.datadoghq.com/api/v2/workflows/748a9d1b-a9a5-415b-9360-3d8374329957
30+
uri: https://api.datadoghq.com/api/v2/workflows/b40d1eb8-5741-474c-a137-897f73527a77
3131
response:
3232
body:
3333
string: '{"errors":[{"detail":"workflow description exceeds size limit of [300]
34-
characters"}]}'
34+
characters"},{"detail":"spec is invalid"},{"detail":"no trigger found. At
35+
least one trigger is required."}]}'
3536
headers:
3637
content-type:
3738
- application/vnd.api+json
@@ -44,7 +45,7 @@ interactions:
4445
accept:
4546
- '*/*'
4647
method: DELETE
47-
uri: https://api.datadoghq.com/api/v2/workflows/748a9d1b-a9a5-415b-9360-3d8374329957
48+
uri: https://api.datadoghq.com/api/v2/workflows/b40d1eb8-5741-474c-a137-897f73527a77
4849
response:
4950
body:
5051
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:34.413Z
1+
2025-05-26T17:23:44.853Z

tests/v2/cassettes/test_scenarios/test_update_an_existing_workflow_returns_not_found_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"data":{"attributes":{"description":"A sample workflow.","name":"Example
4-
Workflow","published":true,"spec":{"connectionEnvs":[{"connections":[{"connectionId":"11111111-1111-1111-1111-111111111111","label":"INTEGRATION_DATADOG"}],"env":"default"}],"handle":"my-handle","inputSchema":{"parameters":[{"defaultValue":"default","name":"input","type":"STRING"}]},"outputSchema":{"parameters":[{"name":"output","type":"ARRAY_OBJECT","value":"outputValue"}]},"steps":[{"actionId":"com.datadoghq.dd.monitor.listMonitors","connectionLabel":"INTEGRATION_DATADOG","name":"Step1","outboundEdges":[{"branchName":"main","nextStepName":"Step2"}],"parameters":[{"name":"tags","value":"service:monitoring"}]},{"actionId":"com.datadoghq.core.noop","name":"Step2"}],"triggers":[{"monitorTrigger":{"rateLimit":{"count":1,"interval":"3600s"}},"startStepNames":["Step1"]},{"githubWebhookTrigger":{},"startStepNames":["Step1"]}]},"tags":["team:infra","service:monitoring","foo:bar"]},"id":"22222222-2222-2222-2222-222222222222","type":"workflows"}}'
4+
Workflow","published":true,"spec":{"connectionEnvs":[{"connections":[{"connectionId":"11111111-1111-1111-1111-111111111111","label":"INTEGRATION_DATADOG"}],"env":"default"}],"inputSchema":{"parameters":[{"defaultValue":"default","name":"input","type":"STRING"}]},"outputSchema":{"parameters":[{"name":"output","type":"ARRAY_OBJECT","value":"outputValue"}]},"steps":[{"actionId":"com.datadoghq.dd.monitor.listMonitors","connectionLabel":"INTEGRATION_DATADOG","name":"Step1","outboundEdges":[{"branchName":"main","nextStepName":"Step2"}],"parameters":[{"name":"tags","value":"service:monitoring"}]},{"actionId":"com.datadoghq.core.noop","name":"Step2"}],"triggers":[{"monitorTrigger":{"rateLimit":{"count":1,"interval":"3600s"}},"startStepNames":["Step1"]},{"githubWebhookTrigger":{},"startStepNames":["Step1"]}]},"tags":["team:infra","service:monitoring","foo:bar"]},"id":"22222222-2222-2222-2222-222222222222","type":"workflows"}}'
55
headers:
66
accept:
77
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-04T04:58:34.496Z
1+
2025-05-26T17:23:44.981Z

0 commit comments

Comments
 (0)