diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d2192b7484..fb8574b175 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -9168,6 +9168,11 @@ components: CaseCreateAttributes: description: Case creation attributes properties: + custom_attributes: + additionalProperties: + $ref: '#/components/schemas/CustomAttributeValue' + description: Case custom attributes + type: object description: description: Description type: string @@ -14712,9 +14717,9 @@ components: type: number type: array CustomAttributeMultiStringValue: - description: Value of multi TEXT/URL custom attribute + description: Value of multi TEXT/URL/SELECT custom attribute items: - description: TEXT/URL Value + description: TEXT/URL/SELECT Value type: string type: array CustomAttributeNumberValue: @@ -14722,7 +14727,7 @@ components: format: double type: number CustomAttributeStringValue: - description: Value of TEXT/URL custom attribute + description: Value of TEXT/URL/SELECT custom attribute type: string CustomAttributeType: description: Custom attributes type @@ -14730,12 +14735,14 @@ components: - URL - TEXT - NUMBER + - SELECT example: NUMBER type: string x-enum-varnames: - URL - TEXT - NUMBER + - SELECT CustomAttributeValue: description: Custom attribute values properties: diff --git a/src/datadog_api_client/v2/model/case_create_attributes.py b/src/datadog_api_client/v2/model/case_create_attributes.py index 63997d4187..bd6185bb93 100644 --- a/src/datadog_api_client/v2/model/case_create_attributes.py +++ b/src/datadog_api_client/v2/model/case_create_attributes.py @@ -3,7 +3,7 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import Dict, Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, @@ -14,15 +14,18 @@ if TYPE_CHECKING: + from datadog_api_client.v2.model.custom_attribute_value import CustomAttributeValue from datadog_api_client.v2.model.case_priority import CasePriority class CaseCreateAttributes(ModelNormal): @cached_property def openapi_types(_): + from datadog_api_client.v2.model.custom_attribute_value import CustomAttributeValue from datadog_api_client.v2.model.case_priority import CasePriority return { + "custom_attributes": ({str: (CustomAttributeValue,)},), "description": (str,), "priority": (CasePriority,), "title": (str,), @@ -30,6 +33,7 @@ def openapi_types(_): } attribute_map = { + "custom_attributes": "custom_attributes", "description": "description", "priority": "priority", "title": "title", @@ -40,6 +44,7 @@ def __init__( self_, title: str, type_id: str, + custom_attributes: Union[Dict[str, CustomAttributeValue], UnsetType] = unset, description: Union[str, UnsetType] = unset, priority: Union[CasePriority, UnsetType] = unset, **kwargs, @@ -47,6 +52,9 @@ def __init__( """ Case creation attributes + :param custom_attributes: Case custom attributes + :type custom_attributes: {str: (CustomAttributeValue,)}, optional + :param description: Description :type description: str, optional @@ -59,6 +67,8 @@ def __init__( :param type_id: Case type UUID :type type_id: str """ + if custom_attributes is not unset: + kwargs["custom_attributes"] = custom_attributes if description is not unset: kwargs["description"] = description if priority is not unset: diff --git a/src/datadog_api_client/v2/model/custom_attribute_type.py b/src/datadog_api_client/v2/model/custom_attribute_type.py index 1e91eafa96..066981191f 100644 --- a/src/datadog_api_client/v2/model/custom_attribute_type.py +++ b/src/datadog_api_client/v2/model/custom_attribute_type.py @@ -16,7 +16,7 @@ class CustomAttributeType(ModelSimple): """ Custom attributes type - :param value: Must be one of ["URL", "TEXT", "NUMBER"]. + :param value: Must be one of ["URL", "TEXT", "NUMBER", "SELECT"]. :type value: str """ @@ -24,10 +24,12 @@ class CustomAttributeType(ModelSimple): "URL", "TEXT", "NUMBER", + "SELECT", } URL: ClassVar["CustomAttributeType"] TEXT: ClassVar["CustomAttributeType"] NUMBER: ClassVar["CustomAttributeType"] + SELECT: ClassVar["CustomAttributeType"] @cached_property def openapi_types(_): @@ -39,3 +41,4 @@ def openapi_types(_): CustomAttributeType.URL = CustomAttributeType("URL") CustomAttributeType.TEXT = CustomAttributeType("TEXT") CustomAttributeType.NUMBER = CustomAttributeType("NUMBER") +CustomAttributeType.SELECT = CustomAttributeType("SELECT") diff --git a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.frozen index 586a14bae6..73056732d9 100644 --- a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:29.817Z \ No newline at end of file +2025-12-30T13:49:44.747Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.yaml index 061cadb51d..f85ee7bd02 100644 --- a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"3601878d-b851-43b6-900f-0deb35e536d7","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:30.261735Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"3601878d-b851-43b6-900f-0deb35e536d7","key":"DDFC-82968","merge_status":"NOT_MERGED","priority":"P4","public_id":"83056","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"e3f011bc-8ae6-4ec2-b80d-3069e73bc6a1","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:45.033566Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"e3f011bc-8ae6-4ec2-b80d-3069e73bc6a1","key":"DDFC-98805","merge_status":"NOT_MERGED","priority":"P4","public_id":"99261","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,7 +27,7 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/3601878d-b851-43b6-900f-0deb35e536d7/archive + uri: https://api.datadoghq.com/api/v2/cases/e3f011bc-8ae6-4ec2-b80d-3069e73bc6a1/archive response: body: string: '{"errors":[{"status":"400","title":"Bad Request","detail":"got type diff --git a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.frozen index 1227062611..49fdfee8b6 100644 --- a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:31.029Z \ No newline at end of file +2025-12-30T13:49:45.212Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.yaml index 65856c2e99..e146c3a089 100644 --- a/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_archive_case_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"b5cf9b44-cb77-4487-a436-0e3ef4e88d49","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:31.456149Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b5cf9b44-cb77-4487-a436-0e3ef4e88d49","key":"DDFC-82969","merge_status":"NOT_MERGED","priority":"P4","public_id":"83057","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"926e6b8a-4af6-43b2-8a29-33813af68594","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:45.269528Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"926e6b8a-4af6-43b2-8a29-33813af68594","key":"DDFC-98806","merge_status":"NOT_MERGED","priority":"P4","public_id":"99262","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/b5cf9b44-cb77-4487-a436-0e3ef4e88d49/archive + uri: https://api.datadoghq.com/api/v2/cases/926e6b8a-4af6-43b2-8a29-33813af68594/archive response: body: - string: '{"data":{"id":"b5cf9b44-cb77-4487-a436-0e3ef4e88d49","type":"case","attributes":{"archived_at":"2025-10-01T12:46:31.920596976Z","attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:31.456149Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b5cf9b44-cb77-4487-a436-0e3ef4e88d49","key":"DDFC-82969","merge_status":"NOT_MERGED","modified_at":"2025-10-01T12:46:31.920597Z","priority":"P4","public_id":"83057","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"926e6b8a-4af6-43b2-8a29-33813af68594","type":"case","attributes":{"archived_at":"2025-12-30T13:49:45.40368576Z","attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:45.269528Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"926e6b8a-4af6-43b2-8a29-33813af68594","key":"DDFC-98806","merge_status":"NOT_MERGED","modified_at":"2025-12-30T13:49:45.403686Z","priority":"P4","public_id":"99262","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"modified_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.frozen index ea5b97b0a6..2fd4c4e8f0 100644 --- a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:31.968Z \ No newline at end of file +2025-12-30T13:49:45.450Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.yaml index e2a5392146..8f390aac48 100644 --- a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"1beeecc8-5c4f-4194-a785-e5c60234e263","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:32.453117Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"1beeecc8-5c4f-4194-a785-e5c60234e263","key":"DDFC-82970","merge_status":"NOT_MERGED","priority":"P4","public_id":"83058","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"b3cef7a0-9637-43fb-88cf-d9ac56310a7b","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:45.508531Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b3cef7a0-9637-43fb-88cf-d9ac56310a7b","key":"DDFC-98807","merge_status":"NOT_MERGED","priority":"P4","public_id":"99263","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,7 +27,7 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/1beeecc8-5c4f-4194-a785-e5c60234e263/assign + uri: https://api.datadoghq.com/api/v2/cases/b3cef7a0-9637-43fb-88cf-d9ac56310a7b/assign response: body: string: '{"errors":[{"status":"400","title":"Bad Request"}]}' diff --git a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.frozen index 791da7476a..ff2fee4b64 100644 --- a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:34.590Z \ No newline at end of file +2025-12-30T13:49:45.709Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.yaml index 8e989310ac..dd2f82e1fa 100644 --- a/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_assign_case_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"3266bb95-e129-4377-a6a1-16cbd3e07395","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:35.065341Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"3266bb95-e129-4377-a6a1-16cbd3e07395","key":"DDFC-82971","merge_status":"NOT_MERGED","priority":"P4","public_id":"83059","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"0bb969fd-0864-46a1-8e6d-35434e677004","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:45.922467Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"0bb969fd-0864-46a1-8e6d-35434e677004","key":"DDFC-98808","merge_status":"NOT_MERGED","priority":"P4","public_id":"99264","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -19,7 +20,7 @@ interactions: code: 201 message: Created - request: - body: '{"data":{"attributes":{"email":"Test-Assign_case_returns_OK_response-1759322794@datadoghq.com","title":"user + body: '{"data":{"attributes":{"email":"Test-Assign_case_returns_OK_response-1767102585@datadoghq.com","title":"user title"},"type":"users"}}' headers: accept: @@ -30,8 +31,8 @@ interactions: uri: https://api.datadoghq.com/api/v2/users response: body: - string: '{"data":{"type":"users","id":"aa4556b9-9ec4-11f0-8e55-4666095c4509","attributes":{"name":null,"handle":"test-assign_case_returns_ok_response-1759322794@datadoghq.com","created_at":"2025-10-01T12:46:35.593518+00:00","modified_at":"2025-10-01T12:46:35.593518+00:00","email":"test-assign_case_returns_ok_response-1759322794@datadoghq.com","icon":"https://secure.gravatar.com/avatar/0b128b1184e8a9942ff24d7a55b04d84?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"}}}}} + string: '{"data":{"type":"users","id":"06fe1d45-8040-47eb-b161-837f416635e7","attributes":{"name":null,"handle":"test-assign_case_returns_ok_response-1767102585@datadoghq.com","created_at":"2025-12-30T13:49:46.123532+00:00","modified_at":"2025-12-30T13:49:46.123532+00:00","email":"test-assign_case_returns_ok_response-1767102585@datadoghq.com","icon":"https://secure.gravatar.com/avatar/7ef6584479871df45cdfa7868fcc1849?s=48&d=retro","title":"user + title","verified":false,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Pending","last_login_time":null},"relationships":{"roles":{"data":[]},"org":{"data":{"type":"orgs","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5"}}}}} ' headers: @@ -41,18 +42,19 @@ interactions: code: 201 message: Created - request: - body: '{"data":{"attributes":{"assignee_id":"aa4556b9-9ec4-11f0-8e55-4666095c4509"},"type":"case"}}' + body: '{"data":{"attributes":{"assignee_id":"06fe1d45-8040-47eb-b161-837f416635e7"},"type":"case"}}' headers: accept: - application/json content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/3266bb95-e129-4377-a6a1-16cbd3e07395/assign + uri: https://api.datadoghq.com/api/v2/cases/0bb969fd-0864-46a1-8e6d-35434e677004/assign response: body: - string: '{"data":{"id":"3266bb95-e129-4377-a6a1-16cbd3e07395","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:35.065341Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"3266bb95-e129-4377-a6a1-16cbd3e07395","key":"DDFC-82971","merge_status":"NOT_MERGED","modified_at":"2025-10-01T12:46:36.127269Z","priority":"P4","public_id":"83059","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"assignee":{"data":{"id":"aa4556b9-9ec4-11f0-8e55-4666095c4509","type":"user"}},"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}},{"id":"aa4556b9-9ec4-11f0-8e55-4666095c4509","type":"user","attributes":{"active":false,"email":"test-assign_case_returns_ok_response-1759322794@datadoghq.com","handle":"test-assign_case_returns_ok_response-1759322794@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"0bb969fd-0864-46a1-8e6d-35434e677004","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:45.922467Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"0bb969fd-0864-46a1-8e6d-35434e677004","key":"DDFC-98808","merge_status":"NOT_MERGED","modified_at":"2025-12-30T13:49:46.211933Z","priority":"P4","public_id":"99264","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"assignee":{"data":{"id":"06fe1d45-8040-47eb-b161-837f416635e7","type":"user"}},"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"modified_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}},{"id":"06fe1d45-8040-47eb-b161-837f416635e7","type":"user","attributes":{"active":false,"email":"test-assign_case_returns_ok_response-1767102585@datadoghq.com","handle":"test-assign_case_returns_ok_response-1767102585@datadoghq.com","name":""}}]}' headers: content-type: - application/vnd.api+json @@ -65,7 +67,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/users/aa4556b9-9ec4-11f0-8e55-4666095c4509 + uri: https://api.datadoghq.com/api/v2/users/06fe1d45-8040-47eb-b161-837f416635e7 response: body: string: '' diff --git a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.frozen index bea3893eb2..7a164c32e7 100644 --- a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:36.797Z \ No newline at end of file +2025-12-30T13:49:46.568Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.yaml index fc022b2623..1c4c1f58a6 100644 --- a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"5ce18aba-c435-4b23-9818-bf79e97dcc66","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:37.280816Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"5ce18aba-c435-4b23-9818-bf79e97dcc66","key":"DDFC-82972","merge_status":"NOT_MERGED","priority":"P4","public_id":"83060","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"dabff9f7-18d4-40ac-acd5-50b2d311ff53","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:46.622659Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"dabff9f7-18d4-40ac-acd5-50b2d311ff53","key":"DDFC-98809","merge_status":"NOT_MERGED","priority":"P4","public_id":"99265","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,7 +27,7 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/5ce18aba-c435-4b23-9818-bf79e97dcc66/comment + uri: https://api.datadoghq.com/api/v2/cases/dabff9f7-18d4-40ac-acd5-50b2d311ff53/comment response: body: string: '{"errors":[{"status":"400","title":"Bad Request"}]}' diff --git a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.frozen index 654ac6feec..98b9d1fc74 100644 --- a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:38.181Z \ No newline at end of file +2025-12-30T13:49:46.777Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.yaml index a68516ecc2..06cce9921b 100644 --- a/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_comment_case_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"1e943f20-0e96-4833-bc3f-728b8991d32e","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:38.628783Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"1e943f20-0e96-4833-bc3f-728b8991d32e","key":"DDFC-82973","merge_status":"NOT_MERGED","priority":"P4","public_id":"83061","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"84a0af3b-6609-442a-b4de-b082652354cf","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:46.840801Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"84a0af3b-6609-442a-b4de-b082652354cf","key":"DDFC-98810","merge_status":"NOT_MERGED","priority":"P4","public_id":"99266","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/1e943f20-0e96-4833-bc3f-728b8991d32e/comment + uri: https://api.datadoghq.com/api/v2/cases/84a0af3b-6609-442a-b4de-b082652354cf/comment response: body: - string: '{"data":[{"id":"d18d2a69-215e-40e6-a186-445ac1291dee","type":"timeline_cell","attributes":{"author":{"type":"USER","content":{"ID":"3ad549bf-eba0-11e9-a77a-0705486660d0","name":"frog","email":"frog@datadoghq.com","handle":"frog@datadoghq.com","active":true}},"cell_content":{"message":"Hello - World !"},"content":"{\"message\":\"Hello World !\"}","created_at":"2025-10-01T12:46:39.051704699Z","type":"COMMENT"}}]}' + string: '{"data":[{"id":"2df6429f-8148-440c-a959-e6503f42709b","type":"timeline_cell","attributes":{"author":{"type":"USER","content":{"ID":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account","email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","active":true}},"cell_content":{"message":"Hello + World !"},"content":"{\"message\":\"Hello World !\"}","created_at":"2025-12-30T13:49:46.968106806Z","type":"COMMENT"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.frozen index e7e401d337..86ab74d050 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:41.670Z \ No newline at end of file +2025-12-30T13:49:47.018Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.yaml index 5cb563dd01..1a0781cde5 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_case_comment_returns_not_found_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"41de4d6f-9ed2-478f-b180-3a383c14dc64","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:42.111632Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"41de4d6f-9ed2-478f-b180-3a383c14dc64","key":"DDFC-82975","merge_status":"NOT_MERGED","priority":"P4","public_id":"83064","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"e48aba34-ea79-45c7-a425-56d5b09c9fc4","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:47.073795Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"e48aba34-ea79-45c7-a425-56d5b09c9fc4","key":"DDFC-98811","merge_status":"NOT_MERGED","priority":"P4","public_id":"99267","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -24,11 +25,11 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/cases/41de4d6f-9ed2-478f-b180-3a383c14dc64/comment/23fca2aa-4967-4936-bdd7-9157d9e456d7 + uri: https://api.datadoghq.com/api/v2/cases/e48aba34-ea79-45c7-a425-56d5b09c9fc4/comment/23fca2aa-4967-4936-bdd7-9157d9e456d7 response: body: - string: '{"errors":[{"code":"resource_not_found","title":"timeline cell not - found"}]}' + string: '{"errors":[{"code":"resource_not_found","title":"failed to get timeline + cell: timeline cell not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.frozen index 437e011d44..fe06c3881a 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:42.614Z \ No newline at end of file +2025-12-30T13:49:47.272Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.yaml index c090dc3d9b..b95ea14860 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_custom_attribute_from_case_returns_not_found_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"16b310dd-5329-48c5-82fe-ccd2b39cb0e5","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:43.066117Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"16b310dd-5329-48c5-82fe-ccd2b39cb0e5","key":"DDFC-82976","merge_status":"NOT_MERGED","priority":"P4","public_id":"83065","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"83a5e059-3fde-48b5-b4d4-8bcc5227db32","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:47.318549Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"83a5e059-3fde-48b5-b4d4-8bcc5227db32","key":"DDFC-98812","merge_status":"NOT_MERGED","priority":"P4","public_id":"99268","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -24,11 +25,12 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/cases/16b310dd-5329-48c5-82fe-ccd2b39cb0e5/custom_attributes/invalid_key + uri: https://api.datadoghq.com/api/v2/cases/83a5e059-3fde-48b5-b4d4-8bcc5227db32/custom_attributes/invalid_key response: body: - string: '{"errors":[{"code":"resource_not_found","title":"failed to update case - (command func error): custom attribute configuration not found","meta":{"key":"invalid_key"}}]}' + string: '{"errors":[{"code":"resource_not_found","title":"failed to update batch: + failed to apply command: failed to apply domain.RemoveCustomAttribute command: + custom attribute configuration not found","meta":{"key":"invalid_key"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.frozen index 10a2481a02..64799d6580 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:44.009Z \ No newline at end of file +2025-12-30T13:49:47.488Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.yaml index 2a9cd2260d..468302e63e 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_get_the_details_of_a_case_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"da266ceb-843c-4af1-9190-9f1ab13fd4f4","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:44.422586Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"da266ceb-843c-4af1-9190-9f1ab13fd4f4","key":"DDFC-82977","merge_status":"NOT_MERGED","priority":"P4","public_id":"83066","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"9daaa414-8843-46e2-8360-c36d3713285f","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:47.542749Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"9daaa414-8843-46e2-8360-c36d3713285f","key":"DDFC-98813","merge_status":"NOT_MERGED","priority":"P4","public_id":"99269","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -24,11 +25,12 @@ interactions: accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/cases/da266ceb-843c-4af1-9190-9f1ab13fd4f4 + uri: https://api.datadoghq.com/api/v2/cases/9daaa414-8843-46e2-8360-c36d3713285f response: body: - string: '{"data":{"id":"da266ceb-843c-4af1-9190-9f1ab13fd4f4","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:44.422586Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"da266ceb-843c-4af1-9190-9f1ab13fd4f4","key":"DDFC-82977","merge_status":"NOT_MERGED","priority":"P4","public_id":"83066","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"9daaa414-8843-46e2-8360-c36d3713285f","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:47.542749Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"9daaa414-8843-46e2-8360-c36d3713285f","key":"DDFC-98813","merge_status":"NOT_MERGED","priority":"P4","public_id":"99269","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.frozen index 7fe2db8b1d..b5329637a4 100644 --- a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:44.940Z \ No newline at end of file +2025-12-30T13:49:47.735Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.yaml index 7b8c9cea41..e57e1ba71a 100644 --- a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"add421a8-61e3-416e-85ec-9db7440bc951","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:45.339926Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"add421a8-61e3-416e-85ec-9db7440bc951","key":"DDFC-82978","merge_status":"NOT_MERGED","priority":"P4","public_id":"83067","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"21c1b181-cee4-4b72-bf96-38859d367da4","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:47.783537Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"21c1b181-cee4-4b72-bf96-38859d367da4","key":"DDFC-98814","merge_status":"NOT_MERGED","priority":"P4","public_id":"99270","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,7 +27,7 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/add421a8-61e3-416e-85ec-9db7440bc951/unarchive + uri: https://api.datadoghq.com/api/v2/cases/21c1b181-cee4-4b72-bf96-38859d367da4/unarchive response: body: string: '{"errors":[{"status":"400","title":"Bad Request","detail":"got type diff --git a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.frozen index 5a7cef238b..eee04a8be3 100644 --- a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:46.650Z \ No newline at end of file +2025-12-30T13:49:47.992Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.yaml index 996c765943..8169ec0182 100644 --- a/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_unarchive_case_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"6f53ae15-54ca-418d-b3bc-ae2b039dbb5c","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:47.573675Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6f53ae15-54ca-418d-b3bc-ae2b039dbb5c","key":"DDFC-82979","merge_status":"NOT_MERGED","priority":"P4","public_id":"83068","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"a02bcfe0-5678-49bb-a696-86544bde2bee","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:48.042966Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"a02bcfe0-5678-49bb-a696-86544bde2bee","key":"DDFC-98815","merge_status":"NOT_MERGED","priority":"P4","public_id":"99271","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/6f53ae15-54ca-418d-b3bc-ae2b039dbb5c/unarchive + uri: https://api.datadoghq.com/api/v2/cases/a02bcfe0-5678-49bb-a696-86544bde2bee/unarchive response: body: - string: '{"data":{"id":"6f53ae15-54ca-418d-b3bc-ae2b039dbb5c","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:47.573675Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6f53ae15-54ca-418d-b3bc-ae2b039dbb5c","key":"DDFC-82979","merge_status":"NOT_MERGED","priority":"P4","public_id":"83068","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"a02bcfe0-5678-49bb-a696-86544bde2bee","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:48.042966Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"a02bcfe0-5678-49bb-a696-86544bde2bee","key":"DDFC-98815","merge_status":"NOT_MERGED","priority":"P4","public_id":"99271","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.frozen index 0400accbe4..c94e0251e1 100644 --- a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:48.330Z \ No newline at end of file +2025-12-30T13:49:48.267Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.yaml index d0a650be51..2b85ca53f3 100644 --- a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"976a6c59-d5b2-477a-95e4-00d154bcf447","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:48.896678Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"976a6c59-d5b2-477a-95e4-00d154bcf447","key":"DDFC-82980","merge_status":"NOT_MERGED","priority":"P4","public_id":"83069","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"5fa6cf48-aa31-40bc-9d17-f8f78eea95be","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:48.323172Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"5fa6cf48-aa31-40bc-9d17-f8f78eea95be","key":"DDFC-98816","merge_status":"NOT_MERGED","priority":"P4","public_id":"99272","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,7 +27,7 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/976a6c59-d5b2-477a-95e4-00d154bcf447/unassign + uri: https://api.datadoghq.com/api/v2/cases/5fa6cf48-aa31-40bc-9d17-f8f78eea95be/unassign response: body: string: '{"errors":[{"status":"400","title":"Bad Request","detail":"got type diff --git a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.frozen index 9fe15caf99..ec79ed792b 100644 --- a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:50.389Z \ No newline at end of file +2025-12-30T13:49:48.487Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.yaml index 9fbabebe34..33aaba0a79 100644 --- a/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_unassign_case_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"83f41574-2062-47de-be0e-b3c2ae43ef5c","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:50.896205Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"83f41574-2062-47de-be0e-b3c2ae43ef5c","key":"DDFC-82981","merge_status":"NOT_MERGED","priority":"P4","public_id":"83070","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"6491a991-9117-46dc-9762-ea2cc244e5b3","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:48.538223Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6491a991-9117-46dc-9762-ea2cc244e5b3","key":"DDFC-98817","merge_status":"NOT_MERGED","priority":"P4","public_id":"99273","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/83f41574-2062-47de-be0e-b3c2ae43ef5c/unassign + uri: https://api.datadoghq.com/api/v2/cases/6491a991-9117-46dc-9762-ea2cc244e5b3/unassign response: body: - string: '{"data":{"id":"83f41574-2062-47de-be0e-b3c2ae43ef5c","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:50.896205Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"83f41574-2062-47de-be0e-b3c2ae43ef5c","key":"DDFC-82981","merge_status":"NOT_MERGED","priority":"P4","public_id":"83070","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"6491a991-9117-46dc-9762-ea2cc244e5b3","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:48.538223Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6491a991-9117-46dc-9762-ea2cc244e5b3","key":"DDFC-98817","merge_status":"NOT_MERGED","priority":"P4","public_id":"99273","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.frozen index 9619ed45f8..279957c450 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:52.908Z \ No newline at end of file +2025-12-30T13:49:48.699Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.yaml index ef0492da24..13ded32fb6 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_attributes_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"916e1b61-25b1-4da9-b3a3-000150b675f6","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:53.522427Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"916e1b61-25b1-4da9-b3a3-000150b675f6","key":"DDFC-82982","merge_status":"NOT_MERGED","priority":"P4","public_id":"83071","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"8c6346d6-448d-43a0-b957-b38773438c4f","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:48.757052Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"8c6346d6-448d-43a0-b957-b38773438c4f","key":"DDFC-98818","merge_status":"NOT_MERGED","priority":"P4","public_id":"99274","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/916e1b61-25b1-4da9-b3a3-000150b675f6/attributes + uri: https://api.datadoghq.com/api/v2/cases/8c6346d6-448d-43a0-b957-b38773438c4f/attributes response: body: - string: '{"data":{"id":"916e1b61-25b1-4da9-b3a3-000150b675f6","type":"case","attributes":{"attributes":{"env":["test"],"service":["web-store","web-api"],"team":["engineer"]},"comment_count":0,"created_at":"2025-10-01T12:46:53.522427Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"916e1b61-25b1-4da9-b3a3-000150b675f6","key":"DDFC-82982","merge_status":"NOT_MERGED","modified_at":"2025-10-01T12:46:54.057858Z","priority":"P4","public_id":"83071","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"8c6346d6-448d-43a0-b957-b38773438c4f","type":"case","attributes":{"attributes":{"env":["test"],"service":["web-store","web-api"],"team":["engineer"]},"comment_count":0,"created_at":"2025-12-30T13:49:48.757052Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"8c6346d6-448d-43a0-b957-b38773438c4f","key":"DDFC-98818","merge_status":"NOT_MERGED","modified_at":"2025-12-30T13:49:48.927381Z","priority":"P4","public_id":"99274","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"modified_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.frozen index 3f6e4336b9..ffe59d3bc4 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:54.092Z \ No newline at end of file +2025-12-30T13:49:48.998Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.yaml index 46894eb18c..ea78318ef4 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_custom_attribute_returns_not_found_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"8e87c755-54a9-470a-9118-62a0942ec870","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:54.666096Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"8e87c755-54a9-470a-9118-62a0942ec870","key":"DDFC-82983","merge_status":"NOT_MERGED","priority":"P4","public_id":"83072","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"6ace1538-7ef1-4a00-a0bd-67c8ed9a3cd3","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:49.048411Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6ace1538-7ef1-4a00-a0bd-67c8ed9a3cd3","key":"DDFC-98819","merge_status":"NOT_MERGED","priority":"P4","public_id":"99275","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -27,11 +28,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/8e87c755-54a9-470a-9118-62a0942ec870/custom_attributes/invalid_key + uri: https://api.datadoghq.com/api/v2/cases/6ace1538-7ef1-4a00-a0bd-67c8ed9a3cd3/custom_attributes/invalid_key response: body: - string: '{"errors":[{"code":"resource_not_found","title":"failed to update case - (command func error): custom attribute configuration not found","meta":{"key":"invalid_key"}}]}' + string: '{"errors":[{"code":"resource_not_found","title":"failed to update batch: + failed to apply command: failed to apply domain.UpdateCustomAttribute command: + custom attribute configuration not found","meta":{"key":"invalid_key"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.frozen index f5684a8e2a..338af624d5 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:56.936Z \ No newline at end of file +2025-12-30T13:49:49.217Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.yaml index 36da8a0d68..a9950b1a17 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_description_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"bb8284e0-959e-43db-9920-adf55f37ed7d","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:57.927663Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"bb8284e0-959e-43db-9920-adf55f37ed7d","key":"DDFC-82984","merge_status":"NOT_MERGED","priority":"P4","public_id":"83073","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"a4887f3f-c7a8-47d7-ae65-a1f7ce9687c5","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:49.259766Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"a4887f3f-c7a8-47d7-ae65-a1f7ce9687c5","key":"DDFC-98820","merge_status":"NOT_MERGED","priority":"P4","public_id":"99276","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -27,12 +28,13 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/bb8284e0-959e-43db-9920-adf55f37ed7d/description + uri: https://api.datadoghq.com/api/v2/cases/a4887f3f-c7a8-47d7-ae65-a1f7ce9687c5/description response: body: - string: '{"data":{"id":"bb8284e0-959e-43db-9920-adf55f37ed7d","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:46:57.927663Z","creation_source":"MANUAL","custom_attributes":{},"description":"Seeing - some weird memory increase... Updating the description","insights":[],"internal_id":"bb8284e0-959e-43db-9920-adf55f37ed7d","key":"DDFC-82984","merge_status":"NOT_MERGED","modified_at":"2025-10-01T12:46:59.32863Z","priority":"P4","public_id":"83073","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"a4887f3f-c7a8-47d7-ae65-a1f7ce9687c5","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:49.259766Z","creation_source":"MANUAL","custom_attributes":{},"description":"Seeing + some weird memory increase... Updating the description","insights":[],"internal_id":"a4887f3f-c7a8-47d7-ae65-a1f7ce9687c5","key":"DDFC-98820","merge_status":"NOT_MERGED","modified_at":"2025-12-30T13:49:49.395812Z","priority":"P4","public_id":"99276","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"modified_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.frozen index a4821efc16..40e66d12a7 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:46:59.356Z \ No newline at end of file +2025-12-30T13:49:49.426Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.yaml index d4b0bf869e..670f45b149 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"66eb3131-0b3b-489b-b672-2781600cc1e6","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:00.373489Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"66eb3131-0b3b-489b-b672-2781600cc1e6","key":"DDFC-82985","merge_status":"NOT_MERGED","priority":"P4","public_id":"83074","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"4ef03b27-6d40-455b-8dd8-3f3224a34a7a","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:49.483012Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"4ef03b27-6d40-455b-8dd8-3f3224a34a7a","key":"DDFC-98821","merge_status":"NOT_MERGED","priority":"P4","public_id":"99277","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,11 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/66eb3131-0b3b-489b-b672-2781600cc1e6/priority + uri: https://api.datadoghq.com/api/v2/cases/4ef03b27-6d40-455b-8dd8-3f3224a34a7a/priority response: body: string: '{"errors":[{"title":"Generic Error","detail":"invalid priority P1234. - Must be one of NOT_DEFINED, P1, P2, P3, P4, P5"}]}' + Must be one of P1, P2, P3, P4, P5, NOT_DEFINED"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.frozen index da62d2e6f6..08ad752937 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:47:01.924Z \ No newline at end of file +2025-12-30T13:49:49.632Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.yaml index c168a94771..1ca246a2ca 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_priority_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"d42afb74-0480-4535-bf4d-af0353d32c1c","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:02.764285Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"d42afb74-0480-4535-bf4d-af0353d32c1c","key":"DDFC-82986","merge_status":"NOT_MERGED","priority":"P4","public_id":"83075","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"511f7667-3d80-4498-8118-416211a1a131","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:49.67893Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"511f7667-3d80-4498-8118-416211a1a131","key":"DDFC-98822","merge_status":"NOT_MERGED","priority":"P4","public_id":"99278","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/d42afb74-0480-4535-bf4d-af0353d32c1c/priority + uri: https://api.datadoghq.com/api/v2/cases/511f7667-3d80-4498-8118-416211a1a131/priority response: body: - string: '{"data":{"id":"d42afb74-0480-4535-bf4d-af0353d32c1c","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:02.764285Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"d42afb74-0480-4535-bf4d-af0353d32c1c","key":"DDFC-82986","merge_status":"NOT_MERGED","modified_at":"2025-10-01T12:47:03.296015Z","priority":"P3","public_id":"83075","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"511f7667-3d80-4498-8118-416211a1a131","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:49.67893Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"511f7667-3d80-4498-8118-416211a1a131","key":"DDFC-98822","merge_status":"NOT_MERGED","modified_at":"2025-12-30T13:49:49.835308Z","priority":"P3","public_id":"99278","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"modified_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.frozen index fa70f7c325..b4042237f5 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:47:03.345Z \ No newline at end of file +2025-12-30T13:49:49.865Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.yaml index 1bee73a0d0..1be5ba5466 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"53897bb0-8e8b-4652-985b-0b9e2e8c3a30","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:04.237961Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"53897bb0-8e8b-4652-985b-0b9e2e8c3a30","key":"DDFC-82987","merge_status":"NOT_MERGED","priority":"P4","public_id":"83076","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"ae30545d-e705-493d-a672-7210315ccec2","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:49.916511Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"ae30545d-e705-493d-a672-7210315ccec2","key":"DDFC-98823","merge_status":"NOT_MERGED","priority":"P4","public_id":"99279","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,13 +27,13 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/53897bb0-8e8b-4652-985b-0b9e2e8c3a30/status + uri: https://api.datadoghq.com/api/v2/cases/ae30545d-e705-493d-a672-7210315ccec2/status response: body: string: '{"errors":[{"title":"Generic Error","detail":"invalid status OPENED. - Must be one of CANCELLED, DECLINED, NOT_STARTED, SUNKNOWN, IN_PROGRESS, ACKNOWLEDGED, - TRIGGERED, PENDING_APPROVAL, IMPLEMENTING, COMPLETED, OPEN, CLOSED, RESOLVED, - APPROVED"}]}' + Must be one of NOT_STARTED, IN_PROGRESS, CLOSED, ACKNOWLEDGED, TRIGGERED, + PENDING_APPROVAL, COMPLETED, CANCELLED, DECLINED, SUNKNOWN, OPEN, RESOLVED, + APPROVED, IMPLEMENTING"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.frozen index 447e0043d2..79276a9d78 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:47:05.138Z \ No newline at end of file +2025-12-30T13:49:50.079Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.yaml index e5cc126687..2dbcb4113d 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_status_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"e030702b-1f81-4ff0-94ba-ff9650823cf3","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:05.547127Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"e030702b-1f81-4ff0-94ba-ff9650823cf3","key":"DDFC-82988","merge_status":"NOT_MERGED","priority":"P4","public_id":"83077","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"d417f9be-d247-4ce8-b3e4-ae7a9283f3d6","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:50.123131Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"d417f9be-d247-4ce8-b3e4-ae7a9283f3d6","key":"DDFC-98824","merge_status":"NOT_MERGED","priority":"P4","public_id":"99280","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,11 +27,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/e030702b-1f81-4ff0-94ba-ff9650823cf3/status + uri: https://api.datadoghq.com/api/v2/cases/d417f9be-d247-4ce8-b3e4-ae7a9283f3d6/status response: body: - string: '{"data":{"id":"e030702b-1f81-4ff0-94ba-ff9650823cf3","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:05.547127Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"e030702b-1f81-4ff0-94ba-ff9650823cf3","key":"DDFC-82988","merge_status":"NOT_MERGED","modified_at":"2025-10-01T12:47:05.982532Z","priority":"P4","public_id":"83077","status":"IN_PROGRESS","status_name":"In - Progress","title":"My new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"d417f9be-d247-4ce8-b3e4-ae7a9283f3d6","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:50.123131Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"d417f9be-d247-4ce8-b3e4-ae7a9283f3d6","key":"DDFC-98824","merge_status":"NOT_MERGED","modified_at":"2025-12-30T13:49:50.289934Z","priority":"P4","public_id":"99280","status":"IN_PROGRESS","status_group":"SG_IN_PROGRESS","status_name":"In + Progress","title":"My new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"modified_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.frozen index ca09c6cf32..3cfdb82bc0 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-10-01T12:47:06.013Z \ No newline at end of file +2025-12-30T13:49:50.328Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.yaml index d75ab4eacf..bb14114eb6 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_bad_request_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"de7cd20f-3755-44aa-9f89-846b6ae37124","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:06.439831Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"de7cd20f-3755-44aa-9f89-846b6ae37124","key":"DDFC-82989","merge_status":"NOT_MERGED","priority":"P4","public_id":"83078","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"00a64fed-4338-458b-9af5-77ba6e6c9d7b","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:50.377668Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"00a64fed-4338-458b-9af5-77ba6e6c9d7b","key":"DDFC-98825","merge_status":"NOT_MERGED","priority":"P4","public_id":"99281","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -26,7 +27,7 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/de7cd20f-3755-44aa-9f89-846b6ae37124/title + uri: https://api.datadoghq.com/api/v2/cases/00a64fed-4338-458b-9af5-77ba6e6c9d7b/title response: body: string: '{"errors":[{"status":"400","title":"Bad Request"}]}' diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.frozen index 898a971bbd..7cd7790590 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.frozen @@ -1 +1 @@ -2025-10-01T12:47:07.351Z \ No newline at end of file +2025-12-30T13:49:50.596Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.yaml index a5fe12fcd7..5fe2a9ddac 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_case_title_returns_ok_response.yaml @@ -10,8 +10,9 @@ interactions: uri: https://api.datadoghq.com/api/v2/cases response: body: - string: '{"data":{"id":"4c4bfc12-4f7c-4891-a8d0-70a15a0f29c2","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:07.778878Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"4c4bfc12-4f7c-4891-a8d0-70a15a0f29c2","key":"DDFC-82990","merge_status":"NOT_MERGED","priority":"P4","public_id":"83079","status":"OPEN","status_name":"Open","title":"My - new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"03ec656b-5d21-41c4-a655-ccb18b0aa990","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:50.642707Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"03ec656b-5d21-41c4-a655-ccb18b0aa990","key":"DDFC-98826","merge_status":"NOT_MERGED","priority":"P4","public_id":"99282","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json @@ -27,11 +28,12 @@ interactions: content-type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/4c4bfc12-4f7c-4891-a8d0-70a15a0f29c2/title + uri: https://api.datadoghq.com/api/v2/cases/03ec656b-5d21-41c4-a655-ccb18b0aa990/title response: body: - string: '{"data":{"id":"4c4bfc12-4f7c-4891-a8d0-70a15a0f29c2","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-10-01T12:47:07.778878Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"4c4bfc12-4f7c-4891-a8d0-70a15a0f29c2","key":"DDFC-82990","merge_status":"NOT_MERGED","modified_at":"2025-10-01T12:47:08.214456Z","priority":"P4","public_id":"83079","status":"OPEN","status_name":"Open","title":"[UPDATED] - Memory leak investigation on API","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + string: '{"data":{"id":"03ec656b-5d21-41c4-a655-ccb18b0aa990","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-12-30T13:49:50.642707Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"03ec656b-5d21-41c4-a655-ccb18b0aa990","key":"DDFC-98826","merge_status":"NOT_MERGED","modified_at":"2025-12-30T13:49:50.769335Z","priority":"P4","public_id":"99282","status":"OPEN","status_group":"SG_OPEN","status_name":"Open","title":"[UPDATED] + Memory leak investigation on API","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"modified_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' headers: content-type: - application/vnd.api+json