From dbdac94d633629c3ee4573b0e35224acfe7fb83c Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 15 Dec 2023 17:30:13 +0000 Subject: [PATCH] Regenerate client from commit 0285f23a of spec repo --- .apigentools-info | 8 +-- .../DeleteAzureIntegration.py | 8 +-- .../UpdateAzureIntegration.py | 8 +-- ...ure_integration_returns_ok_response.frozen | 1 + ...azure_integration_returns_ok_response.yaml | 62 +++++++++++++++++++ ...ure_integration_returns_ok_response.frozen | 1 + ...azure_integration_returns_ok_response.yaml | 62 +++++++++++++++++++ tests/v1/features/azure_integration.feature | 14 +++-- tests/v1/features/given.json | 13 ++++ 9 files changed, 159 insertions(+), 18 deletions(-) create mode 100644 tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen create mode 100644 tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml create mode 100644 tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen create mode 100644 tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml diff --git a/.apigentools-info b/.apigentools-info index 128fd5e1ab..b3213016f9 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-12-15 16:54:06.684134", - "spec_repo_commit": "358fd0af" + "regenerated": "2023-12-15 17:29:36.806700", + "spec_repo_commit": "0285f23a" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-12-15 16:54:06.731519", - "spec_repo_commit": "358fd0af" + "regenerated": "2023-12-15 17:29:36.827320", + "spec_repo_commit": "0285f23a" } } } \ No newline at end of file diff --git a/examples/v1/azure-integration/DeleteAzureIntegration.py b/examples/v1/azure-integration/DeleteAzureIntegration.py index 2388bef812..b6ecb7dae3 100644 --- a/examples/v1/azure-integration/DeleteAzureIntegration.py +++ b/examples/v1/azure-integration/DeleteAzureIntegration.py @@ -9,7 +9,7 @@ body = AzureAccount( app_service_plan_filters="key:value,filter:example", automute=True, - client_id="testc7f6-1234-5678-9101-3fcbf464test", + client_id="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", client_secret="testingx./Sw*g/Y33t..R1cH+hScMDt", container_app_filters="key:value,filter:example", cspm_enabled=True, @@ -18,10 +18,10 @@ "*", ], host_filters="key:value,filter:example", - new_client_id="new1c7f6-1234-5678-9101-3fcbf464test", - new_tenant_name="new1c44-1234-5678-9101-cc00736ftest", + new_client_id="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", + new_tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", resource_collection_enabled=True, - tenant_name="testc44-1234-5678-9101-cc00736ftest", + tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", ) configuration = Configuration() diff --git a/examples/v1/azure-integration/UpdateAzureIntegration.py b/examples/v1/azure-integration/UpdateAzureIntegration.py index 095e4a84f3..7c4eeb6c54 100644 --- a/examples/v1/azure-integration/UpdateAzureIntegration.py +++ b/examples/v1/azure-integration/UpdateAzureIntegration.py @@ -9,7 +9,7 @@ body = AzureAccount( app_service_plan_filters="key:value,filter:example", automute=True, - client_id="testc7f6-1234-5678-9101-3fcbf464test", + client_id="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", client_secret="testingx./Sw*g/Y33t..R1cH+hScMDt", container_app_filters="key:value,filter:example", cspm_enabled=True, @@ -18,10 +18,10 @@ "*", ], host_filters="key:value,filter:example", - new_client_id="new1c7f6-1234-5678-9101-3fcbf464test", - new_tenant_name="new1c44-1234-5678-9101-cc00736ftest", + new_client_id="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", + new_tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", resource_collection_enabled=True, - tenant_name="testc44-1234-5678-9101-cc00736ftest", + tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", ) configuration = Configuration() diff --git a/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen new file mode 100644 index 0000000000..23156fb06d --- /dev/null +++ b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen @@ -0,0 +1 @@ +2023-12-15T17:19:40.609Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml new file mode 100644 index 0000000000..d2af91c870 --- /dev/null +++ b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml @@ -0,0 +1,62 @@ +interactions: +- request: + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17026607-0000-0000-0000-170266078000","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17026607-0000-0000-0000-170266078000","new_tenant_name":"17026607-0000-0000-0000-170266078000","resource_collection_enabled":true,"tenant_name":"17026607-0000-0000-0000-170266078000"}' + headers: + accept: + - application/json + content-type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v1/integration/azure + response: + body: + string: '{} + + ' + headers: + content-type: + - application/json + status: + code: 200 + message: OK +- request: + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17026607-0000-0000-0000-170266078000","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17026607-0000-0000-0000-170266078000","new_tenant_name":"17026607-0000-0000-0000-170266078000","resource_collection_enabled":true,"tenant_name":"17026607-0000-0000-0000-170266078000"}' + headers: + accept: + - application/json + content-type: + - application/json + method: DELETE + uri: https://api.datadoghq.com/api/v1/integration/azure + response: + body: + string: '{} + + ' + headers: + content-type: + - application/json + status: + code: 200 + message: OK +- request: + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17026607-0000-0000-0000-170266078000","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17026607-0000-0000-0000-170266078000","new_tenant_name":"17026607-0000-0000-0000-170266078000","resource_collection_enabled":true,"tenant_name":"17026607-0000-0000-0000-170266078000"}' + headers: + accept: + - application/json + content-type: + - application/json + method: DELETE + uri: https://api.datadoghq.com/api/v1/integration/azure + response: + body: + string: '{} + + ' + headers: + content-type: + - application/json + status: + code: 200 + message: OK +version: 1 diff --git a/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen new file mode 100644 index 0000000000..0b2d8e850e --- /dev/null +++ b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen @@ -0,0 +1 @@ +2023-12-15T17:19:43.390Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml new file mode 100644 index 0000000000..25d70314df --- /dev/null +++ b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml @@ -0,0 +1,62 @@ +interactions: +- request: + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17026607-0000-0000-0000-170266078300","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17026607-0000-0000-0000-170266078300","new_tenant_name":"17026607-0000-0000-0000-170266078300","resource_collection_enabled":true,"tenant_name":"17026607-0000-0000-0000-170266078300"}' + headers: + accept: + - application/json + content-type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v1/integration/azure + response: + body: + string: '{} + + ' + headers: + content-type: + - application/json + status: + code: 200 + message: OK +- request: + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17026607-0000-0000-0000-170266078300","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17026607-0000-0000-0000-170266078300","new_tenant_name":"17026607-0000-0000-0000-170266078300","resource_collection_enabled":true,"tenant_name":"17026607-0000-0000-0000-170266078300"}' + headers: + accept: + - application/json + content-type: + - application/json + method: PUT + uri: https://api.datadoghq.com/api/v1/integration/azure + response: + body: + string: '{} + + ' + headers: + content-type: + - application/json + status: + code: 200 + message: OK +- request: + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17026607-0000-0000-0000-170266078300","client_secret":"testingx./Sw*g/Y33t..R1cH+hScMDt","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17026607-0000-0000-0000-170266078300","new_tenant_name":"17026607-0000-0000-0000-170266078300","resource_collection_enabled":true,"tenant_name":"17026607-0000-0000-0000-170266078300"}' + headers: + accept: + - application/json + content-type: + - application/json + method: DELETE + uri: https://api.datadoghq.com/api/v1/integration/azure + response: + body: + string: '{} + + ' + headers: + content-type: + - application/json + status: + code: 200 + message: OK +version: 1 diff --git a/tests/v1/features/azure_integration.feature b/tests/v1/features/azure_integration.feature index 289147feae..d312058e95 100644 --- a/tests/v1/features/azure_integration.feature +++ b/tests/v1/features/azure_integration.feature @@ -30,10 +30,11 @@ Feature: Azure Integration When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/azure-integrations + @team:DataDog/azure-integrations Scenario: Delete an Azure integration returns "OK" response - Given new "DeleteAzureIntegration" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "testingx./Sw*g/Y33t..R1cH+hScMDt", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest"} + Given there is a valid "azure_account" in the system + And new "DeleteAzureIntegration" request + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "{{ uuid }}", "client_secret": "testingx./Sw*g/Y33t..R1cH+hScMDt", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "new_client_id": "{{ uuid }}", "new_tenant_name": "{{ uuid }}", "resource_collection_enabled": true, "tenant_name": "{{ uuid }}"} When the request is sent Then the response status is 200 OK @@ -70,9 +71,10 @@ Feature: Azure Integration When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/azure-integrations + @team:DataDog/azure-integrations Scenario: Update an Azure integration returns "OK" response - Given new "UpdateAzureIntegration" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "testingx./Sw*g/Y33t..R1cH+hScMDt", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest"} + Given there is a valid "azure_account" in the system + And new "UpdateAzureIntegration" request + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "{{ uuid }}", "client_secret": "testingx./Sw*g/Y33t..R1cH+hScMDt", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "new_client_id": "{{ uuid }}", "new_tenant_name": "{{ uuid }}", "resource_collection_enabled": true, "tenant_name": "{{ uuid }}"} When the request is sent Then the response status is 200 OK diff --git a/tests/v1/features/given.json b/tests/v1/features/given.json index 02854bcd67..ec3069d70c 100644 --- a/tests/v1/features/given.json +++ b/tests/v1/features/given.json @@ -112,6 +112,19 @@ "tag": "AWS Integration", "operationId": "CreateAWSAccount" }, + { + "parameters": [ + { + "name": "body", + "origin": "request", + "value": "{\n \"app_service_plan_filters\": \"key:value,filter:example\",\n \"automute\": true,\n \"client_id\": \"{{ uuid }}\",\n \"client_secret\": \"testingx./Sw*g/Y33t..R1cH+hScMDt\",\n \"container_app_filters\": \"key:value,filter:example\",\n \"cspm_enabled\": true,\n \"custom_metrics_enabled\": true,\n \"errors\": [\"*\"],\n \"host_filters\": \"key:value,filter:example\",\n \"new_client_id\": \"{{ uuid }}\",\n \"new_tenant_name\": \"{{ uuid }}\",\n \"resource_collection_enabled\": true,\n \"tenant_name\": \"{{ uuid }}\"\n}" + } + ], + "step": "there is a valid \"azure_account\" in the system", + "key": "aws_account", + "tag": "Azure Integration", + "operationId": "CreateAzureIntegration" + }, { "parameters": [ {