From 45f52523aaabc7de679dfdb8f2f20f25934876b7 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 17 Oct 2023 14:51:05 +0000 Subject: [PATCH] Regenerate client from commit a9d493f5 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v2/openapi.yaml | 2 +- .../confluent-cloud/DeleteConfluentAccount.go | 5 +- ...19241291.go => DeleteConfluentResource.go} | 7 +- examples/v2/downtimes/ListMonitorDowntimes.go | 2 +- .../ListMonitorDowntimes_128979780.go | 29 -------- .../CreateCurrentUserApplicationKey.go | 9 +-- ...ateCurrentUserApplicationKey_1999509896.go | 37 ---------- .../v2/key-management/DeleteApplicationKey.go | 5 +- .../DeleteApplicationKey_771691550.go | 28 ------- .../DeleteCurrentUserApplicationKey.go | 5 +- ...eteCurrentUserApplicationKey_1266687064.go | 28 ------- ...GetCurrentUserApplicationKey_1060640890.go | 32 -------- .../ListApplicationKeys_2237010090.go | 29 -------- ...stCurrentUserApplicationKeys_1503860964.go | 29 -------- .../GetOnDemandConcurrencyCap_2633566918.go | 29 -------- .../synthetics/SetOnDemandConcurrencyCap.go | 4 +- .../SetOnDemandConcurrencyCap_2850884405.go | 32 -------- .../GetUsageApplicationSecurityMonitoring.go | 2 +- ...pplicationSecurityMonitoring_3959166796.go | 30 -------- .../GetUsageLambdaTracedInvocations.go | 2 +- ...UsageLambdaTracedInvocations_1436752065.go | 30 -------- .../GetUsageObservabilityPipelines.go | 2 +- ...etUsageObservabilityPipelines_970725512.go | 30 -------- examples/v2/users/GetUser.go | 7 +- examples/v2/users/GetUser_3047557953.go | 32 -------- ...nfluent_account_returns_OK_response.freeze | 1 + ...onfluent_account_returns_OK_response.yaml} | 8 +- ...nfluent_account_returns_OK_response.freeze | 1 - ..._for_a_monitor_returns_OK_response.freeze} | 0 ...es_for_a_monitor_returns_OK_response.yaml} | 0 ...rrent_user_returns_Created_response.freeze | 1 - ...rrent_user_returns_Created_response.freeze | 1 + ...urrent_user_returns_Created_response.yaml} | 10 ++- ...nt_user_returns_No_Content_response.freeze | 1 - ...ion_key_returns_No_Content_response.freeze | 1 - ...nt_user_returns_No_Content_response.freeze | 1 + ...ent_user_returns_No_Content_response.yaml} | 14 ++-- ...ion_key_returns_No_Content_response.freeze | 1 + ...tion_key_returns_No_Content_response.yaml} | 14 ++-- ...by_current_user_returns_OK_response.freeze | 1 - ...d_by_current_user_returns_OK_response.yaml | 18 ----- ...pplication_keys_returns_OK_response.freeze | 1 - ..._Application_keys_returns_OK_response.yaml | 64 ---------------- ...by_current_user_returns_OK_response.freeze | 1 + ...d_by_current_user_returns_OK_response.yaml | 19 +++++ ...pplication_keys_returns_OK_response.freeze | 1 + ..._application_keys_returns_OK_response.yaml | 66 +++++++++++++++++ ...by_current_user_returns_OK_response.freeze | 2 +- ...d_by_current_user_returns_OK_response.yaml | 16 ++-- ...nario_Get_on_demand_concurrency_cap.freeze | 1 - ...concurrency_cap_returns_OK_response.freeze | 1 + ..._concurrency_cap_returns_OK_response.yaml} | 0 ...concurrency_cap_returns_OK_response.freeze | 1 + ..._concurrency_cap_returns_OK_response.yaml} | 0 ...ario_Save_on_demand_concurrency_cap.freeze | 1 - ...cation_Security_returns_OK_response.freeze | 1 - ...lication_Security_returns_OK_response.yaml | 20 ----- ...ced_Invocations_returns_OK_response.freeze | 1 - ...raced_Invocations_returns_OK_response.yaml | 20 ----- ...ility_Pipelines_returns_OK_response.freeze | 1 - ...ability_Pipelines_returns_OK_response.yaml | 20 ----- ...cation_security_returns_OK_response.freeze | 1 + ...lication_security_returns_OK_response.yaml | 21 ++++++ ...ced_invocations_returns_OK_response.freeze | 1 + ...raced_invocations_returns_OK_response.yaml | 21 ++++++ ...ility_pipelines_returns_OK_response.freeze | 1 + ...ability_pipelines_returns_OK_response.yaml | 21 ++++++ ...ario_Get_a_user_returns_OK_response.freeze | 1 - ...enario_Get_a_user_returns_OK_response.yaml | 53 -------------- ...et_user_details_returns_OK_response.freeze | 1 + ..._Get_user_details_returns_OK_response.yaml | 57 +++++++++++++++ .../features/v2/confluent_cloud.feature | 15 ++-- tests/scenarios/features/v2/downtimes.feature | 15 +--- .../features/v2/key_management.feature | 73 ++++--------------- .../scenarios/features/v2/synthetics.feature | 15 +--- .../features/v2/usage_metering.feature | 51 ++++--------- tests/scenarios/features/v2/users.feature | 23 ++---- 78 files changed, 337 insertions(+), 798 deletions(-) rename examples/v2/confluent-cloud/{DeleteConfluentAccount_2919241291.go => DeleteConfluentResource.go} (72%) delete mode 100644 examples/v2/downtimes/ListMonitorDowntimes_128979780.go delete mode 100644 examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.go delete mode 100644 examples/v2/key-management/DeleteApplicationKey_771691550.go delete mode 100644 examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.go delete mode 100644 examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.go delete mode 100644 examples/v2/key-management/ListApplicationKeys_2237010090.go delete mode 100644 examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.go delete mode 100644 examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.go delete mode 100644 examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.go delete mode 100644 examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.go delete mode 100644 examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.go delete mode 100644 examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.go delete mode 100644 examples/v2/users/GetUser_3047557953.go create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_Confluent_account_returns_OK_response.freeze rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/{Scenario_Delete_resource_from_Confluent_account_returns_OK_response.yaml => Scenario_Delete_Confluent_account_returns_OK_response.yaml} (59%) delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_resource_from_Confluent_account_returns_OK_response.freeze rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/{Scenario_Get_all_downtimes_for_a_monitor_returns_OK_response.freeze => Scenario_Get_active_downtimes_for_a_monitor_returns_OK_response.freeze} (100%) rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/{Scenario_Get_all_downtimes_for_a_monitor_returns_OK_response.yaml => Scenario_Get_active_downtimes_for_a_monitor_returns_OK_response.yaml} (100%) delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_Application_key_for_current_user_returns_Created_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_application_key_for_current_user_returns_Created_response.freeze rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/{Scenario_Create_an_Application_key_for_current_user_returns_Created_response.yaml => Scenario_Create_an_application_key_for_current_user_returns_Created_response.yaml} (62%) delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_returns_No_Content_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.freeze rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/{Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.yaml => Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.yaml} (69%) create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_returns_No_Content_response.freeze rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/{Scenario_Delete_an_Application_key_returns_No_Content_response.yaml => Scenario_Delete_an_application_key_returns_No_Content_response.yaml} (61%) delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.yaml delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.yaml delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_on_demand_concurrency_cap.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_the_on-demand_concurrency_cap_returns_OK_response.freeze rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/{Scenario_Get_on_demand_concurrency_cap.yaml => Scenario_Get_the_on-demand_concurrency_cap_returns_OK_response.yaml} (100%) create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_new_value_for_on-demand_concurrency_cap_returns_OK_response.freeze rename tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/{Scenario_Save_on_demand_concurrency_cap.yaml => Scenario_Save_new_value_for_on-demand_concurrency_cap_returns_OK_response.yaml} (100%) delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_on_demand_concurrency_cap.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.yaml delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.yaml delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.yaml delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.freeze delete mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.yaml diff --git a/.apigentools-info b/.apigentools-info index 9867f66fc71..f34580a61cf 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-16 19:14:59.427852", - "spec_repo_commit": "4f580adf" + "regenerated": "2023-10-17 14:49:39.634317", + "spec_repo_commit": "a9d493f5" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-16 19:14:59.447539", - "spec_repo_commit": "4f580adf" + "regenerated": "2023-10-17 14:49:39.649391", + "spec_repo_commit": "a9d493f5" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6f5545f6bc4..58a515c094d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -29128,7 +29128,7 @@ paths: application/json: schema: $ref: '#/components/schemas/UserResponse' - description: OK for get user + description: OK '403': content: application/json: diff --git a/examples/v2/confluent-cloud/DeleteConfluentAccount.go b/examples/v2/confluent-cloud/DeleteConfluentAccount.go index a4e4c80697d..f56b0cb57a7 100644 --- a/examples/v2/confluent-cloud/DeleteConfluentAccount.go +++ b/examples/v2/confluent-cloud/DeleteConfluentAccount.go @@ -12,11 +12,14 @@ import ( ) func main() { + // there is a valid "confluent_account" in the system + ConfluentAccountDataID := os.Getenv("CONFLUENT_ACCOUNT_DATA_ID") + ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewConfluentCloudApi(apiClient) - r, err := api.DeleteConfluentAccount(ctx, "account_id") + r, err := api.DeleteConfluentAccount(ctx, ConfluentAccountDataID) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentAccount`: %v\n", err) diff --git a/examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.go b/examples/v2/confluent-cloud/DeleteConfluentResource.go similarity index 72% rename from examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.go rename to examples/v2/confluent-cloud/DeleteConfluentResource.go index 8bd2f4c19fd..8f11a525c63 100644 --- a/examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.go +++ b/examples/v2/confluent-cloud/DeleteConfluentResource.go @@ -12,17 +12,14 @@ import ( ) func main() { - // there is a valid "confluent_account" in the system - ConfluentAccountDataID := os.Getenv("CONFLUENT_ACCOUNT_DATA_ID") - ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewConfluentCloudApi(apiClient) - r, err := api.DeleteConfluentAccount(ctx, ConfluentAccountDataID) + r, err := api.DeleteConfluentResource(ctx, "account_id", "resource_id") if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentAccount`: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentResource`: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } diff --git a/examples/v2/downtimes/ListMonitorDowntimes.go b/examples/v2/downtimes/ListMonitorDowntimes.go index 0ff1c7aa776..9298748b9e4 100644 --- a/examples/v2/downtimes/ListMonitorDowntimes.go +++ b/examples/v2/downtimes/ListMonitorDowntimes.go @@ -17,7 +17,7 @@ func main() { configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewDowntimesApi(apiClient) - resp, r, err := api.ListMonitorDowntimes(ctx, 9223372036854775807) + resp, r, err := api.ListMonitorDowntimes(ctx, 35534610) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DowntimesApi.ListMonitorDowntimes`: %v\n", err) diff --git a/examples/v2/downtimes/ListMonitorDowntimes_128979780.go b/examples/v2/downtimes/ListMonitorDowntimes_128979780.go deleted file mode 100644 index fa80ab22d58..00000000000 --- a/examples/v2/downtimes/ListMonitorDowntimes_128979780.go +++ /dev/null @@ -1,29 +0,0 @@ -// Get all downtimes for a monitor returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewDowntimesApi(apiClient) - resp, r, err := api.ListMonitorDowntimes(ctx, 35534610) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DowntimesApi.ListMonitorDowntimes`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `DowntimesApi.ListMonitorDowntimes`:\n%s\n", responseContent) -} diff --git a/examples/v2/key-management/CreateCurrentUserApplicationKey.go b/examples/v2/key-management/CreateCurrentUserApplicationKey.go index 9f108074cc8..0b8a21e91be 100644 --- a/examples/v2/key-management/CreateCurrentUserApplicationKey.go +++ b/examples/v2/key-management/CreateCurrentUserApplicationKey.go @@ -15,15 +15,10 @@ import ( func main() { body := datadogV2.ApplicationKeyCreateRequest{ Data: datadogV2.ApplicationKeyCreateData{ + Type: datadogV2.APPLICATIONKEYSTYPE_APPLICATION_KEYS, Attributes: datadogV2.ApplicationKeyCreateAttributes{ - Name: "Application Key for managing dashboards", - Scopes: *datadog.NewNullableList(&[]string{ - "dashboards_read", - "dashboards_write", - "dashboards_public_share", - }), + Name: "Example-Key-Management", }, - Type: datadogV2.APPLICATIONKEYSTYPE_APPLICATION_KEYS, }, } ctx := datadog.NewDefaultContext(context.Background()) diff --git a/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.go b/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.go deleted file mode 100644 index 203b3d88b73..00000000000 --- a/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.go +++ /dev/null @@ -1,37 +0,0 @@ -// Create an Application key for current user returns "Created" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - body := datadogV2.ApplicationKeyCreateRequest{ - Data: datadogV2.ApplicationKeyCreateData{ - Type: datadogV2.APPLICATIONKEYSTYPE_APPLICATION_KEYS, - Attributes: datadogV2.ApplicationKeyCreateAttributes{ - Name: "Example-Key-Management", - }, - }, - } - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewKeyManagementApi(apiClient) - resp, r, err := api.CreateCurrentUserApplicationKey(ctx, body) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.CreateCurrentUserApplicationKey`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `KeyManagementApi.CreateCurrentUserApplicationKey`:\n%s\n", responseContent) -} diff --git a/examples/v2/key-management/DeleteApplicationKey.go b/examples/v2/key-management/DeleteApplicationKey.go index e2b843480eb..242d225e193 100644 --- a/examples/v2/key-management/DeleteApplicationKey.go +++ b/examples/v2/key-management/DeleteApplicationKey.go @@ -12,11 +12,14 @@ import ( ) func main() { + // there is a valid "application_key" in the system + ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID") + ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewKeyManagementApi(apiClient) - r, err := api.DeleteApplicationKey(ctx, "app_key_id") + r, err := api.DeleteApplicationKey(ctx, ApplicationKeyDataID) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.DeleteApplicationKey`: %v\n", err) diff --git a/examples/v2/key-management/DeleteApplicationKey_771691550.go b/examples/v2/key-management/DeleteApplicationKey_771691550.go deleted file mode 100644 index b72e11eb4f3..00000000000 --- a/examples/v2/key-management/DeleteApplicationKey_771691550.go +++ /dev/null @@ -1,28 +0,0 @@ -// Delete an Application key returns "No Content" response - -package main - -import ( - "context" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - // there is a valid "application_key" in the system - ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID") - - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewKeyManagementApi(apiClient) - r, err := api.DeleteApplicationKey(ctx, ApplicationKeyDataID) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.DeleteApplicationKey`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} diff --git a/examples/v2/key-management/DeleteCurrentUserApplicationKey.go b/examples/v2/key-management/DeleteCurrentUserApplicationKey.go index 0d37a90b8e9..cbe782a0f90 100644 --- a/examples/v2/key-management/DeleteCurrentUserApplicationKey.go +++ b/examples/v2/key-management/DeleteCurrentUserApplicationKey.go @@ -12,11 +12,14 @@ import ( ) func main() { + // there is a valid "application_key" in the system + ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID") + ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewKeyManagementApi(apiClient) - r, err := api.DeleteCurrentUserApplicationKey(ctx, "app_key_id") + r, err := api.DeleteCurrentUserApplicationKey(ctx, ApplicationKeyDataID) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.DeleteCurrentUserApplicationKey`: %v\n", err) diff --git a/examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.go b/examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.go deleted file mode 100644 index e3eedc01cb3..00000000000 --- a/examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.go +++ /dev/null @@ -1,28 +0,0 @@ -// Delete an Application key owned by current user returns "No Content" response - -package main - -import ( - "context" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - // there is a valid "application_key" in the system - ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID") - - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewKeyManagementApi(apiClient) - r, err := api.DeleteCurrentUserApplicationKey(ctx, ApplicationKeyDataID) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.DeleteCurrentUserApplicationKey`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} diff --git a/examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.go b/examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.go deleted file mode 100644 index 834be9be010..00000000000 --- a/examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.go +++ /dev/null @@ -1,32 +0,0 @@ -// Get one Application key owned by current user returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - // there is a valid "application_key" in the system - ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID") - - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewKeyManagementApi(apiClient) - resp, r, err := api.GetCurrentUserApplicationKey(ctx, ApplicationKeyDataID) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.GetCurrentUserApplicationKey`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `KeyManagementApi.GetCurrentUserApplicationKey`:\n%s\n", responseContent) -} diff --git a/examples/v2/key-management/ListApplicationKeys_2237010090.go b/examples/v2/key-management/ListApplicationKeys_2237010090.go deleted file mode 100644 index 55be780fd62..00000000000 --- a/examples/v2/key-management/ListApplicationKeys_2237010090.go +++ /dev/null @@ -1,29 +0,0 @@ -// Get all Application keys returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewKeyManagementApi(apiClient) - resp, r, err := api.ListApplicationKeys(ctx, *datadogV2.NewListApplicationKeysOptionalParameters()) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.ListApplicationKeys`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `KeyManagementApi.ListApplicationKeys`:\n%s\n", responseContent) -} diff --git a/examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.go b/examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.go deleted file mode 100644 index 1605b085790..00000000000 --- a/examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.go +++ /dev/null @@ -1,29 +0,0 @@ -// Get all Application keys owned by current user returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewKeyManagementApi(apiClient) - resp, r, err := api.ListCurrentUserApplicationKeys(ctx, *datadogV2.NewListCurrentUserApplicationKeysOptionalParameters()) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.ListCurrentUserApplicationKeys`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `KeyManagementApi.ListCurrentUserApplicationKeys`:\n%s\n", responseContent) -} diff --git a/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.go b/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.go deleted file mode 100644 index 582c2dbef32..00000000000 --- a/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.go +++ /dev/null @@ -1,29 +0,0 @@ -// Get on demand concurrency cap - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewSyntheticsApi(apiClient) - resp, r, err := api.GetOnDemandConcurrencyCap(ctx) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SyntheticsApi.GetOnDemandConcurrencyCap`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `SyntheticsApi.GetOnDemandConcurrencyCap`:\n%s\n", responseContent) -} diff --git a/examples/v2/synthetics/SetOnDemandConcurrencyCap.go b/examples/v2/synthetics/SetOnDemandConcurrencyCap.go index 30d93adba41..ad801bf0ff0 100644 --- a/examples/v2/synthetics/SetOnDemandConcurrencyCap.go +++ b/examples/v2/synthetics/SetOnDemandConcurrencyCap.go @@ -13,7 +13,9 @@ import ( ) func main() { - body := datadogV2.OnDemandConcurrencyCapAttributes{} + body := datadogV2.OnDemandConcurrencyCapAttributes{ + OnDemandConcurrencyCap: datadog.PtrFloat64(20), + } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) diff --git a/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.go b/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.go deleted file mode 100644 index baa28fa038f..00000000000 --- a/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.go +++ /dev/null @@ -1,32 +0,0 @@ -// Save on demand concurrency cap - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - body := datadogV2.OnDemandConcurrencyCapAttributes{ - OnDemandConcurrencyCap: datadog.PtrFloat64(20), - } - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewSyntheticsApi(apiClient) - resp, r, err := api.SetOnDemandConcurrencyCap(ctx, body) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SyntheticsApi.SetOnDemandConcurrencyCap`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `SyntheticsApi.SetOnDemandConcurrencyCap`:\n%s\n", responseContent) -} diff --git a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.go b/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.go index 47fb81702db..a5fd79b6127 100644 --- a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.go +++ b/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.go @@ -18,7 +18,7 @@ func main() { configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewUsageMeteringApi(apiClient) - resp, r, err := api.GetUsageApplicationSecurityMonitoring(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadogV2.NewGetUsageApplicationSecurityMonitoringOptionalParameters()) + resp, r, err := api.GetUsageApplicationSecurityMonitoring(ctx, time.Now().AddDate(0, 0, -5), *datadogV2.NewGetUsageApplicationSecurityMonitoringOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageApplicationSecurityMonitoring`: %v\n", err) diff --git a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.go b/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.go deleted file mode 100644 index 79da95e5430..00000000000 --- a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.go +++ /dev/null @@ -1,30 +0,0 @@ -// Get hourly usage for Application Security returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - "time" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewUsageMeteringApi(apiClient) - resp, r, err := api.GetUsageApplicationSecurityMonitoring(ctx, time.Now().AddDate(0, 0, -5), *datadogV2.NewGetUsageApplicationSecurityMonitoringOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageApplicationSecurityMonitoring`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `UsageMeteringApi.GetUsageApplicationSecurityMonitoring`:\n%s\n", responseContent) -} diff --git a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.go b/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.go index a44706ba61d..a84f12c9837 100644 --- a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.go +++ b/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.go @@ -18,7 +18,7 @@ func main() { configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewUsageMeteringApi(apiClient) - resp, r, err := api.GetUsageLambdaTracedInvocations(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadogV2.NewGetUsageLambdaTracedInvocationsOptionalParameters()) + resp, r, err := api.GetUsageLambdaTracedInvocations(ctx, time.Now().AddDate(0, 0, -5), *datadogV2.NewGetUsageLambdaTracedInvocationsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageLambdaTracedInvocations`: %v\n", err) diff --git a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.go b/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.go deleted file mode 100644 index 605b703264b..00000000000 --- a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.go +++ /dev/null @@ -1,30 +0,0 @@ -// Get hourly usage for Lambda Traced Invocations returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - "time" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewUsageMeteringApi(apiClient) - resp, r, err := api.GetUsageLambdaTracedInvocations(ctx, time.Now().AddDate(0, 0, -5), *datadogV2.NewGetUsageLambdaTracedInvocationsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageLambdaTracedInvocations`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `UsageMeteringApi.GetUsageLambdaTracedInvocations`:\n%s\n", responseContent) -} diff --git a/examples/v2/usage-metering/GetUsageObservabilityPipelines.go b/examples/v2/usage-metering/GetUsageObservabilityPipelines.go index 885dcef2939..4e8b4fb2e01 100644 --- a/examples/v2/usage-metering/GetUsageObservabilityPipelines.go +++ b/examples/v2/usage-metering/GetUsageObservabilityPipelines.go @@ -18,7 +18,7 @@ func main() { configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewUsageMeteringApi(apiClient) - resp, r, err := api.GetUsageObservabilityPipelines(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadogV2.NewGetUsageObservabilityPipelinesOptionalParameters()) + resp, r, err := api.GetUsageObservabilityPipelines(ctx, time.Now().AddDate(0, 0, -5), *datadogV2.NewGetUsageObservabilityPipelinesOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageObservabilityPipelines`: %v\n", err) diff --git a/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.go b/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.go deleted file mode 100644 index 5708089b53e..00000000000 --- a/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.go +++ /dev/null @@ -1,30 +0,0 @@ -// Get hourly usage for Observability Pipelines returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - "time" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewUsageMeteringApi(apiClient) - resp, r, err := api.GetUsageObservabilityPipelines(ctx, time.Now().AddDate(0, 0, -5), *datadogV2.NewGetUsageObservabilityPipelinesOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageObservabilityPipelines`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `UsageMeteringApi.GetUsageObservabilityPipelines`:\n%s\n", responseContent) -} diff --git a/examples/v2/users/GetUser.go b/examples/v2/users/GetUser.go index bd98e53cf13..c890f4a4d8a 100644 --- a/examples/v2/users/GetUser.go +++ b/examples/v2/users/GetUser.go @@ -1,4 +1,4 @@ -// Get user details returns "OK for get user" response +// Get user details returns "OK" response package main @@ -13,11 +13,14 @@ import ( ) func main() { + // there is a valid "user" in the system + UserDataID := os.Getenv("USER_DATA_ID") + ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewUsersApi(apiClient) - resp, r, err := api.GetUser(ctx, "00000000-0000-9999-0000-000000000000") + resp, r, err := api.GetUser(ctx, UserDataID) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.GetUser`: %v\n", err) diff --git a/examples/v2/users/GetUser_3047557953.go b/examples/v2/users/GetUser_3047557953.go deleted file mode 100644 index c495f2a55b9..00000000000 --- a/examples/v2/users/GetUser_3047557953.go +++ /dev/null @@ -1,32 +0,0 @@ -// Get a user returns "OK" response - -package main - -import ( - "context" - "encoding/json" - "fmt" - "os" - - "github.com/DataDog/datadog-api-client-go/v2/api/datadog" - "github.com/DataDog/datadog-api-client-go/v2/api/datadogV2" -) - -func main() { - // there is a valid "user" in the system - UserDataID := os.Getenv("USER_DATA_ID") - - ctx := datadog.NewDefaultContext(context.Background()) - configuration := datadog.NewConfiguration() - apiClient := datadog.NewAPIClient(configuration) - api := datadogV2.NewUsersApi(apiClient) - resp, r, err := api.GetUser(ctx, UserDataID) - - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.GetUser`: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - - responseContent, _ := json.MarshalIndent(resp, "", " ") - fmt.Fprintf(os.Stdout, "Response from `UsersApi.GetUser`:\n%s\n", responseContent) -} diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_Confluent_account_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_Confluent_account_returns_OK_response.freeze new file mode 100644 index 00000000000..dcb369b5878 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_Confluent_account_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T13:02:15.749Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_resource_from_Confluent_account_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_Confluent_account_returns_OK_response.yaml similarity index 59% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_resource_from_Confluent_account_returns_OK_response.yaml rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_Confluent_account_returns_OK_response.yaml index c68f70a097c..daf01173335 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_resource_from_Confluent_account_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_Confluent_account_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"api_key":"TestDeleteresourcefromConfluentaccountreturnsOKresponse1665090164","api_secret":"test-api-secret","resources":[{"id":"test-resource-id","resource_type":"kafka","tags":["tag1","tag2:val2"]}],"tags":["tag1","tag2:val2"]},"type":"confluent-cloud-accounts"}} + {"data":{"attributes":{"api_key":"TestDeleteConfluentaccountreturnsOKresponse1697461335","api_secret":"test-api-secret","resources":[{"id":"test-resource-id","resource_type":"kafka","tags":["tag1","tag2:val2"]}],"tags":["tag1","tag2:val2"]},"type":"confluent-cloud-accounts"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts response: - body: '{"data":{"attributes":{"api_key":"TestDeleteresourcefromConfluentaccountreturnsOKresponse1665090164","resources":[{"id":"test-resource-id","resource_type":"kafka","tags":["tag1","tag2:val2"]}],"tags":["tag1","tag2:val2"]},"type":"confluent-cloud-accounts","id":"xxmv3lgki4"}} + body: '{"data":{"type":"confluent-cloud-accounts","attributes":{"resources":[{"tags":["tag1","tag2:val2"],"id":"test-resource-id","enable_custom_metrics":false,"resource_type":"kafka"}],"tags":["tag1","tag2:val2"],"api_key":"TestDeleteConfluentaccountreturnsOKresponse1697461335"},"id":"ed3f03aa36fdd7ba6b48381d54280e45"}} ' code: 201 @@ -27,7 +27,7 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/xxmv3lgki4 + url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/ed3f03aa36fdd7ba6b48381d54280e45 response: body: '' code: 204 @@ -43,7 +43,7 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/xxmv3lgki4 + url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/ed3f03aa36fdd7ba6b48381d54280e45 response: body: '{"errors":["Account not found not found"]}' code: 404 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_resource_from_Confluent_account_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_resource_from_Confluent_account_returns_OK_response.freeze deleted file mode 100644 index 3568d079c08..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Confluent_Cloud/Scenario_Delete_resource_from_Confluent_account_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-10-06T21:02:44.888Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_all_downtimes_for_a_monitor_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_active_downtimes_for_a_monitor_returns_OK_response.freeze similarity index 100% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_all_downtimes_for_a_monitor_returns_OK_response.freeze rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_active_downtimes_for_a_monitor_returns_OK_response.freeze diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_all_downtimes_for_a_monitor_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_active_downtimes_for_a_monitor_returns_OK_response.yaml similarity index 100% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_all_downtimes_for_a_monitor_returns_OK_response.yaml rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Downtimes/Scenario_Get_active_downtimes_for_a_monitor_returns_OK_response.yaml diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_Application_key_for_current_user_returns_Created_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_Application_key_for_current_user_returns_Created_response.freeze deleted file mode 100644 index 06321470f15..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_Application_key_for_current_user_returns_Created_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-05-12T09:52:01.416Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_application_key_for_current_user_returns_Created_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_application_key_for_current_user_returns_Created_response.freeze new file mode 100644 index 00000000000..5ef2504951f --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_application_key_for_current_user_returns_Created_response.freeze @@ -0,0 +1 @@ +2023-10-16T13:55:48.764Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_Application_key_for_current_user_returns_Created_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_application_key_for_current_user_returns_Created_response.yaml similarity index 62% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_Application_key_for_current_user_returns_Created_response.yaml rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_application_key_for_current_user_returns_Created_response.yaml index 63d3bcc261c..5b446281100 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_Application_key_for_current_user_returns_Created_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Create_an_application_key_for_current_user_returns_Created_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"name":"Test-Create_an_Application_key_for_current_user_returns_Created_response-1652349121"},"type":"application_keys"}} + {"data":{"attributes":{"name":"Test-Create_an_application_key_for_current_user_returns_Created_response-1697464548"},"type":"application_keys"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/current_user/application_keys response: - body: '{"data":{"type":"application_keys","id":"e1441667-cea7-4d53-85a8-7c7ea6191b2e","attributes":{"name":"Test-Create_an_Application_key_for_current_user_returns_Created_response-1652349121","created_at":"2022-05-12T09:52:01.912193+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' + body: '{"data":{"type":"application_keys","id":"513684db-d430-45bd-8239-0715320c9488","attributes":{"name":"Test-Create_an_application_key_for_current_user_returns_Created_response-1697464548","created_at":"2023-10-16T13:55:49.254647+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' code: 201 duration: '' headers: @@ -25,11 +25,13 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/current_user/application_keys/e1441667-cea7-4d53-85a8-7c7ea6191b2e + url: https://api.datadoghq.com/api/v2/current_user/application_keys/513684db-d430-45bd-8239-0715320c9488 response: body: '' code: 204 duration: '' - headers: {} + headers: + Content-Type: + - text/html; charset=utf-8 status: 204 No Content version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.freeze deleted file mode 100644 index b10eeb9deae..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-05-12T09:52:05.520Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_returns_No_Content_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_returns_No_Content_response.freeze deleted file mode 100644 index 9c631133006..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_returns_No_Content_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-05-12T09:52:06.912Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.freeze new file mode 100644 index 00000000000..16580fbb34c --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.freeze @@ -0,0 +1 @@ +2023-10-16T14:23:11.543Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.yaml similarity index 69% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.yaml rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.yaml index 5e26c9f705a..0ec0083085f 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_owned_by_current_user_returns_No_Content_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_owned_by_current_user_returns_No_Content_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"name":"Test-Delete_an_Application_key_owned_by_current_user_returns_No_Content_response-1652349125"},"type":"application_keys"}} + {"data":{"attributes":{"name":"Test-Delete_an_application_key_owned_by_current_user_returns_No_Content_response-1697466191"},"type":"application_keys"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/current_user/application_keys response: - body: '{"data":{"type":"application_keys","id":"c1469afb-30e6-4b63-81ab-4ba8436e5150","attributes":{"name":"Test-Delete_an_Application_key_owned_by_current_user_returns_No_Content_response-1652349125","created_at":"2022-05-12T09:52:05.932111+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' + body: '{"data":{"type":"application_keys","id":"be94f6b2-1704-4126-a898-94d65f6f28d8","attributes":{"name":"Test-Delete_an_application_key_owned_by_current_user_returns_No_Content_response-1697466191","created_at":"2023-10-16T14:23:12.034758+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' code: 201 duration: '' headers: @@ -25,12 +25,14 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/current_user/application_keys/c1469afb-30e6-4b63-81ab-4ba8436e5150 + url: https://api.datadoghq.com/api/v2/current_user/application_keys/be94f6b2-1704-4126-a898-94d65f6f28d8 response: body: '' code: 204 duration: '' - headers: {} + headers: + Content-Type: + - text/html; charset=utf-8 status: 204 No Content - request: body: '' @@ -39,9 +41,9 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/current_user/application_keys/c1469afb-30e6-4b63-81ab-4ba8436e5150 + url: https://api.datadoghq.com/api/v2/current_user/application_keys/be94f6b2-1704-4126-a898-94d65f6f28d8 response: - body: '{"errors": ["Application key not found"]}' + body: '{"errors":["Application key not found"]}' code: 404 duration: '' headers: diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_returns_No_Content_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_returns_No_Content_response.freeze new file mode 100644 index 00000000000..63c82c9a84e --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_returns_No_Content_response.freeze @@ -0,0 +1 @@ +2023-10-16T13:18:28.907Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_returns_No_Content_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_returns_No_Content_response.yaml similarity index 61% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_returns_No_Content_response.yaml rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_returns_No_Content_response.yaml index 71b82f92887..c7ed799e0d3 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_Application_key_returns_No_Content_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Delete_an_application_key_returns_No_Content_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"name":"Test-Delete_an_Application_key_returns_No_Content_response-1652349126"},"type":"application_keys"}} + {"data":{"attributes":{"name":"Test-Delete_an_application_key_returns_No_Content_response-1697462308"},"type":"application_keys"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/current_user/application_keys response: - body: '{"data":{"type":"application_keys","id":"d2653524-a474-460c-a7c7-75073e8aa1fa","attributes":{"name":"Test-Delete_an_Application_key_returns_No_Content_response-1652349126","created_at":"2022-05-12T09:52:07.427090+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' + body: '{"data":{"type":"application_keys","id":"c7a26dee-1619-4ed0-8d1a-0ae4ed94da29","attributes":{"name":"Test-Delete_an_application_key_returns_No_Content_response-1697462308","created_at":"2023-10-16T13:18:29.388862+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' code: 201 duration: '' headers: @@ -25,12 +25,14 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/application_keys/d2653524-a474-460c-a7c7-75073e8aa1fa + url: https://api.datadoghq.com/api/v2/application_keys/c7a26dee-1619-4ed0-8d1a-0ae4ed94da29 response: body: '' code: 204 duration: '' - headers: {} + headers: + Content-Type: + - text/html; charset=utf-8 status: 204 No Content - request: body: '' @@ -39,9 +41,9 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/current_user/application_keys/d2653524-a474-460c-a7c7-75073e8aa1fa + url: https://api.datadoghq.com/api/v2/current_user/application_keys/c7a26dee-1619-4ed0-8d1a-0ae4ed94da29 response: - body: '{"errors": ["Application key not found"]}' + body: '{"errors":["Application key not found"]}' code: 404 duration: '' headers: diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.freeze deleted file mode 100644 index 51650d4f87e..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-01-06T00:51:44.384Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.yaml deleted file mode 100644 index 6fcf48eab9c..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_owned_by_current_user_returns_OK_response.yaml +++ /dev/null @@ -1,18 +0,0 @@ -interactions: -- request: - body: '' - form: {} - headers: - Accept: - - application/json - method: GET - url: https://api.datadoghq.com/api/v2/current_user/application_keys - response: - body: '{"meta":{"page":{"total_filtered_count":5},"max_allowed_per_user":1000},"data":[{"type":"application_keys","id":"109352f1-8828-5305-8e07-f9224517a443","attributes":{"name":"1PASSWD_SHARED","created_at":"2021-04-15T14:20:28.940731+00:00","last4":"xxxx","scopes":null}},{"type":"application_keys","id":"b35e8f9a-a94b-5b20-8ec2-4b76dd2e13e1","attributes":{"name":"Romain","created_at":"2021-04-19T14:01:09.155025+00:00","last4":"xxxx","scopes":null}},{"type":"application_keys","id":"6e93352a-06eb-4101-9bd2-59455a0c6e60","attributes":{"name":"terraform-config","created_at":"2021-12-17T20:38:35.465545+00:00","last4":"xxxx","scopes":null}},{"type":"application_keys","id":"b630d042-d295-4fb0-ac6a-e1c105857594","attributes":{"name":"Test-Create_an_Application_key_for_current_user_returns_Created_response-1640112920","created_at":"2021-12-21T18:55:20.747757+00:00","last4":"xxxx","scopes":null}},{"type":"application_keys","id":"568341e8-0afc-4ddb-98da-7323223575f2","attributes":{"name":"Test-Typescript-Create_an_Application_key_for_current_user_returns_Created_response-1640112755","created_at":"2021-12-21T18:52:35.271781+00:00","last4":"xxxx","scopes":null}}]}' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK -version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.freeze deleted file mode 100644 index e81878a6dbf..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-05-12T09:52:17.533Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.yaml deleted file mode 100644 index ca63564edb8..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_Application_keys_returns_OK_response.yaml +++ /dev/null @@ -1,64 +0,0 @@ -interactions: -- request: - body: | - {"data":{"attributes":{"name":"Test-Get_all_Application_keys_returns_OK_response-1652349137"},"type":"application_keys"}} - form: {} - headers: - Accept: - - application/json - Content-Type: - - application/json - method: POST - url: https://api.datadoghq.com/api/v2/current_user/application_keys - response: - body: '{"data":{"type":"application_keys","id":"8381767a-1249-469f-ae20-83f41c880640","attributes":{"name":"Test-Get_all_Application_keys_returns_OK_response-1652349137","created_at":"2022-05-12T09:52:18.315368+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' - code: 201 - duration: '' - headers: - Content-Type: - - application/json - status: 201 Created -- request: - body: '' - form: {} - headers: - Accept: - - application/json - method: GET - url: https://api.datadoghq.com/api/v2/application_keys - response: - body: '{"meta":{"page":{"total_filtered_count":34},"max_allowed_per_user":1000},"data":[{"type":"application_keys","id":"109352f1-8828-5305-8e07-f9224517a443","attributes":{"name":"1PASSWD_SHARED","created_at":"2021-04-15T14:20:28.940731+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"2e7607a6-0589-506d-a2eb-031267b12758","attributes":{"name":"datadog-api-client-go - azp","created_at":"2021-04-15T15:51:25.012740+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"9550d220-6483-515b-a59c-fb1985ab84af","attributes":{"name":"datadog-api-client-java - azp","created_at":"2021-04-15T15:51:06.920975+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"b6c79d32-2a4a-5549-b2d2-f9ca9da5533b","attributes":{"name":"datadog-api-client-python - azp","created_at":"2021-04-16T12:36:45.731594+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"3ca848d1-0392-5776-955a-8e46d9bfc1c9","attributes":{"name":"datadog-api-client-ruby - azp","created_at":"2021-04-16T07:37:26.812295+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"cdc6cacf-b958-50f7-8a50-bdf3e5b003f4","attributes":{"name":"datadog-api-client-typescript - azp","created_at":"2021-04-16T07:52:35.988358+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"85c63381-6392-57db-ab31-2e4772882785","attributes":{"name":"datadog-api-spec - gh","created_at":"2021-04-16T11:21:35.770268+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"e0c5cf11-00a7-5937-bd91-af665c665af9","attributes":{"name":"datadog-cloudformation-resources - ci","created_at":"2021-07-05T15:06:46.010096+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"fcc93355-d5a6-5a59-9712-37f6bb662023","attributes":{"name":"datadogpy - azp","created_at":"2021-04-15T15:28:27.208937+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"b231bb6d-e3ee-5fa4-969d-03fea7293d15","attributes":{"name":"Get - app keys","created_at":"2021-05-25T09:40:46.767264+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"666a9e06-0a49-51aa-9f3a-6d4954d38b9f","attributes":{"name":"Hippo","created_at":"2021-04-15T14:19:16.368956+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"35d26b5f-eba0-11e9-a77a-876976ea2f77"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"bedbcfc2-a1f5-53f4-8da0-912dad42be59","attributes":{"name":"Jiri","created_at":"2021-04-16T10:07:24.951636+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9a56dfbc-009f-11ea-a77b-0b2eff7a464c"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"b35e8f9a-a94b-5b20-8ec2-4b76dd2e13e1","attributes":{"name":"Romain","created_at":"2021-04-19T14:01:09.155025+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"589462a7-d1c9-559c-bbda-578b76475cb5","attributes":{"name":"Sherzod","created_at":"2021-04-22T13:21:12.318791+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"6018c832-80a7-11ea-93dd-43183212bc7a"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"6e93352a-06eb-4101-9bd2-59455a0c6e60","attributes":{"name":"terraform-config","created_at":"2021-12-17T20:38:35.465545+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"180e1ea3-5079-5fb3-a3d2-3a79ebad9f30","attributes":{"name":"terraform-provider-datadog - azp","created_at":"2021-04-15T15:33:01.766357+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"cfc2bdbc-1013-4e59-8dc0-c4ac9bff7fe1","attributes":{"name":"terraform-provider-datadog - github-actions","created_at":"2022-01-27T21:24:12.483638+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"8381767a-1249-469f-ae20-83f41c880640","attributes":{"name":"Test-Get_all_Application_keys_returns_OK_response-1652349137","created_at":"2022-05-12T09:52:18.315368+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"ceff0102-5711-431b-a09e-b3cfc291f1c4","attributes":{"name":"Test-Typescript-Create_an_app_key_for_this_service_account_returns_Created_response-1651997991","created_at":"2022-05-08T08:19:52.119262+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"7633df9c-8050-4db4-b30f-99d5af377b36"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"08dc631b-2d39-4ac9-ad6e-8b08bce08b53","attributes":{"name":"Test-Typescript-Create_an_Application_key_for_current_user_returns_Created_response-1651997952","created_at":"2022-05-08T08:19:12.432932+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"590a18e9-6ead-41d4-939a-c3315830a604","attributes":{"name":"Test-Typescript-Create_an_Application_key_with_scopes_for_current_user_returns_Created_response-1651997952","created_at":"2022-05-08T08:19:13.044905+00:00","last4":"xxxx","scopes":["dashboards_read","dashboards_write","dashboards_public_share"]},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"4b2c4d6e-e645-4b49-a9b3-27564bd503b7","attributes":{"name":"Test-Typescript-Create_an_application_key_with_scopes_for_this_service_account_returns_Created_response-1651997992","created_at":"2022-05-08T08:19:53.159048+00:00","last4":"xxxx","scopes":["dashboards_read","dashboards_write","dashboards_public_share"]},"relationships":{"owned_by":{"data":{"type":"users","id":"753ac844-a032-4929-bf66-aeb738c4ce8d"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"f6fb4056-4caa-4968-8c88-3cb30dd247dd","attributes":{"name":"Test-Typescript-Delete_an_app_key_owned_by_this_service_account_returns_No_Content_response-1651997993","created_at":"2022-05-08T08:19:54.313462+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"1cad3dac-dde3-40e5-b7cb-0bf44543215c"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"88ee564e-5f15-42e3-9d10-ddad747b91f3","attributes":{"name":"Test-Typescript-Delete_an_Application_key_owned_by_current_user_returns_No_Content_response-1651997953","created_at":"2022-05-08T08:19:14.239580+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"50c6f71c-8b90-449e-9f69-98986dc0ae2e","attributes":{"name":"Test-Typescript-Delete_an_Application_key_returns_No_Content_response-1651997954","created_at":"2022-05-08T08:19:14.860573+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"39324b1d-ce99-4617-8fca-1eb729b76c7e","attributes":{"name":"Test-Typescript-Edit_an_app_key_owned_by_this_service_account_returns_OK_response-1651997994-updated","created_at":"2022-05-08T08:19:56.206570+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"1908bda3-f045-4291-aeec-aa27acee5b0f"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"f6e1628e-b807-457f-8a25-55b8d6292e5b","attributes":{"name":"Test-Typescript-Edit_an_application_key_owned_by_current_user_returns_OK_response-1651997955-updated","created_at":"2022-05-08T08:19:16.263329+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"6b9c3522-6ec5-477b-b4fa-38a64918cbbb","attributes":{"name":"Test-Typescript-Edit_an_application_key_returns_OK_response-1651997956-updated","created_at":"2022-05-08T08:19:17.043133+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"d9afa005-c71a-41e5-9093-0d5fdb712006","attributes":{"name":"Test-Typescript-Get_all_Application_keys_returns_OK_response-1651997958","created_at":"2022-05-08T08:19:19.352673+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"f1769783-8c74-4122-880a-14046f31021d","attributes":{"name":"Test-Typescript-Get_an_application_key_returns_OK_response-1651997959","created_at":"2022-05-08T08:19:19.955857+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"24ee9f8e-2768-444c-9e10-09efe9e2261e","attributes":{"name":"Test-Typescript-Get_one_app_key_owned_by_this_service_account_returns_OK_response-1651997997","created_at":"2022-05-08T08:19:57.863198+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"b088fa51-58d8-41e0-9873-58d86f98637a"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"4a0cd84c-2a13-480b-b008-855e5e499c60","attributes":{"name":"Test-Typescript-Get_one_Application_key_owned_by_current_user_returns_OK_response-1651997960","created_at":"2022-05-08T08:19:20.591904+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"35e64750-c786-4afe-bd17-2ce3c9ac0ba7","attributes":{"name":"tf-TestAccDatadogApplicationKeyDatasource_matchId-local-1652288196 - 1","created_at":"2022-05-11T16:56:49.516769+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"80df2e2a-6ba6-4a5f-8f20-8355880c4f29","attributes":{"name":"tf-TestAccDatadogApplicationKeyDatasource_matchId-local-1652288196 - 2","created_at":"2022-05-11T16:56:49.539656+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}]}' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK -- request: - body: '' - form: {} - headers: - Accept: - - '*/*' - method: DELETE - url: https://api.datadoghq.com/api/v2/current_user/application_keys/8381767a-1249-469f-ae20-83f41c880640 - response: - body: '' - code: 204 - duration: '' - headers: {} - status: 204 No Content -version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.freeze new file mode 100644 index 00000000000..0e24f1e9fa2 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T13:23:16.735Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.yaml new file mode 100644 index 00000000000..9886ad07688 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_owned_by_current_user_returns_OK_response.yaml @@ -0,0 +1,19 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json + method: GET + url: https://api.datadoghq.com/api/v2/current_user/application_keys + response: + body: '{"data":[{"type":"application_keys","id":"fdcdec64-ca51-4208-a259-0405192c6447","attributes":{"name":"1PASSWORD_SHARED","created_at":"2023-10-03T19:27:33.054116+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"95f088d2-cd5f-4aaa-920d-95a87f5ebd3d","attributes":{"name":"datadogpy + gh","created_at":"2023-05-31T17:27:38.214284+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"30b6d66c-d9c9-4d17-a52c-47a46409899d","attributes":{"name":"Example-Get_all_Application_keys_returns_OK_response_1692972923","created_at":"2023-08-25T14:15:23.703248+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"82df708f-76c6-4fbc-a0e0-9048de05a6e9","attributes":{"name":"foo-application1","created_at":"2023-09-18T17:19:29.760324+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"fd73328c-c90a-4453-9e2a-e5d40e918ebe","attributes":{"name":"luis.valini","created_at":"2022-06-21T10:53:15.846482+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"b35e8f9a-a94b-5b20-8ec2-4b76dd2e13e1","attributes":{"name":"Romain","created_at":"2021-04-19T14:01:09.155025+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"6e93352a-06eb-4101-9bd2-59455a0c6e60","attributes":{"name":"terraform-config","created_at":"2021-12-17T20:38:35.465545+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"1460be7f-6ac8-4fe4-968c-c4e37f25641a","attributes":{"name":"Test-Typescript-Get_all_Application_keys_returns_OK_response-1695640119","created_at":"2023-09-25T11:08:39.191668+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"4259f047-940b-447d-ae32-7613d30ce87b","attributes":{"name":"Test-Typescript-Get_an_application_key_returns_OK_response-1695640119","created_at":"2023-09-25T11:08:39.638983+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}},{"type":"application_keys","id":"ee103caa-e8a3-4a31-b4d9-9d1769c4c678","attributes":{"name":"Test-Typescript-Get_one_Application_key_owned_by_current_user_returns_OK_response-1695640119","created_at":"2023-09-25T11:08:40.104889+00:00","last4":"xxxx","scopes":null},"relationships":{"leak_information":{"data":null}}}],"meta":{"page":{"total_filtered_count":10},"max_allowed_per_user":1000}}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.freeze new file mode 100644 index 00000000000..1319e91d539 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T13:28:36.152Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.yaml new file mode 100644 index 00000000000..5be6e52249d --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_all_application_keys_returns_OK_response.yaml @@ -0,0 +1,66 @@ +interactions: +- request: + body: | + {"data":{"attributes":{"name":"Test-Get_all_application_keys_returns_OK_response-1697462916"},"type":"application_keys"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + url: https://api.datadoghq.com/api/v2/current_user/application_keys + response: + body: '{"data":{"type":"application_keys","id":"6104cd8c-fb93-4799-b2f9-6bc65effe94b","attributes":{"name":"Test-Get_all_application_keys_returns_OK_response-1697462916","created_at":"2023-10-16T13:28:36.659625+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' + code: 201 + duration: '' + headers: + Content-Type: + - application/json + status: 201 Created +- request: + body: '' + form: {} + headers: + Accept: + - application/json + method: GET + url: https://api.datadoghq.com/api/v2/application_keys + response: + body: '{"data":[{"type":"application_keys","id":"fdcdec64-ca51-4208-a259-0405192c6447","attributes":{"name":"1PASSWORD_SHARED","created_at":"2023-10-03T19:27:33.054116+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"1af44bbc-b4f7-44be-a7da-e6b01227f87b","attributes":{"name":"anton","created_at":"2023-01-13T18:28:47.292864+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"79762769-9352-11ed-a082-5215624996c0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"f5aa63c8-2623-43c1-8b6b-a05276589f47","attributes":{"name":"Azure + Integrations - Datadog Managed - kevin.zou@datadoghq.com","created_at":"2023-09-14T21:02:41.220686+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"d5bf7f0a-19b0-11ed-b0df-da7ad0900002"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"2e7607a6-0589-506d-a2eb-031267b12758","attributes":{"name":"datadog-api-client-go + azp","created_at":"2021-04-15T15:51:25.012740+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"9550d220-6483-515b-a59c-fb1985ab84af","attributes":{"name":"datadog-api-client-java + azp","created_at":"2021-04-15T15:51:06.920975+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"b6c79d32-2a4a-5549-b2d2-f9ca9da5533b","attributes":{"name":"datadog-api-client-python + azp","created_at":"2021-04-16T12:36:45.731594+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"3ca848d1-0392-5776-955a-8e46d9bfc1c9","attributes":{"name":"datadog-api-client-ruby + azp","created_at":"2021-04-16T07:37:26.812295+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"cdc6cacf-b958-50f7-8a50-bdf3e5b003f4","attributes":{"name":"datadog-api-client-typescript + azp","created_at":"2021-04-16T07:52:35.988358+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"85c63381-6392-57db-ab31-2e4772882785","attributes":{"name":"datadog-api-spec + gh","created_at":"2021-04-16T11:21:35.770268+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"c35ac549-a8b3-4093-985f-2731bbdbbcd4","attributes":{"name":"datadog-api-spec + Live Validation","created_at":"2023-10-04T14:20:53.771922+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"e0c5cf11-00a7-5937-bd91-af665c665af9","attributes":{"name":"datadog-cloudformation-resources + ci","created_at":"2021-07-05T15:06:46.010096+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"95f088d2-cd5f-4aaa-920d-95a87f5ebd3d","attributes":{"name":"datadogpy + gh","created_at":"2023-05-31T17:27:38.214284+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"59944611-3c53-4f7d-861e-69fd2803263c","attributes":{"name":"Example-Edit_an_app_key_owned_by_this_service_account_returns_OK_response_1692972901-updated","created_at":"2023-08-25T14:15:02.734245+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"c8032247-4351-11ee-8617-0201a2edc5cd"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"30b6d66c-d9c9-4d17-a52c-47a46409899d","attributes":{"name":"Example-Get_all_Application_keys_returns_OK_response_1692972923","created_at":"2023-08-25T14:15:23.703248+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"82df708f-76c6-4fbc-a0e0-9048de05a6e9","attributes":{"name":"foo-application1","created_at":"2023-09-18T17:19:29.760324+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"b231bb6d-e3ee-5fa4-969d-03fea7293d15","attributes":{"name":"Get + app keys","created_at":"2021-05-25T09:40:46.767264+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"797166d1-b70f-499d-95dd-be8db25ed7ef","attributes":{"name":"HantingTestAppKey","created_at":"2023-07-17T14:23:52.051345+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"b72434a1-b8ed-11ed-b3c2-da447d6968cb"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"666a9e06-0a49-51aa-9f3a-6d4954d38b9f","attributes":{"name":"Hippo","created_at":"2021-04-15T14:19:16.368956+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"35d26b5f-eba0-11e9-a77a-876976ea2f77"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"bedbcfc2-a1f5-53f4-8da0-912dad42be59","attributes":{"name":"Jiri","created_at":"2021-04-16T10:07:24.951636+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9a56dfbc-009f-11ea-a77b-0b2eff7a464c"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"f06fcae4-eb55-459b-b73f-f017cca38769","attributes":{"name":"KevinZou","created_at":"2023-01-13T21:25:14.138198+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"d5bf7f0a-19b0-11ed-b0df-da7ad0900002"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"fd73328c-c90a-4453-9e2a-e5d40e918ebe","attributes":{"name":"luis.valini","created_at":"2022-06-21T10:53:15.846482+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"3c6c59a9-9f8b-40ad-b7ef-c0f3f1939d57","attributes":{"name":"pcf-remote-config","created_at":"2023-08-02T12:22:46.372973+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"ee9fbb8c-7b52-11eb-9634-da7ad0900002"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"b35e8f9a-a94b-5b20-8ec2-4b76dd2e13e1","attributes":{"name":"Romain","created_at":"2021-04-19T14:01:09.155025+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"589462a7-d1c9-559c-bbda-578b76475cb5","attributes":{"name":"Sherzod","created_at":"2021-04-22T13:21:12.318791+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"6018c832-80a7-11ea-93dd-43183212bc7a"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"14a8e601-703f-4d5c-989c-956599aec3bd","attributes":{"name":"temporarykey","created_at":"2023-03-20T18:39:14.113273+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"d5bf7f0a-19b0-11ed-b0df-da7ad0900002"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"6e93352a-06eb-4101-9bd2-59455a0c6e60","attributes":{"name":"terraform-config","created_at":"2021-12-17T20:38:35.465545+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"180e1ea3-5079-5fb3-a3d2-3a79ebad9f30","attributes":{"name":"terraform-provider-datadog + azp","created_at":"2021-04-15T15:33:01.766357+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"cfc2bdbc-1013-4e59-8dc0-c4ac9bff7fe1","attributes":{"name":"terraform-provider-datadog + github-actions","created_at":"2022-01-27T21:24:12.483638+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"6104cd8c-fb93-4799-b2f9-6bc65effe94b","attributes":{"name":"Test-Get_all_application_keys_returns_OK_response-1697462916","created_at":"2023-10-16T13:28:36.659625+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"1460be7f-6ac8-4fe4-968c-c4e37f25641a","attributes":{"name":"Test-Typescript-Get_all_Application_keys_returns_OK_response-1695640119","created_at":"2023-09-25T11:08:39.191668+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"4259f047-940b-447d-ae32-7613d30ce87b","attributes":{"name":"Test-Typescript-Get_an_application_key_returns_OK_response-1695640119","created_at":"2023-09-25T11:08:39.638983+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},{"type":"application_keys","id":"ee103caa-e8a3-4a31-b4d9-9d1769c4c678","attributes":{"name":"Test-Typescript-Get_one_Application_key_owned_by_current_user_returns_OK_response-1695640119","created_at":"2023-09-25T11:08:40.104889+00:00","last4":"xxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}],"meta":{"page":{"total_filtered_count":32},"max_allowed_per_user":1000}}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +- request: + body: '' + form: {} + headers: + Accept: + - '*/*' + method: DELETE + url: https://api.datadoghq.com/api/v2/current_user/application_keys/6104cd8c-fb93-4799-b2f9-6bc65effe94b + response: + body: '' + code: 204 + duration: '' + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.freeze index 0a0f3555336..9dafa7db2e4 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.freeze @@ -1 +1 @@ -2022-05-12T09:52:21.215Z \ No newline at end of file +2023-10-16T13:21:43.326Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.yaml index 9515fa1371b..2df78f998e2 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Key_Management/Scenario_Get_one_Application_key_owned_by_current_user_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"name":"Test-Get_one_Application_key_owned_by_current_user_returns_OK_response-1652349141"},"type":"application_keys"}} + {"data":{"attributes":{"name":"Test-Get_one_application_key_owned_by_current_user_returns_OK_response-1697462503"},"type":"application_keys"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/current_user/application_keys response: - body: '{"data":{"type":"application_keys","id":"2e0dfbc9-0cca-4824-90b1-8c17489c9d7f","attributes":{"name":"Test-Get_one_Application_key_owned_by_current_user_returns_OK_response-1652349141","created_at":"2022-05-12T09:52:21.621201+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' + body: '{"data":{"type":"application_keys","id":"577b3f55-23d8-44a9-b15c-adff216bbdd0","attributes":{"name":"Test-Get_one_application_key_owned_by_current_user_returns_OK_response-1697462503","created_at":"2023-10-16T13:21:43.802416+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' code: 201 duration: '' headers: @@ -25,10 +25,10 @@ interactions: Accept: - application/json method: GET - url: https://api.datadoghq.com/api/v2/current_user/application_keys/2e0dfbc9-0cca-4824-90b1-8c17489c9d7f + url: https://api.datadoghq.com/api/v2/current_user/application_keys/577b3f55-23d8-44a9-b15c-adff216bbdd0 response: - body: '{"included":[{"type":"roles","id":"94172442-be03-11e9-a77a-3b7612558ac1","attributes":{"name":"Datadog - Admin Role","created_at":"2019-08-13T19:50:19.022791+00:00","modified_at":"2019-08-13T19:50:19.022791+00:00"}},{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"name":null,"handle":"frog@datadoghq.com","created_at":"2019-10-02T08:15:39.795051+00:00","modified_at":"2020-06-15T12:33:12.884459+00:00","email":"frog@datadoghq.com","icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro","title":null,"verified":true,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[{"type":"roles","id":"94172442-be03-11e9-a77a-3b7612558ac1"}]}}}],"data":{"type":"application_keys","id":"2e0dfbc9-0cca-4824-90b1-8c17489c9d7f","attributes":{"name":"Test-Get_one_Application_key_owned_by_current_user_returns_OK_response-1652349141","created_at":"2022-05-12T09:52:21.621201+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}' + body: '{"data":{"type":"application_keys","id":"577b3f55-23d8-44a9-b15c-adff216bbdd0","attributes":{"name":"Test-Get_one_application_key_owned_by_current_user_returns_OK_response-1697462503","created_at":"2023-10-16T13:21:43.802416+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}},"included":[{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"name":null,"handle":"frog@datadoghq.com","created_at":"2019-10-02T08:15:39.795051+00:00","modified_at":"2020-06-15T12:33:12.884459+00:00","email":"frog@datadoghq.com","icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro","title":null,"verified":true,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Active"},"relationships":{"roles":{"data":[{"type":"roles","id":"667cbd82-c7d1-11ec-aad8-da7ad0900002"},{"type":"roles","id":"94172442-be03-11e9-a77a-3b7612558ac1"}]}}},{"type":"roles","id":"667cbd82-c7d1-11ec-aad8-da7ad0900002","attributes":{"name":"abc","created_at":"2022-04-29T15:31:12.318318+00:00","modified_at":"2022-04-29T15:31:12.389973+00:00"}},{"type":"roles","id":"94172442-be03-11e9-a77a-3b7612558ac1","attributes":{"name":"Datadog + Admin Role","created_at":"2019-08-13T19:50:19.022791+00:00","modified_at":"2019-08-13T19:50:19.022791+00:00"}}]}' code: 200 duration: '' headers: @@ -42,11 +42,13 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/current_user/application_keys/2e0dfbc9-0cca-4824-90b1-8c17489c9d7f + url: https://api.datadoghq.com/api/v2/current_user/application_keys/577b3f55-23d8-44a9-b15c-adff216bbdd0 response: body: '' code: 204 duration: '' - headers: {} + headers: + Content-Type: + - text/html; charset=utf-8 status: 204 No Content version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_on_demand_concurrency_cap.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_on_demand_concurrency_cap.freeze deleted file mode 100644 index c14d1378263..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_on_demand_concurrency_cap.freeze +++ /dev/null @@ -1 +0,0 @@ -2023-02-14T13:37:08.530Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_the_on-demand_concurrency_cap_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_the_on-demand_concurrency_cap_returns_OK_response.freeze new file mode 100644 index 00000000000..3a0e0041b43 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_the_on-demand_concurrency_cap_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T14:58:01.913Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_on_demand_concurrency_cap.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_the_on-demand_concurrency_cap_returns_OK_response.yaml similarity index 100% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_on_demand_concurrency_cap.yaml rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Get_the_on-demand_concurrency_cap_returns_OK_response.yaml diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_new_value_for_on-demand_concurrency_cap_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_new_value_for_on-demand_concurrency_cap_returns_OK_response.freeze new file mode 100644 index 00000000000..a4f92a7602e --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_new_value_for_on-demand_concurrency_cap_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T14:58:02.363Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_on_demand_concurrency_cap.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_new_value_for_on-demand_concurrency_cap_returns_OK_response.yaml similarity index 100% rename from tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_on_demand_concurrency_cap.yaml rename to tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_new_value_for_on-demand_concurrency_cap_returns_OK_response.yaml diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_on_demand_concurrency_cap.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_on_demand_concurrency_cap.freeze deleted file mode 100644 index 5869cf0c3d9..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Synthetics/Scenario_Save_on_demand_concurrency_cap.freeze +++ /dev/null @@ -1 +0,0 @@ -2023-02-14T13:37:09.009Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.freeze deleted file mode 100644 index fe587e459ee..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-05-02T16:40:49.556Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.yaml deleted file mode 100644 index 605e6caa560..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Application_Security_returns_OK_response.yaml +++ /dev/null @@ -1,20 +0,0 @@ -interactions: -- request: - body: '' - form: {} - headers: - Accept: - - application/json;datetime-format=rfc3339 - method: GET - url: https://api.datadoghq.com/api/v2/usage/application_security?start_hr=2022-04-27T16%3A40%3A49.556Z&end_hr=2022-04-29T16%3A40%3A49.556Z - response: - body: '{"data":[{"attributes":{"org_name":"DD Integration Tests (321813)","usage_type":"app_sec_host_count","public_id":"fasjyydbcgwwc2uc","timeseries":[{"timestamp":"2022-04-27T16:00:00+00:00","value":null},{"timestamp":"2022-04-27T17:00:00+00:00","value":null},{"timestamp":"2022-04-27T18:00:00+00:00","value":null},{"timestamp":"2022-04-27T19:00:00+00:00","value":null},{"timestamp":"2022-04-27T20:00:00+00:00","value":null},{"timestamp":"2022-04-27T21:00:00+00:00","value":null},{"timestamp":"2022-04-27T22:00:00+00:00","value":null},{"timestamp":"2022-04-27T23:00:00+00:00","value":null},{"timestamp":"2022-04-28T00:00:00+00:00","value":null},{"timestamp":"2022-04-28T01:00:00+00:00","value":null},{"timestamp":"2022-04-28T02:00:00+00:00","value":null},{"timestamp":"2022-04-28T03:00:00+00:00","value":null},{"timestamp":"2022-04-28T04:00:00+00:00","value":null},{"timestamp":"2022-04-28T05:00:00+00:00","value":null},{"timestamp":"2022-04-28T06:00:00+00:00","value":null},{"timestamp":"2022-04-28T07:00:00+00:00","value":null},{"timestamp":"2022-04-28T08:00:00+00:00","value":null},{"timestamp":"2022-04-28T09:00:00+00:00","value":null},{"timestamp":"2022-04-28T10:00:00+00:00","value":null},{"timestamp":"2022-04-28T11:00:00+00:00","value":null},{"timestamp":"2022-04-28T12:00:00+00:00","value":null},{"timestamp":"2022-04-28T13:00:00+00:00","value":null},{"timestamp":"2022-04-28T14:00:00+00:00","value":null},{"timestamp":"2022-04-28T15:00:00+00:00","value":null},{"timestamp":"2022-04-28T16:00:00+00:00","value":null},{"timestamp":"2022-04-28T17:00:00+00:00","value":null},{"timestamp":"2022-04-28T18:00:00+00:00","value":null},{"timestamp":"2022-04-28T19:00:00+00:00","value":null},{"timestamp":"2022-04-28T20:00:00+00:00","value":null},{"timestamp":"2022-04-28T21:00:00+00:00","value":null},{"timestamp":"2022-04-28T22:00:00+00:00","value":null},{"timestamp":"2022-04-28T23:00:00+00:00","value":null},{"timestamp":"2022-04-29T00:00:00+00:00","value":null},{"timestamp":"2022-04-29T01:00:00+00:00","value":null},{"timestamp":"2022-04-29T02:00:00+00:00","value":null},{"timestamp":"2022-04-29T03:00:00+00:00","value":null},{"timestamp":"2022-04-29T04:00:00+00:00","value":null},{"timestamp":"2022-04-29T05:00:00+00:00","value":null},{"timestamp":"2022-04-29T06:00:00+00:00","value":null},{"timestamp":"2022-04-29T07:00:00+00:00","value":null},{"timestamp":"2022-04-29T08:00:00+00:00","value":null},{"timestamp":"2022-04-29T09:00:00+00:00","value":null},{"timestamp":"2022-04-29T10:00:00+00:00","value":null},{"timestamp":"2022-04-29T11:00:00+00:00","value":null},{"timestamp":"2022-04-29T12:00:00+00:00","value":null},{"timestamp":"2022-04-29T13:00:00+00:00","value":null},{"timestamp":"2022-04-29T14:00:00+00:00","value":null},{"timestamp":"2022-04-29T15:00:00+00:00","value":null}],"product_family":"app-sec"},"type":"usage_timeseries","id":"d900c5b51f10a828cb15bf93a63551a184d1eba7b2b6c82d38a0e215193d778d"}]} - - ' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK -version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.freeze deleted file mode 100644 index eb372837a73..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-05-06T18:07:36.459Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.yaml deleted file mode 100644 index 1ba9676bb14..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_Traced_Invocations_returns_OK_response.yaml +++ /dev/null @@ -1,20 +0,0 @@ -interactions: -- request: - body: '' - form: {} - headers: - Accept: - - application/json;datetime-format=rfc3339 - method: GET - url: https://api.datadoghq.com/api/v2/usage/lambda_traced_invocations?start_hr=2022-05-01T18%3A07%3A36.459Z&end_hr=2022-05-03T18%3A07%3A36.459Z - response: - body: '{"data":[{"attributes":{"org_name":"DD Integration Tests (321813)","usage_type":"lambda_traced_invocations_count","public_id":"fasjyydbcgwwc2uc","timeseries":[{"timestamp":"2022-05-01T18:00:00+00:00","value":null},{"timestamp":"2022-05-01T19:00:00+00:00","value":null},{"timestamp":"2022-05-01T20:00:00+00:00","value":null},{"timestamp":"2022-05-01T21:00:00+00:00","value":null},{"timestamp":"2022-05-01T22:00:00+00:00","value":null},{"timestamp":"2022-05-01T23:00:00+00:00","value":null},{"timestamp":"2022-05-02T00:00:00+00:00","value":null},{"timestamp":"2022-05-02T01:00:00+00:00","value":null},{"timestamp":"2022-05-02T02:00:00+00:00","value":null},{"timestamp":"2022-05-02T03:00:00+00:00","value":null},{"timestamp":"2022-05-02T04:00:00+00:00","value":null},{"timestamp":"2022-05-02T05:00:00+00:00","value":null},{"timestamp":"2022-05-02T06:00:00+00:00","value":null},{"timestamp":"2022-05-02T07:00:00+00:00","value":null},{"timestamp":"2022-05-02T08:00:00+00:00","value":null},{"timestamp":"2022-05-02T09:00:00+00:00","value":null},{"timestamp":"2022-05-02T10:00:00+00:00","value":null},{"timestamp":"2022-05-02T11:00:00+00:00","value":null},{"timestamp":"2022-05-02T12:00:00+00:00","value":null},{"timestamp":"2022-05-02T13:00:00+00:00","value":null},{"timestamp":"2022-05-02T14:00:00+00:00","value":null},{"timestamp":"2022-05-02T15:00:00+00:00","value":null},{"timestamp":"2022-05-02T16:00:00+00:00","value":null},{"timestamp":"2022-05-02T17:00:00+00:00","value":null},{"timestamp":"2022-05-02T18:00:00+00:00","value":null},{"timestamp":"2022-05-02T19:00:00+00:00","value":null},{"timestamp":"2022-05-02T20:00:00+00:00","value":null},{"timestamp":"2022-05-02T21:00:00+00:00","value":null},{"timestamp":"2022-05-02T22:00:00+00:00","value":null},{"timestamp":"2022-05-02T23:00:00+00:00","value":null},{"timestamp":"2022-05-03T00:00:00+00:00","value":null},{"timestamp":"2022-05-03T01:00:00+00:00","value":null},{"timestamp":"2022-05-03T02:00:00+00:00","value":null},{"timestamp":"2022-05-03T03:00:00+00:00","value":null},{"timestamp":"2022-05-03T04:00:00+00:00","value":null},{"timestamp":"2022-05-03T05:00:00+00:00","value":null},{"timestamp":"2022-05-03T06:00:00+00:00","value":null},{"timestamp":"2022-05-03T07:00:00+00:00","value":null},{"timestamp":"2022-05-03T08:00:00+00:00","value":null},{"timestamp":"2022-05-03T09:00:00+00:00","value":null},{"timestamp":"2022-05-03T10:00:00+00:00","value":null},{"timestamp":"2022-05-03T11:00:00+00:00","value":null},{"timestamp":"2022-05-03T12:00:00+00:00","value":null},{"timestamp":"2022-05-03T13:00:00+00:00","value":null},{"timestamp":"2022-05-03T14:00:00+00:00","value":null},{"timestamp":"2022-05-03T15:00:00+00:00","value":null},{"timestamp":"2022-05-03T16:00:00+00:00","value":null},{"timestamp":"2022-05-03T17:00:00+00:00","value":null}],"product_family":"lambda-traced-invocations"},"type":"usage_timeseries","id":"ee1c7b786f4ce991edc30c3f8ef47fd33e26f844679e27a51b458abe6b42e7c5"}]} - - ' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK -version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.freeze deleted file mode 100644 index 4d818160b85..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-04-20T18:23:40.123Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.yaml deleted file mode 100644 index 23584c624e3..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Observability_Pipelines_returns_OK_response.yaml +++ /dev/null @@ -1,20 +0,0 @@ -interactions: -- request: - body: '' - form: {} - headers: - Accept: - - application/json;datetime-format=rfc3339 - method: GET - url: https://api.datadoghq.com/api/v2/usage/observability_pipelines?start_hr=2022-04-15T18%3A23%3A40.123Z&end_hr=2022-04-17T18%3A23%3A40.123Z - response: - body: '{"data":[{"attributes":{"org_name":"DD Integration Tests (321813)","usage_type":"observability_pipelines_bytes_processed","public_id":"fasjyydbcgwwc2uc","timeseries":[{"timestamp":"2022-04-15T18:00:00+00:00","value":null},{"timestamp":"2022-04-15T19:00:00+00:00","value":null},{"timestamp":"2022-04-15T20:00:00+00:00","value":null},{"timestamp":"2022-04-15T21:00:00+00:00","value":null},{"timestamp":"2022-04-15T22:00:00+00:00","value":null},{"timestamp":"2022-04-15T23:00:00+00:00","value":null},{"timestamp":"2022-04-16T00:00:00+00:00","value":null},{"timestamp":"2022-04-16T01:00:00+00:00","value":null},{"timestamp":"2022-04-16T02:00:00+00:00","value":null},{"timestamp":"2022-04-16T03:00:00+00:00","value":null},{"timestamp":"2022-04-16T04:00:00+00:00","value":null},{"timestamp":"2022-04-16T05:00:00+00:00","value":null},{"timestamp":"2022-04-16T06:00:00+00:00","value":null},{"timestamp":"2022-04-16T07:00:00+00:00","value":null},{"timestamp":"2022-04-16T08:00:00+00:00","value":null},{"timestamp":"2022-04-16T09:00:00+00:00","value":null},{"timestamp":"2022-04-16T10:00:00+00:00","value":null},{"timestamp":"2022-04-16T11:00:00+00:00","value":null},{"timestamp":"2022-04-16T12:00:00+00:00","value":null},{"timestamp":"2022-04-16T13:00:00+00:00","value":null},{"timestamp":"2022-04-16T14:00:00+00:00","value":null},{"timestamp":"2022-04-16T15:00:00+00:00","value":null},{"timestamp":"2022-04-16T16:00:00+00:00","value":null},{"timestamp":"2022-04-16T17:00:00+00:00","value":null},{"timestamp":"2022-04-16T18:00:00+00:00","value":null},{"timestamp":"2022-04-16T19:00:00+00:00","value":null},{"timestamp":"2022-04-16T20:00:00+00:00","value":null},{"timestamp":"2022-04-16T21:00:00+00:00","value":null},{"timestamp":"2022-04-16T22:00:00+00:00","value":null},{"timestamp":"2022-04-16T23:00:00+00:00","value":null},{"timestamp":"2022-04-17T00:00:00+00:00","value":null},{"timestamp":"2022-04-17T01:00:00+00:00","value":null},{"timestamp":"2022-04-17T02:00:00+00:00","value":null},{"timestamp":"2022-04-17T03:00:00+00:00","value":null},{"timestamp":"2022-04-17T04:00:00+00:00","value":null},{"timestamp":"2022-04-17T05:00:00+00:00","value":null},{"timestamp":"2022-04-17T06:00:00+00:00","value":null},{"timestamp":"2022-04-17T07:00:00+00:00","value":null},{"timestamp":"2022-04-17T08:00:00+00:00","value":null},{"timestamp":"2022-04-17T09:00:00+00:00","value":null},{"timestamp":"2022-04-17T10:00:00+00:00","value":null},{"timestamp":"2022-04-17T11:00:00+00:00","value":null},{"timestamp":"2022-04-17T12:00:00+00:00","value":null},{"timestamp":"2022-04-17T13:00:00+00:00","value":null},{"timestamp":"2022-04-17T14:00:00+00:00","value":null},{"timestamp":"2022-04-17T15:00:00+00:00","value":null},{"timestamp":"2022-04-17T16:00:00+00:00","value":null},{"timestamp":"2022-04-17T17:00:00+00:00","value":null}],"product_family":"observability-pipelines"},"type":"usage_timeseries","id":"5d1702ab10f060719ae5aa1fd7ba09e3d7e0fb371b8319051c616a1fcad254e9"}]} - - ' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK -version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.freeze new file mode 100644 index 00000000000..b971b406726 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T15:16:50.772Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.yaml new file mode 100644 index 00000000000..643e467680b --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_application_security_returns_OK_response.yaml @@ -0,0 +1,21 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v2/usage/application_security?start_hr=2023-10-11T15%3A16%3A50.772Z&end_hr=2023-10-13T15%3A16%3A50.772Z + response: + body: '{"data":[{"id":"f9835e00af7d43da5fa029132bb2227473df0f5dc80bf2cc1eb51ddb372f47d5","type":"usage_timeseries","attributes":{"product_family":"app-sec","usage_type":"app_sec_host_count","org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","region":"us","timeseries":[{"timestamp":"2023-10-11T15:00:00+00:00","value":null},{"timestamp":"2023-10-11T16:00:00+00:00","value":null},{"timestamp":"2023-10-11T17:00:00+00:00","value":null},{"timestamp":"2023-10-11T18:00:00+00:00","value":null},{"timestamp":"2023-10-11T19:00:00+00:00","value":null},{"timestamp":"2023-10-11T20:00:00+00:00","value":null},{"timestamp":"2023-10-11T21:00:00+00:00","value":null},{"timestamp":"2023-10-11T22:00:00+00:00","value":null},{"timestamp":"2023-10-11T23:00:00+00:00","value":null},{"timestamp":"2023-10-12T00:00:00+00:00","value":null},{"timestamp":"2023-10-12T01:00:00+00:00","value":null},{"timestamp":"2023-10-12T02:00:00+00:00","value":null},{"timestamp":"2023-10-12T03:00:00+00:00","value":null},{"timestamp":"2023-10-12T04:00:00+00:00","value":null},{"timestamp":"2023-10-12T05:00:00+00:00","value":null},{"timestamp":"2023-10-12T06:00:00+00:00","value":null},{"timestamp":"2023-10-12T07:00:00+00:00","value":null},{"timestamp":"2023-10-12T08:00:00+00:00","value":null},{"timestamp":"2023-10-12T09:00:00+00:00","value":null},{"timestamp":"2023-10-12T10:00:00+00:00","value":null},{"timestamp":"2023-10-12T11:00:00+00:00","value":null},{"timestamp":"2023-10-12T12:00:00+00:00","value":null},{"timestamp":"2023-10-12T13:00:00+00:00","value":null},{"timestamp":"2023-10-12T14:00:00+00:00","value":null},{"timestamp":"2023-10-12T15:00:00+00:00","value":null},{"timestamp":"2023-10-12T16:00:00+00:00","value":null},{"timestamp":"2023-10-12T17:00:00+00:00","value":null},{"timestamp":"2023-10-12T18:00:00+00:00","value":null},{"timestamp":"2023-10-12T19:00:00+00:00","value":null},{"timestamp":"2023-10-12T20:00:00+00:00","value":null},{"timestamp":"2023-10-12T21:00:00+00:00","value":null},{"timestamp":"2023-10-12T22:00:00+00:00","value":null},{"timestamp":"2023-10-12T23:00:00+00:00","value":null},{"timestamp":"2023-10-13T00:00:00+00:00","value":null},{"timestamp":"2023-10-13T01:00:00+00:00","value":null},{"timestamp":"2023-10-13T02:00:00+00:00","value":null},{"timestamp":"2023-10-13T03:00:00+00:00","value":null},{"timestamp":"2023-10-13T04:00:00+00:00","value":null},{"timestamp":"2023-10-13T05:00:00+00:00","value":null},{"timestamp":"2023-10-13T06:00:00+00:00","value":null},{"timestamp":"2023-10-13T07:00:00+00:00","value":null},{"timestamp":"2023-10-13T08:00:00+00:00","value":null},{"timestamp":"2023-10-13T09:00:00+00:00","value":null},{"timestamp":"2023-10-13T10:00:00+00:00","value":null},{"timestamp":"2023-10-13T11:00:00+00:00","value":null},{"timestamp":"2023-10-13T12:00:00+00:00","value":null},{"timestamp":"2023-10-13T13:00:00+00:00","value":null},{"timestamp":"2023-10-13T14:00:00+00:00","value":null}]}}]} + + ' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.freeze new file mode 100644 index 00000000000..35133903061 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T15:12:09.282Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.yaml new file mode 100644 index 00000000000..9bda91d3c63 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_lambda_traced_invocations_returns_OK_response.yaml @@ -0,0 +1,21 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v2/usage/lambda_traced_invocations?start_hr=2023-10-11T15%3A12%3A09.282Z&end_hr=2023-10-13T15%3A12%3A09.282Z + response: + body: '{"data":[{"id":"355647a75c3260178b469bb5f0d27751bcdf74c97170e13d55553bee12f9462f","type":"usage_timeseries","attributes":{"product_family":"lambda-traced-invocations","usage_type":"lambda_traced_invocations_count","org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","region":"us","timeseries":[{"timestamp":"2023-10-11T15:00:00+00:00","value":null},{"timestamp":"2023-10-11T16:00:00+00:00","value":null},{"timestamp":"2023-10-11T17:00:00+00:00","value":null},{"timestamp":"2023-10-11T18:00:00+00:00","value":null},{"timestamp":"2023-10-11T19:00:00+00:00","value":null},{"timestamp":"2023-10-11T20:00:00+00:00","value":null},{"timestamp":"2023-10-11T21:00:00+00:00","value":null},{"timestamp":"2023-10-11T22:00:00+00:00","value":null},{"timestamp":"2023-10-11T23:00:00+00:00","value":null},{"timestamp":"2023-10-12T00:00:00+00:00","value":null},{"timestamp":"2023-10-12T01:00:00+00:00","value":null},{"timestamp":"2023-10-12T02:00:00+00:00","value":null},{"timestamp":"2023-10-12T03:00:00+00:00","value":null},{"timestamp":"2023-10-12T04:00:00+00:00","value":null},{"timestamp":"2023-10-12T05:00:00+00:00","value":null},{"timestamp":"2023-10-12T06:00:00+00:00","value":null},{"timestamp":"2023-10-12T07:00:00+00:00","value":null},{"timestamp":"2023-10-12T08:00:00+00:00","value":null},{"timestamp":"2023-10-12T09:00:00+00:00","value":null},{"timestamp":"2023-10-12T10:00:00+00:00","value":null},{"timestamp":"2023-10-12T11:00:00+00:00","value":null},{"timestamp":"2023-10-12T12:00:00+00:00","value":null},{"timestamp":"2023-10-12T13:00:00+00:00","value":null},{"timestamp":"2023-10-12T14:00:00+00:00","value":null},{"timestamp":"2023-10-12T15:00:00+00:00","value":null},{"timestamp":"2023-10-12T16:00:00+00:00","value":null},{"timestamp":"2023-10-12T17:00:00+00:00","value":null},{"timestamp":"2023-10-12T18:00:00+00:00","value":null},{"timestamp":"2023-10-12T19:00:00+00:00","value":null},{"timestamp":"2023-10-12T20:00:00+00:00","value":null},{"timestamp":"2023-10-12T21:00:00+00:00","value":null},{"timestamp":"2023-10-12T22:00:00+00:00","value":null},{"timestamp":"2023-10-12T23:00:00+00:00","value":null},{"timestamp":"2023-10-13T00:00:00+00:00","value":null},{"timestamp":"2023-10-13T01:00:00+00:00","value":null},{"timestamp":"2023-10-13T02:00:00+00:00","value":null},{"timestamp":"2023-10-13T03:00:00+00:00","value":null},{"timestamp":"2023-10-13T04:00:00+00:00","value":null},{"timestamp":"2023-10-13T05:00:00+00:00","value":null},{"timestamp":"2023-10-13T06:00:00+00:00","value":null},{"timestamp":"2023-10-13T07:00:00+00:00","value":null},{"timestamp":"2023-10-13T08:00:00+00:00","value":null},{"timestamp":"2023-10-13T09:00:00+00:00","value":null},{"timestamp":"2023-10-13T10:00:00+00:00","value":null},{"timestamp":"2023-10-13T11:00:00+00:00","value":null},{"timestamp":"2023-10-13T12:00:00+00:00","value":null},{"timestamp":"2023-10-13T13:00:00+00:00","value":null},{"timestamp":"2023-10-13T14:00:00+00:00","value":null}]}}]} + + ' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.freeze new file mode 100644 index 00000000000..1bf44591bfa --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T15:14:35.114Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.yaml new file mode 100644 index 00000000000..61600e408fa --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_observability_pipelines_returns_OK_response.yaml @@ -0,0 +1,21 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v2/usage/observability_pipelines?start_hr=2023-10-11T15%3A14%3A35.114Z&end_hr=2023-10-13T15%3A14%3A35.114Z + response: + body: '{"data":[{"id":"b2fd311762e6a3cf23ce2e3dbd80e786a13193c6b28f01b296042c0e2f1264f9","type":"usage_timeseries","attributes":{"product_family":"observability-pipelines","usage_type":"observability_pipelines_bytes_processed","org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","region":"us","timeseries":[{"timestamp":"2023-10-11T15:00:00+00:00","value":null},{"timestamp":"2023-10-11T16:00:00+00:00","value":null},{"timestamp":"2023-10-11T17:00:00+00:00","value":null},{"timestamp":"2023-10-11T18:00:00+00:00","value":null},{"timestamp":"2023-10-11T19:00:00+00:00","value":null},{"timestamp":"2023-10-11T20:00:00+00:00","value":null},{"timestamp":"2023-10-11T21:00:00+00:00","value":null},{"timestamp":"2023-10-11T22:00:00+00:00","value":null},{"timestamp":"2023-10-11T23:00:00+00:00","value":null},{"timestamp":"2023-10-12T00:00:00+00:00","value":null},{"timestamp":"2023-10-12T01:00:00+00:00","value":null},{"timestamp":"2023-10-12T02:00:00+00:00","value":null},{"timestamp":"2023-10-12T03:00:00+00:00","value":null},{"timestamp":"2023-10-12T04:00:00+00:00","value":null},{"timestamp":"2023-10-12T05:00:00+00:00","value":null},{"timestamp":"2023-10-12T06:00:00+00:00","value":null},{"timestamp":"2023-10-12T07:00:00+00:00","value":null},{"timestamp":"2023-10-12T08:00:00+00:00","value":null},{"timestamp":"2023-10-12T09:00:00+00:00","value":null},{"timestamp":"2023-10-12T10:00:00+00:00","value":null},{"timestamp":"2023-10-12T11:00:00+00:00","value":null},{"timestamp":"2023-10-12T12:00:00+00:00","value":null},{"timestamp":"2023-10-12T13:00:00+00:00","value":null},{"timestamp":"2023-10-12T14:00:00+00:00","value":null},{"timestamp":"2023-10-12T15:00:00+00:00","value":null},{"timestamp":"2023-10-12T16:00:00+00:00","value":null},{"timestamp":"2023-10-12T17:00:00+00:00","value":null},{"timestamp":"2023-10-12T18:00:00+00:00","value":null},{"timestamp":"2023-10-12T19:00:00+00:00","value":null},{"timestamp":"2023-10-12T20:00:00+00:00","value":null},{"timestamp":"2023-10-12T21:00:00+00:00","value":null},{"timestamp":"2023-10-12T22:00:00+00:00","value":null},{"timestamp":"2023-10-12T23:00:00+00:00","value":null},{"timestamp":"2023-10-13T00:00:00+00:00","value":null},{"timestamp":"2023-10-13T01:00:00+00:00","value":null},{"timestamp":"2023-10-13T02:00:00+00:00","value":null},{"timestamp":"2023-10-13T03:00:00+00:00","value":null},{"timestamp":"2023-10-13T04:00:00+00:00","value":null},{"timestamp":"2023-10-13T05:00:00+00:00","value":null},{"timestamp":"2023-10-13T06:00:00+00:00","value":null},{"timestamp":"2023-10-13T07:00:00+00:00","value":null},{"timestamp":"2023-10-13T08:00:00+00:00","value":null},{"timestamp":"2023-10-13T09:00:00+00:00","value":null},{"timestamp":"2023-10-13T10:00:00+00:00","value":null},{"timestamp":"2023-10-13T11:00:00+00:00","value":null},{"timestamp":"2023-10-13T12:00:00+00:00","value":null},{"timestamp":"2023-10-13T13:00:00+00:00","value":null},{"timestamp":"2023-10-13T14:00:00+00:00","value":null}]}}]} + + ' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.freeze deleted file mode 100644 index c46a2128a85..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.freeze +++ /dev/null @@ -1 +0,0 @@ -2022-05-12T09:53:41.498Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.yaml deleted file mode 100644 index aabd29370ba..00000000000 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_a_user_returns_OK_response.yaml +++ /dev/null @@ -1,53 +0,0 @@ -interactions: -- request: - body: | - {"data":{"attributes":{"email":"Test-Get_a_user_returns_OK_response-1652349221@datadoghq.com","title":"user title"},"type":"users"}} - form: {} - headers: - Accept: - - application/json - Content-Type: - - application/json - method: POST - url: https://api.datadoghq.com/api/v2/users - response: - body: '{"data":{"type":"users","id":"67acec56-d1d9-11ec-ad3d-da7ad0900002","attributes":{"name":null,"handle":"test-get_a_user_returns_ok_response-1652349221@datadoghq.com","created_at":"2022-05-12T09:53:41.912395+00:00","modified_at":"2022-05-12T09:53:41.957201+00:00","email":"test-get_a_user_returns_ok_response-1652349221@datadoghq.com","icon":"https://secure.gravatar.com/avatar/5db040285d603412d82292f9fdac151c?s=48&d=retro","title":"user - title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}' - code: 201 - duration: '' - headers: - Content-Type: - - application/json - status: 201 Created -- request: - body: '' - form: {} - headers: - Accept: - - application/json - method: GET - url: https://api.datadoghq.com/api/v2/users/67acec56-d1d9-11ec-ad3d-da7ad0900002 - response: - body: '{"data":{"type":"users","id":"67acec56-d1d9-11ec-ad3d-da7ad0900002","attributes":{"name":null,"handle":"test-get_a_user_returns_ok_response-1652349221@datadoghq.com","created_at":"2022-05-12T09:53:41.912395+00:00","modified_at":"2022-05-12T09:53:41.957201+00:00","email":"test-get_a_user_returns_ok_response-1652349221@datadoghq.com","icon":"https://secure.gravatar.com/avatar/5db040285d603412d82292f9fdac151c?s=48&d=retro","title":"user - title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}}' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK -- request: - body: '' - form: {} - headers: - Accept: - - '*/*' - method: DELETE - url: https://api.datadoghq.com/api/v2/users/67acec56-d1d9-11ec-ad3d-da7ad0900002 - response: - body: '' - code: 204 - duration: '' - headers: {} - status: 204 No Content -version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.freeze new file mode 100644 index 00000000000..0612a483b28 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.freeze @@ -0,0 +1 @@ +2023-10-16T14:46:45.032Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.yaml new file mode 100644 index 00000000000..7b61ca735c8 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Users/Scenario_Get_user_details_returns_OK_response.yaml @@ -0,0 +1,57 @@ +interactions: +- request: + body: | + {"data":{"attributes":{"email":"Test-Get_user_details_returns_OK_response-1697467605@datadoghq.com","title":"user title"},"type":"users"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + url: https://api.datadoghq.com/api/v2/users + response: + body: '{"data":{"type":"users","id":"d3edd11c-6c32-11ee-9c79-aaef51702d10","attributes":{"name":null,"handle":"test-get_user_details_returns_ok_response-1697467605@datadoghq.com","created_at":"2023-10-16T14:46:45.480711+00:00","modified_at":"2023-10-16T14:46:45.480711+00:00","email":"test-get_user_details_returns_ok_response-1697467605@datadoghq.com","icon":"https://secure.gravatar.com/avatar/64901293a45aa6f5fa32d0fa57decdb2?s=48&d=retro","title":"user + title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}} + + ' + code: 201 + duration: '' + headers: + Content-Type: + - application/json + status: 201 Created +- request: + body: '' + form: {} + headers: + Accept: + - application/json + method: GET + url: https://api.datadoghq.com/api/v2/users/d3edd11c-6c32-11ee-9c79-aaef51702d10 + response: + body: '{"data":{"type":"users","id":"d3edd11c-6c32-11ee-9c79-aaef51702d10","attributes":{"name":null,"handle":"test-get_user_details_returns_ok_response-1697467605@datadoghq.com","created_at":"2023-10-16T14:46:45.480711+00:00","modified_at":"2023-10-16T14:46:45.480711+00:00","email":"test-get_user_details_returns_ok_response-1697467605@datadoghq.com","icon":"https://secure.gravatar.com/avatar/64901293a45aa6f5fa32d0fa57decdb2?s=48&d=retro","title":"user + title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending"},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}} + + ' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +- request: + body: '' + form: {} + headers: + Accept: + - '*/*' + method: DELETE + url: https://api.datadoghq.com/api/v2/users/d3edd11c-6c32-11ee-9c79-aaef51702d10 + response: + body: '' + code: 204 + duration: '' + headers: {} + status: 204 No Content +version: 1 diff --git a/tests/scenarios/features/v2/confluent_cloud.feature b/tests/scenarios/features/v2/confluent_cloud.feature index f1c66a20d9e..a936d45c1fd 100644 --- a/tests/scenarios/features/v2/confluent_cloud.feature +++ b/tests/scenarios/features/v2/confluent_cloud.feature @@ -71,10 +71,11 @@ Feature: Confluent Cloud When the request is sent Then the response status is 404 Not Found - @generated @skip @team:Datadog/web-integrations + @team:Datadog/web-integrations Scenario: Delete Confluent account returns "OK" response - Given new "DeleteConfluentAccount" request - And request contains "account_id" parameter from "REPLACE.ME" + Given there is a valid "confluent_account" in the system + And new "DeleteConfluentAccount" request + And request contains "account_id" parameter from "confluent_account.data.id" When the request is sent Then the response status is 204 OK @@ -94,11 +95,11 @@ Feature: Confluent Cloud When the request is sent Then the response status is 404 Not Found - @team:Datadog/web-integrations + @generated @skip @team:Datadog/web-integrations Scenario: Delete resource from Confluent account returns "OK" response - Given there is a valid "confluent_account" in the system - And new "DeleteConfluentAccount" request - And request contains "account_id" parameter from "confluent_account.data.id" + Given new "DeleteConfluentResource" request + And request contains "account_id" parameter from "REPLACE.ME" + And request contains "resource_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 204 OK diff --git a/tests/scenarios/features/v2/downtimes.feature b/tests/scenarios/features/v2/downtimes.feature index 425fb5f2182..71597937ab0 100644 --- a/tests/scenarios/features/v2/downtimes.feature +++ b/tests/scenarios/features/v2/downtimes.feature @@ -58,12 +58,14 @@ Feature: Downtimes When the request is sent Then the response status is 404 Monitor Not Found error - @generated @skip @team:DataDog/monitor-app + @replay-only @team:DataDog/monitor-app Scenario: Get active downtimes for a monitor returns "OK" response Given new "ListMonitorDowntimes" request - And request contains "monitor_id" parameter from "REPLACE.ME" + And request contains "monitor_id" parameter with value 35534610 When the request is sent Then the response status is 200 OK + And the response "data" has length 1 + And the response "data" has item with field "id" with value "aeefc6a8-15d8-11ee-a8ef-da7ad0900002" @team:DataDog/monitor-app Scenario: Get all downtimes for a monitor returns "Monitor Not Found error" response @@ -72,15 +74,6 @@ Feature: Downtimes When the request is sent Then the response status is 404 Monitor Not Found error - @replay-only @team:DataDog/monitor-app - Scenario: Get all downtimes for a monitor returns "OK" response - Given new "ListMonitorDowntimes" request - And request contains "monitor_id" parameter with value 35534610 - When the request is sent - Then the response status is 200 OK - And the response "data" has length 1 - And the response "data" has item with field "id" with value "aeefc6a8-15d8-11ee-a8ef-da7ad0900002" - @replay-only @team:DataDog/monitor-app Scenario: Get all downtimes returns "OK" response Given new "ListDowntimes" request diff --git a/tests/scenarios/features/v2/key_management.feature b/tests/scenarios/features/v2/key_management.feature index a5b4f22cf4f..47a50604b49 100644 --- a/tests/scenarios/features/v2/key_management.feature +++ b/tests/scenarios/features/v2/key_management.feature @@ -26,15 +26,6 @@ Feature: Key Management And the response "data.type" is equal to "api_keys" And the response "data.attributes.name" is equal to "{{ unique }}" - @team:DataDog/credentials-management - Scenario: Create an Application key for current user returns "Created" response - Given new "CreateCurrentUserApplicationKey" request - And body with value {"data": {"type": "application_keys", "attributes": {"name": "{{ unique }}"}}} - When the request is sent - Then the response status is 201 Created - And the response "data.type" is equal to "application_keys" - And the response "data.attributes.name" is equal to "{{ unique }}" - @team:DataDog/credentials-management Scenario: Create an Application key with scopes for current user returns "Created" response Given new "CreateCurrentUserApplicationKey" request @@ -51,12 +42,14 @@ Feature: Key Management When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/credentials-management + @team:DataDog/credentials-management Scenario: Create an application key for current user returns "Created" response Given new "CreateCurrentUserApplicationKey" request - And body with value {"data": {"attributes": {"name": "Application Key for managing dashboards", "scopes": ["dashboards_read", "dashboards_write", "dashboards_public_share"]}, "type": "application_keys"}} + And body with value {"data": {"type": "application_keys", "attributes": {"name": "{{ unique }}"}}} When the request is sent Then the response status is 201 Created + And the response "data.type" is equal to "application_keys" + And the response "data.attributes.name" is equal to "{{ unique }}" @team:DataDog/credentials-management Scenario: Delete an API key returns "No Content" response @@ -74,28 +67,13 @@ Feature: Key Management Then the response status is 404 Not Found @team:DataDog/credentials-management - Scenario: Delete an Application key owned by current user returns "No Content" response + Scenario: Delete an application key owned by current user returns "No Content" response Given there is a valid "application_key" in the system And new "DeleteCurrentUserApplicationKey" request And request contains "app_key_id" parameter from "application_key.data.id" When the request is sent Then the response status is 204 No Content - @team:DataDog/credentials-management - Scenario: Delete an Application key returns "No Content" response - Given there is a valid "application_key" in the system - And new "DeleteApplicationKey" request - And request contains "app_key_id" parameter from "application_key.data.id" - When the request is sent - Then the response status is 204 No Content - - @generated @skip @team:DataDog/credentials-management - Scenario: Delete an application key owned by current user returns "No Content" response - Given new "DeleteCurrentUserApplicationKey" request - And request contains "app_key_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 204 No Content - @generated @skip @team:DataDog/credentials-management Scenario: Delete an application key owned by current user returns "Not Found" response Given new "DeleteCurrentUserApplicationKey" request @@ -103,10 +81,11 @@ Feature: Key Management When the request is sent Then the response status is 404 Not Found - @generated @skip @team:DataDog/credentials-management + @team:DataDog/credentials-management Scenario: Delete an application key returns "No Content" response - Given new "DeleteApplicationKey" request - And request contains "app_key_id" parameter from "REPLACE.ME" + Given there is a valid "application_key" in the system + And new "DeleteApplicationKey" request + And request contains "app_key_id" parameter from "application_key.data.id" When the request is sent Then the response status is 204 No Content @@ -233,21 +212,6 @@ Feature: Key Management Then the response status is 200 OK And the response "data[0].type" is equal to "api_keys" - @team:DataDog/credentials-management - Scenario: Get all Application keys owned by current user returns "OK" response - Given new "ListCurrentUserApplicationKeys" request - When the request is sent - Then the response status is 200 OK - And the response "data[0].type" is equal to "application_keys" - - @team:DataDog/credentials-management - Scenario: Get all Application keys returns "OK" response - Given there is a valid "application_key" in the system - And new "ListApplicationKeys" request - When the request is sent - Then the response status is 200 OK - And the response "data[0].type" is equal to "application_keys" - @generated @skip @team:DataDog/credentials-management Scenario: Get all application keys owned by current user returns "Bad Request" response Given new "ListCurrentUserApplicationKeys" request @@ -260,11 +224,12 @@ Feature: Key Management When the request is sent Then the response status is 404 Not Found - @generated @skip @team:DataDog/credentials-management + @team:DataDog/credentials-management Scenario: Get all application keys owned by current user returns "OK" response Given new "ListCurrentUserApplicationKeys" request When the request is sent Then the response status is 200 OK + And the response "data[0].type" is equal to "application_keys" @generated @skip @team:DataDog/credentials-management Scenario: Get all application keys returns "Bad Request" response @@ -278,11 +243,13 @@ Feature: Key Management When the request is sent Then the response status is 404 Not Found - @generated @skip @team:DataDog/credentials-management + @team:DataDog/credentials-management Scenario: Get all application keys returns "OK" response - Given new "ListApplicationKeys" request + Given there is a valid "application_key" in the system + And new "ListApplicationKeys" request When the request is sent Then the response status is 200 OK + And the response "data[0].type" is equal to "application_keys" @generated @skip @team:DataDog/credentials-management Scenario: Get an application key returns "Bad Request" response @@ -308,16 +275,6 @@ Feature: Key Management And the response "data.type" is equal to "application_keys" And the response "data.id" has the same value as "application_key.data.id" - @team:DataDog/credentials-management - Scenario: Get one Application key owned by current user returns "OK" response - Given there is a valid "application_key" in the system - And new "GetCurrentUserApplicationKey" request - And request contains "app_key_id" parameter from "application_key.data.id" - When the request is sent - Then the response status is 200 OK - And the response "data.attributes.name" has the same value as "application_key.data.attributes.name" - And the response "data.id" has the same value as "application_key.data.id" - @generated @skip @team:DataDog/credentials-management Scenario: Get one application key owned by current user returns "Not Found" response Given new "GetCurrentUserApplicationKey" request diff --git a/tests/scenarios/features/v2/synthetics.feature b/tests/scenarios/features/v2/synthetics.feature index 2803c246073..a4f59ca1094 100644 --- a/tests/scenarios/features/v2/synthetics.feature +++ b/tests/scenarios/features/v2/synthetics.feature @@ -15,26 +15,13 @@ Feature: Synthetics And an instance of "Synthetics" API @team:DataDog/synthetics-app - Scenario: Get on demand concurrency cap - Given new "GetOnDemandConcurrencyCap" request - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/synthetics-app Scenario: Get the on-demand concurrency cap returns "OK" response Given new "GetOnDemandConcurrencyCap" request When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-app - Scenario: Save new value for on-demand concurrency cap returns "OK" response - Given new "SetOnDemandConcurrencyCap" request - And body with value {} - When the request is sent - Then the response status is 200 OK - @team:DataDog/synthetics-app - Scenario: Save on demand concurrency cap + Scenario: Save new value for on-demand concurrency cap returns "OK" response Given new "SetOnDemandConcurrencyCap" request And body with value {"on_demand_concurrency_cap": 20} When the request is sent diff --git a/tests/scenarios/features/v2/usage_metering.feature b/tests/scenarios/features/v2/usage_metering.feature index f8323f8750b..9c393c3f9e6 100644 --- a/tests/scenarios/features/v2/usage_metering.feature +++ b/tests/scenarios/features/v2/usage_metering.feature @@ -82,16 +82,6 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/red-zone-revenue-query - Scenario: Get hourly usage for Application Security returns "OK" response - Given new "GetUsageApplicationSecurityMonitoring" request - And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" - And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" - When the request is sent - Then the response status is 200 OK - And the response "data[0].type" is equal to "usage_timeseries" - And the response "data[0].attributes.product_family" is equal to "app-sec" - @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Lambda Traced Invocations returns "Bad Request" response Given new "GetUsageLambdaTracedInvocations" request @@ -100,16 +90,6 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/red-zone-revenue-query - Scenario: Get hourly usage for Lambda Traced Invocations returns "OK" response - Given new "GetUsageLambdaTracedInvocations" request - And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" - And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" - When the request is sent - Then the response status is 200 OK - And the response "data[0].type" is equal to "usage_timeseries" - And the response "data[0].attributes.product_family" is equal to "lambda-traced-invocations" - @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Observability Pipelines returns "Bad Request" response Given new "GetUsageObservabilityPipelines" request @@ -118,16 +98,6 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/red-zone-revenue-query - Scenario: Get hourly usage for Observability Pipelines returns "OK" response - Given new "GetUsageObservabilityPipelines" request - And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" - And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" - When the request is sent - Then the response status is 200 OK - And the response "data[0].type" is equal to "usage_timeseries" - And the response "data[0].attributes.product_family" is equal to "observability-pipelines" - @generated @skip @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for application security returns "Bad Request" response Given new "GetUsageApplicationSecurityMonitoring" request @@ -135,12 +105,15 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for application security returns "OK" response Given new "GetUsageApplicationSecurityMonitoring" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK + And the response "data[0].type" is equal to "usage_timeseries" + And the response "data[0].attributes.product_family" is equal to "app-sec" @generated @skip @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for lambda traced invocations returns "Bad Request" response @@ -149,12 +122,15 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for lambda traced invocations returns "OK" response Given new "GetUsageLambdaTracedInvocations" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK + And the response "data[0].type" is equal to "usage_timeseries" + And the response "data[0].attributes.product_family" is equal to "lambda-traced-invocations" @generated @skip @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for observability pipelines returns "Bad Request" response @@ -163,12 +139,15 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for observability pipelines returns "OK" response Given new "GetUsageObservabilityPipelines" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK + And the response "data[0].type" is equal to "usage_timeseries" + And the response "data[0].attributes.product_family" is equal to "observability-pipelines" @team:DataDog/red-zone-revenue-query Scenario: GetEstimatedCostByOrg with both start_month and start_date returns "Bad Request" response diff --git a/tests/scenarios/features/v2/users.feature b/tests/scenarios/features/v2/users.feature index 9c4f7f742f8..ce27d729985 100644 --- a/tests/scenarios/features/v2/users.feature +++ b/tests/scenarios/features/v2/users.feature @@ -88,17 +88,6 @@ Feature: Users Then the response status is 200 OK And the response "data" has length 0 - @team:DataDog/team-aaa-identity - Scenario: Get a user returns "OK" response - Given there is a valid "user" in the system - And new "GetUser" request - And request contains "user_id" parameter from "user.data.id" - When the request is sent - Then the response status is 200 OK for get user - And the response "data.id" is equal to "{{ user.data.id }}" - And the response "data.type" is equal to "users" - And the response "data.attributes.handle" is equal to "{{ unique_lower }}@datadoghq.com" - @generated @skip @team:DataDog/team-aaa-identity Scenario: Get user details returns "Not found" response Given new "GetUser" request @@ -106,12 +95,16 @@ Feature: Users When the request is sent Then the response status is 404 Not found - @generated @skip @team:DataDog/team-aaa-identity - Scenario: Get user details returns "OK for get user" response - Given new "GetUser" request - And request contains "user_id" parameter from "REPLACE.ME" + @team:DataDog/team-aaa-identity + Scenario: Get user details returns "OK" response + Given there is a valid "user" in the system + And new "GetUser" request + And request contains "user_id" parameter from "user.data.id" When the request is sent Then the response status is 200 OK for get user + And the response "data.id" is equal to "{{ user.data.id }}" + And the response "data.type" is equal to "users" + And the response "data.attributes.handle" is equal to "{{ unique_lower }}@datadoghq.com" @generated @skip @team:DataDog/team-aaa-identity Scenario: List all users returns "Bad Request" response