From c0d705fd73f042327359f07bb66fb4615211bfba Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 4 May 2026 21:57:07 +0000 Subject: [PATCH] Regenerate client from commit f3ed5dd of spec repo --- .generator/schemas/v1/openapi.yaml | 5 +++ api/datadogV1/model_azure_account.go | 37 ++++++++++++++++++- .../UpdateAzureHostFilters.go | 5 ++- .../UpdateAzureIntegration.go | 1 + ...ure_integration_returns_OK_response.freeze | 2 +- ...Azure_integration_returns_OK_response.yaml | 6 +-- ...ure_integration_returns_OK_response.freeze | 2 +- ...Azure_integration_returns_OK_response.yaml | 6 +-- .../features/v1/azure_integration.feature | 12 +++--- tests/scenarios/features/v1/given.json | 2 +- 10 files changed, 60 insertions(+), 18 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index d61bcbbab2b..4072efd32bf 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -791,6 +791,11 @@ components: items: $ref: "#/components/schemas/ResourceProviderConfig" type: array + secretless_auth_enabled: + description: |- + (Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret. + example: true + type: boolean tenant_name: description: Your Azure Active Directory ID. example: "testc44-1234-5678-9101-cc00736ftest" diff --git a/api/datadogV1/model_azure_account.go b/api/datadogV1/model_azure_account.go index 67abf310919..58629a9554b 100644 --- a/api/datadogV1/model_azure_account.go +++ b/api/datadogV1/model_azure_account.go @@ -44,6 +44,8 @@ type AzureAccount struct { ResourceCollectionEnabled *bool `json:"resource_collection_enabled,omitempty"` // Configuration settings applied to resources from the specified Azure resource providers. ResourceProviderConfigs []ResourceProviderConfig `json:"resource_provider_configs,omitempty"` + // (Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret. + SecretlessAuthEnabled *bool `json:"secretless_auth_enabled,omitempty"` // Your Azure Active Directory ID. TenantName *string `json:"tenant_name,omitempty"` // Enable azure.usage metrics for your organization. @@ -490,6 +492,34 @@ func (o *AzureAccount) SetResourceProviderConfigs(v []ResourceProviderConfig) { o.ResourceProviderConfigs = v } +// GetSecretlessAuthEnabled returns the SecretlessAuthEnabled field value if set, zero value otherwise. +func (o *AzureAccount) GetSecretlessAuthEnabled() bool { + if o == nil || o.SecretlessAuthEnabled == nil { + var ret bool + return ret + } + return *o.SecretlessAuthEnabled +} + +// GetSecretlessAuthEnabledOk returns a tuple with the SecretlessAuthEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AzureAccount) GetSecretlessAuthEnabledOk() (*bool, bool) { + if o == nil || o.SecretlessAuthEnabled == nil { + return nil, false + } + return o.SecretlessAuthEnabled, true +} + +// HasSecretlessAuthEnabled returns a boolean if a field has been set. +func (o *AzureAccount) HasSecretlessAuthEnabled() bool { + return o != nil && o.SecretlessAuthEnabled != nil +} + +// SetSecretlessAuthEnabled gets a reference to the given bool and assigns it to the SecretlessAuthEnabled field. +func (o *AzureAccount) SetSecretlessAuthEnabled(v bool) { + o.SecretlessAuthEnabled = &v +} + // GetTenantName returns the TenantName field value if set, zero value otherwise. func (o *AzureAccount) GetTenantName() string { if o == nil || o.TenantName == nil { @@ -597,6 +627,9 @@ func (o AzureAccount) MarshalJSON() ([]byte, error) { if o.ResourceProviderConfigs != nil { toSerialize["resource_provider_configs"] = o.ResourceProviderConfigs } + if o.SecretlessAuthEnabled != nil { + toSerialize["secretless_auth_enabled"] = o.SecretlessAuthEnabled + } if o.TenantName != nil { toSerialize["tenant_name"] = o.TenantName } @@ -628,6 +661,7 @@ func (o *AzureAccount) UnmarshalJSON(bytes []byte) (err error) { NewTenantName *string `json:"new_tenant_name,omitempty"` ResourceCollectionEnabled *bool `json:"resource_collection_enabled,omitempty"` ResourceProviderConfigs []ResourceProviderConfig `json:"resource_provider_configs,omitempty"` + SecretlessAuthEnabled *bool `json:"secretless_auth_enabled,omitempty"` TenantName *string `json:"tenant_name,omitempty"` UsageMetricsEnabled *bool `json:"usage_metrics_enabled,omitempty"` }{} @@ -636,7 +670,7 @@ func (o *AzureAccount) UnmarshalJSON(bytes []byte) (err error) { } additionalProperties := make(map[string]interface{}) if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil { - datadog.DeleteKeys(additionalProperties, &[]string{"app_service_plan_filters", "automute", "client_id", "client_secret", "container_app_filters", "cspm_enabled", "custom_metrics_enabled", "errors", "host_filters", "metrics_enabled", "metrics_enabled_default", "new_client_id", "new_tenant_name", "resource_collection_enabled", "resource_provider_configs", "tenant_name", "usage_metrics_enabled"}) + datadog.DeleteKeys(additionalProperties, &[]string{"app_service_plan_filters", "automute", "client_id", "client_secret", "container_app_filters", "cspm_enabled", "custom_metrics_enabled", "errors", "host_filters", "metrics_enabled", "metrics_enabled_default", "new_client_id", "new_tenant_name", "resource_collection_enabled", "resource_provider_configs", "secretless_auth_enabled", "tenant_name", "usage_metrics_enabled"}) } else { return err } @@ -655,6 +689,7 @@ func (o *AzureAccount) UnmarshalJSON(bytes []byte) (err error) { o.NewTenantName = all.NewTenantName o.ResourceCollectionEnabled = all.ResourceCollectionEnabled o.ResourceProviderConfigs = all.ResourceProviderConfigs + o.SecretlessAuthEnabled = all.SecretlessAuthEnabled o.TenantName = all.TenantName o.UsageMetricsEnabled = all.UsageMetricsEnabled diff --git a/examples/v1/azure-integration/UpdateAzureHostFilters.go b/examples/v1/azure-integration/UpdateAzureHostFilters.go index 4bc427f278e..06f8cb6f50d 100644 --- a/examples/v1/azure-integration/UpdateAzureHostFilters.go +++ b/examples/v1/azure-integration/UpdateAzureHostFilters.go @@ -36,8 +36,9 @@ func main() { Namespace: datadog.PtrString("Microsoft.Compute"), }, }, - TenantName: datadog.PtrString("testc44-1234-5678-9101-cc00736ftest"), - UsageMetricsEnabled: datadog.PtrBool(true), + SecretlessAuthEnabled: datadog.PtrBool(true), + TenantName: datadog.PtrString("testc44-1234-5678-9101-cc00736ftest"), + UsageMetricsEnabled: datadog.PtrBool(true), } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() diff --git a/examples/v1/azure-integration/UpdateAzureIntegration.go b/examples/v1/azure-integration/UpdateAzureIntegration.go index a4cf78a5b67..50d3599a4b4 100644 --- a/examples/v1/azure-integration/UpdateAzureIntegration.go +++ b/examples/v1/azure-integration/UpdateAzureIntegration.go @@ -28,6 +28,7 @@ func main() { NewClientId: datadog.PtrString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"), NewTenantName: datadog.PtrString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"), ResourceCollectionEnabled: datadog.PtrBool(true), + SecretlessAuthEnabled: datadog.PtrBool(true), TenantName: datadog.PtrString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"), } ctx := datadog.NewDefaultContext(context.Background()) diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.freeze index 4cf590b2a0f..fc085ae47b0 100644 --- a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.freeze @@ -1 +1 @@ -2024-12-17T21:43:00.678Z \ No newline at end of file +2026-05-04T13:56:51.846Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.yaml index 915a55defc0..24dee7925e7 100644 --- a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Delete_an_Azure_integration_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17344717-0000-0000-0000-173447178000","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17344717-0000-0000-0000-173447178000","new_tenant_name":"17344717-0000-0000-0000-173447178000","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"tenant_name":"17344717-0000-0000-0000-173447178000","usage_metrics_enabled":true} + {"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17779030-0000-0000-0000-177790301100","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17779030-0000-0000-0000-177790301100","new_tenant_name":"17779030-0000-0000-0000-177790301100","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"secretless_auth_enabled":false,"tenant_name":"17779030-0000-0000-0000-177790301100","usage_metrics_enabled":true} form: {} headers: Accept: @@ -23,7 +23,7 @@ interactions: status: 200 OK - request: body: | - {"client_id":"17344717-0000-0000-0000-173447178000","tenant_name":"17344717-0000-0000-0000-173447178000"} + {"client_id":"17779030-0000-0000-0000-177790301100","tenant_name":"17779030-0000-0000-0000-177790301100"} form: {} headers: Accept: @@ -45,7 +45,7 @@ interactions: status: 200 OK - request: body: | - {"client_id":"17344717-0000-0000-0000-173447178000","tenant_name":"17344717-0000-0000-0000-173447178000"} + {"client_id":"17779030-0000-0000-0000-177790301100","tenant_name":"17779030-0000-0000-0000-177790301100"} form: {} headers: Accept: diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.freeze index d500dc214ee..08d5b0bf6a3 100644 --- a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.freeze @@ -1 +1 @@ -2024-12-17T21:43:01.129Z \ No newline at end of file +2026-05-04T13:56:52.686Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.yaml index 084d5732382..c9737429a23 100644 --- a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Azure_Integration/Scenario_Update_an_Azure_integration_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17344717-0000-0000-0000-173447178100","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17344717-0000-0000-0000-173447178100","new_tenant_name":"17344717-0000-0000-0000-173447178100","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"tenant_name":"17344717-0000-0000-0000-173447178100","usage_metrics_enabled":true} + {"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17779030-0000-0000-0000-177790301200","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17779030-0000-0000-0000-177790301200","new_tenant_name":"17779030-0000-0000-0000-177790301200","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"secretless_auth_enabled":false,"tenant_name":"17779030-0000-0000-0000-177790301200","usage_metrics_enabled":true} form: {} headers: Accept: @@ -23,7 +23,7 @@ interactions: status: 200 OK - request: body: | - {"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17344717-0000-0000-0000-173447178100","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17344717-0000-0000-0000-173447178100","new_tenant_name":"17344717-0000-0000-0000-173447178100","resource_collection_enabled":true,"tenant_name":"17344717-0000-0000-0000-173447178100"} + {"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17779030-0000-0000-0000-177790301200","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17779030-0000-0000-0000-177790301200","new_tenant_name":"17779030-0000-0000-0000-177790301200","resource_collection_enabled":true,"secretless_auth_enabled":true,"tenant_name":"17779030-0000-0000-0000-177790301200"} form: {} headers: Accept: @@ -45,7 +45,7 @@ interactions: status: 200 OK - request: body: | - {"client_id":"17344717-0000-0000-0000-173447178100","tenant_name":"17344717-0000-0000-0000-173447178100"} + {"client_id":"17779030-0000-0000-0000-177790301200","tenant_name":"17779030-0000-0000-0000-177790301200"} form: {} headers: Accept: diff --git a/tests/scenarios/features/v1/azure_integration.feature b/tests/scenarios/features/v1/azure_integration.feature index 8d31237b5b6..6ba40e91e5b 100644 --- a/tests/scenarios/features/v1/azure_integration.feature +++ b/tests/scenarios/features/v1/azure_integration.feature @@ -12,7 +12,7 @@ Feature: Azure Integration @generated @skip @team:DataDog/azure-integrations Scenario: Create an Azure integration returns "Bad Request" response Given new "CreateAzureIntegration" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @@ -26,7 +26,7 @@ Feature: Azure Integration @generated @skip @team:DataDog/azure-integrations Scenario: Delete an Azure integration returns "Bad Request" 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": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @@ -53,21 +53,21 @@ Feature: Azure Integration @generated @skip @team:DataDog/azure-integrations Scenario: Update Azure integration host filters returns "Bad Request" response Given new "UpdateAzureHostFilters" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/azure-integrations Scenario: Update Azure integration host filters returns "OK" response Given new "UpdateAzureHostFilters" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/azure-integrations Scenario: Update an Azure integration returns "Bad Request" 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": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @@ -75,6 +75,6 @@ Feature: Azure Integration Scenario: Update an Azure integration returns "OK" response 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": "TestingRh2nx664kUy5dIApvM54T4AtO", "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 }}"} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "{{ uuid }}", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "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, "secretless_auth_enabled": true, "tenant_name": "{{ uuid }}"} When the request is sent Then the response status is 200 OK diff --git a/tests/scenarios/features/v1/given.json b/tests/scenarios/features/v1/given.json index 2606012caa1..4415a28bc00 100644 --- a/tests/scenarios/features/v1/given.json +++ b/tests/scenarios/features/v1/given.json @@ -117,7 +117,7 @@ { "name": "body", "origin": "request", - "value": "{\n \"app_service_plan_filters\": \"key:value,filter:example\",\n \"automute\": true,\n \"client_id\": \"{{ uuid }}\",\n \"client_secret\": \"TestingRh2nx664kUy5dIApvM54T4AtO\",\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 \"metrics_enabled\": true,\n \"metrics_enabled_default\": true,\n \"new_client_id\": \"{{ uuid }}\",\n \"new_tenant_name\": \"{{ uuid }}\",\n \"resource_collection_enabled\": true,\n \"resource_provider_configs\": [\n {\n \"namespace\": \"Microsoft.Compute\",\n \"metrics_enabled\": false\n },\n {\n \"namespace\": \"Microsoft.Web\",\n \"metrics_enabled\": false\n }\n ],\n \"tenant_name\": \"{{ uuid }}\",\n \"usage_metrics_enabled\": true\n}" + "value": "{\n \"app_service_plan_filters\": \"key:value,filter:example\",\n \"automute\": true,\n \"client_id\": \"{{ uuid }}\",\n \"client_secret\": \"TestingRh2nx664kUy5dIApvM54T4AtO\",\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 \"metrics_enabled\": true,\n \"metrics_enabled_default\": true,\n \"new_client_id\": \"{{ uuid }}\",\n \"new_tenant_name\": \"{{ uuid }}\",\n \"resource_collection_enabled\": true,\n \"resource_provider_configs\": [\n {\n \"namespace\": \"Microsoft.Compute\",\n \"metrics_enabled\": false\n },\n {\n \"namespace\": \"Microsoft.Web\",\n \"metrics_enabled\": false\n }\n ],\n \"secretless_auth_enabled\": false,\n \"tenant_name\": \"{{ uuid }}\",\n \"usage_metrics_enabled\": true\n}" } ], "step": "there is a valid \"azure_account\" in the system",