Skip to content

Commit 8b1bbdc

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix spammy casette for Workflow Automation (#3101)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 73a768a commit 8b1bbdc

21 files changed

Lines changed: 47 additions & 47 deletions

File tree

.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:06.805088",
8-
"spec_repo_commit": "97968943"
7+
"regenerated": "2025-05-27 17:12:18.286841",
8+
"spec_repo_commit": "ed439f7c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 15:21:06.821239",
13-
"spec_repo_commit": "97968943"
12+
"regenerated": "2025-05-27 17:12:18.303167",
13+
"spec_repo_commit": "ed439f7c"
1414
}
1515
}
1616
}

examples/v2/workflow-automation/CreateWorkflow.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ func main() {
3131
Env: datadogV2.CONNECTIONENVENV_DEFAULT,
3232
},
3333
},
34-
Handle: datadog.PtrString("my-handle"),
3534
InputSchema: &datadogV2.InputSchema{
3635
Parameters: []datadogV2.InputSchemaParameters{
3736
{

examples/v2/workflow-automation/UpdateWorkflow.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ func main() {
3434
Env: datadogV2.CONNECTIONENVENV_DEFAULT,
3535
},
3636
},
37-
Handle: datadog.PtrString("my-handle"),
3837
InputSchema: &datadogV2.InputSchema{
3938
Parameters: []datadogV2.InputSchemaParameters{
4039
{
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/scenarios/cassettes/TestScenarios/v2/Feature_Workflow_Automation/Scenario_Create_a_Workflow_returns_Bad_request_response.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ interactions:
1313
url: https://api.datadoghq.com/api/v2/workflows
1414
response:
1515
body: '{"errors":[{"detail":"workflow description exceeds size limit of [300]
16-
characters"}]}'
16+
characters"},{"detail":"spec is invalid"},{"detail":"no trigger found. At least
17+
one trigger is required."}]}'
1718
code: 400
1819
duration: 0ms
1920
headers:
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/scenarios/cassettes/TestScenarios/v2/Feature_Workflow_Automation/Scenario_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: |
4-
{"data":{"attributes":{"description":"A sample workflow.","name":"Example 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+
{"data":{"attributes":{"description":"A sample workflow.","name":"Example 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
form: {}
66
headers:
77
Accept:
@@ -12,8 +12,8 @@ interactions:
1212
method: POST
1313
url: https://api.datadoghq.com/api/v2/workflows
1414
response:
15-
body: '{"data":{"id":"cb8dd95a-1463-495d-99d6-95efcd86e74e","type":"workflows","attributes":{"createdAt":"2025-02-04T04:58:33.224986Z","description":"A
16-
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"}}}}}'
15+
body: '{"data":{"id":"c850935f-15fc-4e5b-8903-d68066c5343a","type":"workflows","attributes":{"createdAt":"2025-05-26T17:23:43.255617Z","description":"A
16+
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"}}}}}'
1717
code: 201
1818
duration: 0ms
1919
headers:
@@ -28,7 +28,7 @@ interactions:
2828
- '*/*'
2929
id: 1
3030
method: DELETE
31-
url: https://api.datadoghq.com/api/v2/workflows/cb8dd95a-1463-495d-99d6-95efcd86e74e
31+
url: https://api.datadoghq.com/api/v2/workflows/c850935f-15fc-4e5b-8903-d68066c5343a
3232
response:
3333
body: ''
3434
code: 204
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/scenarios/cassettes/TestScenarios/v2/Feature_Workflow_Automation/Scenario_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
@@ -12,8 +12,8 @@ interactions:
1212
method: POST
1313
url: https://api.datadoghq.com/api/v2/workflows
1414
response:
15-
body: '{"data":{"id":"94300e37-bf51-498b-b56b-83d17ef45e6b","type":"workflows","attributes":{"createdAt":"2025-02-04T04:58:33.538848Z","description":"","name":"Cassette
16-
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"}}}}}'
15+
body: '{"data":{"id":"8b9af60d-3521-4ed0-85b2-8e2ab2131e58","type":"workflows","attributes":{"createdAt":"2025-05-26T17:23:43.642375Z","description":"","name":"Cassette
16+
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"}}}}}'
1717
code: 201
1818
duration: 0ms
1919
headers:
@@ -28,7 +28,7 @@ interactions:
2828
- '*/*'
2929
id: 1
3030
method: DELETE
31-
url: https://api.datadoghq.com/api/v2/workflows/94300e37-bf51-498b-b56b-83d17ef45e6b
31+
url: https://api.datadoghq.com/api/v2/workflows/8b9af60d-3521-4ed0-85b2-8e2ab2131e58
3232
response:
3333
body: ''
3434
code: 204
@@ -43,7 +43,7 @@ interactions:
4343
- '*/*'
4444
id: 2
4545
method: DELETE
46-
url: https://api.datadoghq.com/api/v2/workflows/94300e37-bf51-498b-b56b-83d17ef45e6b
46+
url: https://api.datadoghq.com/api/v2/workflows/8b9af60d-3521-4ed0-85b2-8e2ab2131e58
4747
response:
4848
body: '{"errors":[{"detail":"workflow not found"}]}'
4949
code: 404

0 commit comments

Comments
 (0)