From 303e553506a8e555a51c1edb8642fc8d0f192c41 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 11 Oct 2023 12:28:15 +0000 Subject: [PATCH] Regenerate client from commit 2a93785f of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 2 -- .../CreateCIAppPipelineEvent.py | 1 - .../CreateCIAppPipelineEvent_129899466.py | 1 - src/datadog_api_client/configuration.py | 1 - tests/v2/features/ci_visibility_pipelines.feature | 15 +++++---------- 6 files changed, 9 insertions(+), 19 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 011702c985..8f339b7f46 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-10 13:47:33.127844", - "spec_repo_commit": "afb48804" + "regenerated": "2023-10-11 12:26:50.870746", + "spec_repo_commit": "2a93785f" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-10 13:47:33.153228", - "spec_repo_commit": "afb48804" + "regenerated": "2023-10-11 12:26:50.888190", + "spec_repo_commit": "2a93785f" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2975fa2f44..b78d4eed8b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -19087,8 +19087,6 @@ paths: tags: - CI Visibility Pipelines x-codegen-request-body-name: body - x-unstable: '**Note**: This API endpoint is in private beta. Request access - [here](https://docs.google.com/forms/d/e/1FAIpQLSdNejCvhMbdBW5nnGly1yvmYMn2Wpj4JOI0zKIiEx6O6I2dbQ/viewform).' /api/v2/ci/pipelines/analytics/aggregate: post: description: Use this API endpoint to aggregate CI Visibility pipeline events diff --git a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.py b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.py index a90ac6ee22..0bb695017c 100644 --- a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.py +++ b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.py @@ -43,7 +43,6 @@ ) configuration = Configuration() -configuration.unstable_operations["create_ci_app_pipeline_event"] = True with ApiClient(configuration) as api_client: api_instance = CIVisibilityPipelinesApi(api_client) response = api_instance.create_ci_app_pipeline_event(body=body) diff --git a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.py b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.py index d516b53559..afe15c4784 100644 --- a/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.py +++ b/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.py @@ -38,7 +38,6 @@ ) configuration = Configuration() -configuration.unstable_operations["create_ci_app_pipeline_event"] = True with ApiClient(configuration) as api_client: api_instance = CIVisibilityPipelinesApi(api_client) response = api_instance.create_ci_app_pipeline_event(body=body) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index a3e06201d0..cab982ebd2 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -236,7 +236,6 @@ def __init__( # Keep track of unstable operations self.unstable_operations = _UnstableOperations( { - "v2.create_ci_app_pipeline_event": False, "v2.list_events": False, "v2.search_events": False, "v2.create_incident": False, diff --git a/tests/v2/features/ci_visibility_pipelines.feature b/tests/v2/features/ci_visibility_pipelines.feature index 0b9298fd31..6134cb06a5 100644 --- a/tests/v2/features/ci_visibility_pipelines.feature +++ b/tests/v2/features/ci_visibility_pipelines.feature @@ -80,40 +80,35 @@ Feature: CI Visibility Pipelines @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries Scenario: Send pipeline event returns "Bad Request" response - Given operation "CreateCIAppPipelineEvent" enabled - And new "CreateCIAppPipelineEvent" request + Given new "CreateCIAppPipelineEvent" request And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries Scenario: Send pipeline event returns "Payload Too Large" response - Given operation "CreateCIAppPipelineEvent" enabled - And new "CreateCIAppPipelineEvent" request + Given new "CreateCIAppPipelineEvent" request And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}} When the request is sent Then the response status is 413 Payload Too Large @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries Scenario: Send pipeline event returns "Request Timeout" response - Given operation "CreateCIAppPipelineEvent" enabled - And new "CreateCIAppPipelineEvent" request + Given new "CreateCIAppPipelineEvent" request And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}} When the request is sent Then the response status is 408 Request Timeout @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries Scenario: Send pipeline event returns "Request accepted for processing" response - Given operation "CreateCIAppPipelineEvent" enabled - And new "CreateCIAppPipelineEvent" request + Given new "CreateCIAppPipelineEvent" request And body with value {"data": {"attributes": {"resource": {"end": "{{ timeISO('now - 30s') }}", "level": "pipeline", "name": "Deploy to AWS", "partial_retry": false, "start": "{{ timeISO('now - 120s') }}", "status": "success", "unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", "url": "https://my-ci-provider.example/pipelines/my-pipeline/run/1","git":{"repository_url":"https://github.com/DataDog/datadog-agent","sha":"7f263865994b76066c4612fd1965215e7dcb4cd2","author_email":"john.doe@email.com"}}}, "type": "cipipeline_resource_request"}} When the request is sent Then the response status is 202 Request accepted for processing @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries Scenario: Send pipeline job event returns "Request accepted for processing" response - Given operation "CreateCIAppPipelineEvent" enabled - And new "CreateCIAppPipelineEvent" request + Given new "CreateCIAppPipelineEvent" request And body with value {"data": {"attributes": {"resource": {"end": "{{ timeISO('now - 30s') }}", "level": "job", "name": "Build image", "start": "{{ timeISO('now - 120s') }}", "status": "error", "id": "cf9456de-8b9e-4c27-aa79-27b1e78c1a33", "pipeline_unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", "pipeline_name": "Deploy to AWS", "url": "https://my-ci-provider.example/jobs/my-jobs/run/1"}}, "type": "cipipeline_resource_request"}} When the request is sent Then the response status is 202 Request accepted for processing