diff --git a/.apigentools-info b/.apigentools-info index 457543f1fb..cfdcc625c9 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-29 14:55:52.778358", - "spec_repo_commit": "14f5d952" + "regenerated": "2025-01-31 03:37:27.101778", + "spec_repo_commit": "7e3beef8" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-29 14:55:52.793962", - "spec_repo_commit": "14f5d952" + "regenerated": "2025-01-31 03:37:27.116040", + "spec_repo_commit": "7e3beef8" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c296a76b79..91ece7558e 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -7307,8 +7307,8 @@ components: type: gridCell type: grid description: This is a simple example app - embeddedQueries: [] name: Example App + queries: [] rootInstanceName: grid0 type: appDefinitions properties: @@ -7336,15 +7336,15 @@ components: description: description: A human-readable description for the app. type: string - embeddedQueries: + name: + description: The name of the app. + type: string + queries: description: An array of queries, such as external actions and state variables, that the app uses. items: $ref: '#/components/schemas/Query' type: array - name: - description: The name of the app. - type: string rootInstanceName: description: The name of the root component of the app. This must be a `grid` component that contains all other components. @@ -12411,18 +12411,18 @@ components: description: description: A human-readable description for the app. type: string - embeddedQueries: - description: An array of queries, such as external actions and state variables, - that the app uses. - items: - $ref: '#/components/schemas/Query' - type: array favorite: description: Whether the app is marked as a favorite by the current user. type: boolean name: description: The name of the app. type: string + queries: + description: An array of queries, such as external actions and state variables, + that the app uses. + items: + $ref: '#/components/schemas/Query' + type: array rootInstanceName: description: The name of the root component of the app. This must be a `grid` component that contains all other components. @@ -29505,8 +29505,8 @@ components: type: gridCell type: grid description: This is a simple example app - embeddedQueries: [] name: Example App + queries: [] rootInstanceName: grid0 id: 9e20cbaf-68da-45a6-9ccf-54193ac29fa5 type: appDefinitions @@ -29545,16 +29545,16 @@ components: description: description: The new human-readable description for the app. type: string - embeddedQueries: + name: + description: The new name of the app. + type: string + queries: description: The new array of queries, such as external actions and state variables, that the app uses. If this field is set, all existing queries are replaced with the new queries under this field. items: $ref: '#/components/schemas/Query' type: array - name: - description: The new name of the app. - type: string rootInstanceName: description: The new name of the root component of the app. This must be a `grid` component that contains all other components. @@ -29615,18 +29615,18 @@ components: description: description: The human-readable description for the app. type: string - embeddedQueries: - description: An array of queries, such as external actions and state variables, - that the app uses. - items: - $ref: '#/components/schemas/Query' - type: array favorite: description: Whether the app is marked as a favorite by the current user. type: boolean name: description: The name of the app. type: string + queries: + description: An array of queries, such as external actions and state variables, + that the app uses. + items: + $ref: '#/components/schemas/Query' + type: array rootInstanceName: description: The name of the root component of the app. This must be a `grid` component that contains all other components. diff --git a/examples/v2/app-builder/CreateApp.py b/examples/v2/app-builder/CreateApp.py index 27bf50df4d..1bfec89e81 100644 --- a/examples/v2/app-builder/CreateApp.py +++ b/examples/v2/app-builder/CreateApp.py @@ -56,7 +56,7 @@ ), ], description="This is a simple example app", - embedded_queries=[], + queries=[], name="Example App", root_instance_name="grid0", ), diff --git a/src/datadog_api_client/v2/model/create_app_request_data_attributes.py b/src/datadog_api_client/v2/model/create_app_request_data_attributes.py index 56b9c05378..fd075281bb 100644 --- a/src/datadog_api_client/v2/model/create_app_request_data_attributes.py +++ b/src/datadog_api_client/v2/model/create_app_request_data_attributes.py @@ -27,8 +27,8 @@ def openapi_types(_): return { "components": ([ComponentGrid],), "description": (str,), - "embedded_queries": ([Query],), "name": (str,), + "queries": ([Query],), "root_instance_name": (str,), "tags": ([str],), } @@ -36,8 +36,8 @@ def openapi_types(_): attribute_map = { "components": "components", "description": "description", - "embedded_queries": "embeddedQueries", "name": "name", + "queries": "queries", "root_instance_name": "rootInstanceName", "tags": "tags", } @@ -46,8 +46,8 @@ def __init__( self_, components: Union[List[ComponentGrid], UnsetType] = unset, description: Union[str, UnsetType] = unset, - embedded_queries: Union[List[Query], UnsetType] = unset, name: Union[str, UnsetType] = unset, + queries: Union[List[Query], UnsetType] = unset, root_instance_name: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs, @@ -61,12 +61,12 @@ def __init__( :param description: A human-readable description for the app. :type description: str, optional - :param embedded_queries: An array of queries, such as external actions and state variables, that the app uses. - :type embedded_queries: [Query], optional - :param name: The name of the app. :type name: str, optional + :param queries: An array of queries, such as external actions and state variables, that the app uses. + :type queries: [Query], optional + :param root_instance_name: The name of the root component of the app. This must be a ``grid`` component that contains all other components. :type root_instance_name: str, optional @@ -77,10 +77,10 @@ def __init__( kwargs["components"] = components if description is not unset: kwargs["description"] = description - if embedded_queries is not unset: - kwargs["embedded_queries"] = embedded_queries if name is not unset: kwargs["name"] = name + if queries is not unset: + kwargs["queries"] = queries if root_instance_name is not unset: kwargs["root_instance_name"] = root_instance_name if tags is not unset: diff --git a/src/datadog_api_client/v2/model/get_app_response_data_attributes.py b/src/datadog_api_client/v2/model/get_app_response_data_attributes.py index eee0659625..7e5d4de547 100644 --- a/src/datadog_api_client/v2/model/get_app_response_data_attributes.py +++ b/src/datadog_api_client/v2/model/get_app_response_data_attributes.py @@ -27,9 +27,9 @@ def openapi_types(_): return { "components": ([ComponentGrid],), "description": (str,), - "embedded_queries": ([Query],), "favorite": (bool,), "name": (str,), + "queries": ([Query],), "root_instance_name": (str,), "tags": ([str],), } @@ -37,9 +37,9 @@ def openapi_types(_): attribute_map = { "components": "components", "description": "description", - "embedded_queries": "embeddedQueries", "favorite": "favorite", "name": "name", + "queries": "queries", "root_instance_name": "rootInstanceName", "tags": "tags", } @@ -48,9 +48,9 @@ def __init__( self_, components: Union[List[ComponentGrid], UnsetType] = unset, description: Union[str, UnsetType] = unset, - embedded_queries: Union[List[Query], UnsetType] = unset, favorite: Union[bool, UnsetType] = unset, name: Union[str, UnsetType] = unset, + queries: Union[List[Query], UnsetType] = unset, root_instance_name: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs, @@ -64,15 +64,15 @@ def __init__( :param description: A human-readable description for the app. :type description: str, optional - :param embedded_queries: An array of queries, such as external actions and state variables, that the app uses. - :type embedded_queries: [Query], optional - :param favorite: Whether the app is marked as a favorite by the current user. :type favorite: bool, optional :param name: The name of the app. :type name: str, optional + :param queries: An array of queries, such as external actions and state variables, that the app uses. + :type queries: [Query], optional + :param root_instance_name: The name of the root component of the app. This must be a ``grid`` component that contains all other components. :type root_instance_name: str, optional @@ -83,12 +83,12 @@ def __init__( kwargs["components"] = components if description is not unset: kwargs["description"] = description - if embedded_queries is not unset: - kwargs["embedded_queries"] = embedded_queries if favorite is not unset: kwargs["favorite"] = favorite if name is not unset: kwargs["name"] = name + if queries is not unset: + kwargs["queries"] = queries if root_instance_name is not unset: kwargs["root_instance_name"] = root_instance_name if tags is not unset: diff --git a/src/datadog_api_client/v2/model/update_app_request_data_attributes.py b/src/datadog_api_client/v2/model/update_app_request_data_attributes.py index e17efaf204..013565e33d 100644 --- a/src/datadog_api_client/v2/model/update_app_request_data_attributes.py +++ b/src/datadog_api_client/v2/model/update_app_request_data_attributes.py @@ -27,8 +27,8 @@ def openapi_types(_): return { "components": ([ComponentGrid],), "description": (str,), - "embedded_queries": ([Query],), "name": (str,), + "queries": ([Query],), "root_instance_name": (str,), "tags": ([str],), } @@ -36,8 +36,8 @@ def openapi_types(_): attribute_map = { "components": "components", "description": "description", - "embedded_queries": "embeddedQueries", "name": "name", + "queries": "queries", "root_instance_name": "rootInstanceName", "tags": "tags", } @@ -46,8 +46,8 @@ def __init__( self_, components: Union[List[ComponentGrid], UnsetType] = unset, description: Union[str, UnsetType] = unset, - embedded_queries: Union[List[Query], UnsetType] = unset, name: Union[str, UnsetType] = unset, + queries: Union[List[Query], UnsetType] = unset, root_instance_name: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs, @@ -61,12 +61,12 @@ def __init__( :param description: The new human-readable description for the app. :type description: str, optional - :param embedded_queries: The new array of queries, such as external actions and state variables, that the app uses. If this field is set, all existing queries are replaced with the new queries under this field. - :type embedded_queries: [Query], optional - :param name: The new name of the app. :type name: str, optional + :param queries: The new array of queries, such as external actions and state variables, that the app uses. If this field is set, all existing queries are replaced with the new queries under this field. + :type queries: [Query], optional + :param root_instance_name: The new name of the root component of the app. This must be a ``grid`` component that contains all other components. :type root_instance_name: str, optional @@ -77,10 +77,10 @@ def __init__( kwargs["components"] = components if description is not unset: kwargs["description"] = description - if embedded_queries is not unset: - kwargs["embedded_queries"] = embedded_queries if name is not unset: kwargs["name"] = name + if queries is not unset: + kwargs["queries"] = queries if root_instance_name is not unset: kwargs["root_instance_name"] = root_instance_name if tags is not unset: diff --git a/src/datadog_api_client/v2/model/update_app_response_data_attributes.py b/src/datadog_api_client/v2/model/update_app_response_data_attributes.py index 2ade0d3245..779580bd68 100644 --- a/src/datadog_api_client/v2/model/update_app_response_data_attributes.py +++ b/src/datadog_api_client/v2/model/update_app_response_data_attributes.py @@ -27,9 +27,9 @@ def openapi_types(_): return { "components": ([ComponentGrid],), "description": (str,), - "embedded_queries": ([Query],), "favorite": (bool,), "name": (str,), + "queries": ([Query],), "root_instance_name": (str,), "tags": ([str],), } @@ -37,9 +37,9 @@ def openapi_types(_): attribute_map = { "components": "components", "description": "description", - "embedded_queries": "embeddedQueries", "favorite": "favorite", "name": "name", + "queries": "queries", "root_instance_name": "rootInstanceName", "tags": "tags", } @@ -48,9 +48,9 @@ def __init__( self_, components: Union[List[ComponentGrid], UnsetType] = unset, description: Union[str, UnsetType] = unset, - embedded_queries: Union[List[Query], UnsetType] = unset, favorite: Union[bool, UnsetType] = unset, name: Union[str, UnsetType] = unset, + queries: Union[List[Query], UnsetType] = unset, root_instance_name: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs, @@ -64,15 +64,15 @@ def __init__( :param description: The human-readable description for the app. :type description: str, optional - :param embedded_queries: An array of queries, such as external actions and state variables, that the app uses. - :type embedded_queries: [Query], optional - :param favorite: Whether the app is marked as a favorite by the current user. :type favorite: bool, optional :param name: The name of the app. :type name: str, optional + :param queries: An array of queries, such as external actions and state variables, that the app uses. + :type queries: [Query], optional + :param root_instance_name: The name of the root component of the app. This must be a ``grid`` component that contains all other components. :type root_instance_name: str, optional @@ -83,12 +83,12 @@ def __init__( kwargs["components"] = components if description is not unset: kwargs["description"] = description - if embedded_queries is not unset: - kwargs["embedded_queries"] = embedded_queries if favorite is not unset: kwargs["favorite"] = favorite if name is not unset: kwargs["name"] = name + if queries is not unset: + kwargs["queries"] = queries if root_instance_name is not unset: kwargs["root_instance_name"] = root_instance_name if tags is not unset: diff --git a/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.frozen index 2887e18b73..f4fed19b33 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:37.253Z \ No newline at end of file +2025-01-30T22:30:41.653Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.yaml index 22742c11d2..2910a67156 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_create_app_returns_bad_request_response.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"data":{"attributes":{"description":"This is a bad example app","embeddedQueries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' + body: '{"data":{"attributes":{"description":"This is a bad example app","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -10,8 +10,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"errors":[{"title":"missing required field","detail":"missing required - field","source":{"pointer":"/data/attributes/name"}}]}' + string: '{"errors":[{"title":"missing required field","source":{"pointer":"/data/attributes/name"}}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.frozen index d601c8eb95..e194fa4dff 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:37.369Z \ No newline at end of file +2025-01-30T22:30:41.765Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.yaml index 11f4b82148..f6343cf1ef 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_create_app_returns_created_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isLoading":false,"isUnpublishd":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"4cbecc90-b8a4-49c4-9608-1a880d9d3de5","type":"appDefinitions"}}' + string: '{"data":{"id":"444afc7d-6572-42eb-b655-b8763ba2d032","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -25,10 +25,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/4cbecc90-b8a4-49c4-9608-1a880d9d3de5 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/444afc7d-6572-42eb-b655-b8763ba2d032 response: body: - string: '{"data":{"id":"4cbecc90-b8a4-49c4-9608-1a880d9d3de5","type":"appDefinitions"}}' + string: '{"data":{"id":"444afc7d-6572-42eb-b655-b8763ba2d032","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.frozen index e92ddd7d4b..d59753b20f 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:37.755Z \ No newline at end of file +2025-01-30T22:30:42.199Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.yaml index b1f5bc1984..71953f6480 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_not_found_response.yaml @@ -8,7 +8,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps/7addb29b-f935-472c-ae79-d1963979a23e response: body: - string: '{"errors":[{"title":"app not found","detail":"app not found"}]}' + string: '{"errors":[{"title":"app not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.frozen index b39282600f..8d71c0bb47 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:37.852Z \ No newline at end of file +2025-01-30T22:30:42.276Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.yaml index c76fbddef1..ccef07e26c 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_app_returns_ok_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"1d01a77d-1251-42fb-ab67-c99edfb26970","type":"appDefinitions"}}' + string: '{"data":{"id":"6d05b89a-db5e-4f7d-aa03-26ccd05be44e","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -25,10 +25,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/1d01a77d-1251-42fb-ab67-c99edfb26970 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/6d05b89a-db5e-4f7d-aa03-26ccd05be44e response: body: - string: '{"data":{"id":"1d01a77d-1251-42fb-ab67-c99edfb26970","type":"appDefinitions"}}' + string: '{"data":{"id":"6d05b89a-db5e-4f7d-aa03-26ccd05be44e","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -41,10 +41,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/1d01a77d-1251-42fb-ab67-c99edfb26970 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/6d05b89a-db5e-4f7d-aa03-26ccd05be44e response: body: - string: '{"errors":[{"title":"app not found","detail":"app not found"}]}' + string: '{"errors":[{"title":"app not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.frozen index a502e206a8..1e20d6bc1e 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:38.331Z \ No newline at end of file +2025-01-30T22:30:42.693Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.yaml index a4685b2d7f..52b83640f1 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_not_found_response.yaml @@ -10,8 +10,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"errors":[{"title":"one or more apps not found","detail":"one or more - apps not found"}]}' + string: '{"errors":[{"title":"one or more apps not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.frozen index 0d90abf267..d5d8aa92f4 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:38.424Z \ No newline at end of file +2025-01-30T22:30:42.770Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.yaml index 83c60d97b2..590ea6d40d 100644 --- a/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_delete_multiple_apps_returns_ok_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"7b5a5fec-3026-47a9-acca-e01dc557af0a","type":"appDefinitions"}}' + string: '{"data":{"id":"91f80f89-33dc-4311-93fe-b4936275bc74","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -20,7 +20,7 @@ interactions: code: 201 message: Created - request: - body: '{"data":[{"id":"7b5a5fec-3026-47a9-acca-e01dc557af0a","type":"appDefinitions"}]}' + body: '{"data":[{"id":"91f80f89-33dc-4311-93fe-b4936275bc74","type":"appDefinitions"}]}' headers: accept: - application/json @@ -30,7 +30,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":[{"id":"7b5a5fec-3026-47a9-acca-e01dc557af0a","type":"appDefinitions"}]}' + string: '{"data":[{"id":"91f80f89-33dc-4311-93fe-b4936275bc74","type":"appDefinitions"}]}' headers: content-type: - application/vnd.api+json @@ -43,10 +43,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/7b5a5fec-3026-47a9-acca-e01dc557af0a + uri: https://api.datadoghq.com/api/v2/app-builder/apps/91f80f89-33dc-4311-93fe-b4936275bc74 response: body: - string: '{"errors":[{"title":"app not found","detail":"app not found"}]}' + string: '{"errors":[{"title":"app not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.frozen index 7cdb4f5558..6c7b9a9df9 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:38.801Z \ No newline at end of file +2025-01-30T22:30:43.135Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.yaml index 03b0e90df1..79eacb5cfb 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_get_app_returns_not_found_response.yaml @@ -8,7 +8,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps/7addb29b-f935-472c-ae79-d1963979a23e response: body: - string: '{"errors":[{"title":"app not found","detail":"app not found"}]}' + string: '{"errors":[{"title":"app not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.frozen index 52d6e6be29..bf7c9e277e 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:38.890Z \ No newline at end of file +2025-01-30T22:30:43.220Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.yaml index 34ee1190a6..d32f9a7dc4 100644 --- a/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_get_app_returns_ok_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"862d8836-4fa8-494c-8760-5555eab08dda","type":"appDefinitions"}}' + string: '{"data":{"id":"25442f2c-fb75-4abe-b875-ed3497d2fc2c","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -25,13 +25,12 @@ interactions: accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/app-builder/apps/862d8836-4fa8-494c-8760-5555eab08dda + uri: https://api.datadoghq.com/api/v2/app-builder/apps/25442f2c-fb75-4abe-b875-ed3497d2fc2c response: body: - string: '{"data":{"id":"862d8836-4fa8-494c-8760-5555eab08dda","type":"appDefinitions","attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU + string: '{"data":{"id":"25442f2c-fb75-4abe-b875-ed3497d2fc2c","type":"appDefinitions","attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"favorite":false,"name":"Example - App","rootInstanceName":"grid0","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com","version":1,"updated_since_deployment":false,"created_at":"2025-01-09T20:40:38.983288Z","updated_at":"2025-01-09T20:40:38.983288Z","deleted_at":"0001-01-01T00:00:00Z"}}}' + is a simple example app","favorite":false,"name":"Example App","queries":[],"rootInstanceName":"grid0","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com","version":1,"updated_since_deployment":false,"created_at":"2025-01-30T22:30:43.296595Z","updated_at":"2025-01-30T22:30:43.296595Z","deleted_at":"0001-01-01T00:00:00Z"}}}' headers: content-type: - application/vnd.api+json @@ -44,10 +43,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/862d8836-4fa8-494c-8760-5555eab08dda + uri: https://api.datadoghq.com/api/v2/app-builder/apps/25442f2c-fb75-4abe-b875-ed3497d2fc2c response: body: - string: '{"data":{"id":"862d8836-4fa8-494c-8760-5555eab08dda","type":"appDefinitions"}}' + string: '{"data":{"id":"25442f2c-fb75-4abe-b875-ed3497d2fc2c","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.frozen index 169b447312..c70176b29c 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:39.352Z \ No newline at end of file +2025-01-30T22:30:43.707Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.yaml index 4f0fe1f603..aa1652c800 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_list_apps_returns_ok_response.yaml @@ -8,10 +8,17 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":[{"id":"637107ff-d8af-4bc7-bf99-8b57e5ec6f5a","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] - app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2024-12-29T15:23:59.7047Z","updated_at":"2024-12-29T15:23:59.957962Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"0cc51f70-6f90-406e-880b-e2fac88e823a","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] - app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2024-12-18T11:48:55.89363Z","updated_at":"2024-12-18T11:48:55.89363Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"d595693a-473d-4671-9da3-fce89e3a5c5d","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"Max''s - App Fri, Jul 12, 11:10:35 am","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571362,"user_uuid":"3114f3a0-3fc9-11ef-acbe-a6def6551924","user_name":"max.gale@datadoghq.com","version":0,"updated_since_deployment":false,"created_at":"2024-07-12T15:10:48.690305Z","updated_at":"2024-07-12T15:10:48.690305Z","deleted_at":"0001-01-01T00:00:00Z"}}],"meta":{"page":{"totalCount":3,"totalFilteredCount":3}}}' + string: '{"data":[{"id":"31bfe961-ba29-4c43-85d8-f7d02afdb9a3","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-29T15:53:32.324305Z","updated_at":"2025-01-29T15:53:32.324305Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"2363c6a3-9077-4c58-a7e2-39f27ca42e02","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-23T00:18:13.328203Z","updated_at":"2025-01-23T00:18:13.328203Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"a5557ecf-17c6-43dc-b20f-6c77869777c1","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-22T17:17:39.807236Z","updated_at":"2025-01-22T17:17:39.807236Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"83ca3945-3c9f-4eb9-b46a-992a97f1acf3","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-22T13:16:57.34142Z","updated_at":"2025-01-22T13:16:57.34142Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"9e02b865-585b-4da0-b2c3-aab734317e93","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-22T10:47:57.329697Z","updated_at":"2025-01-22T10:47:57.329697Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"9ccf8f9b-d9ae-43ef-b1c6-c85e075a3ca7","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-21T23:30:39.902639Z","updated_at":"2025-01-21T23:30:40.166756Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"d21c6da5-cb04-4ee6-aa7d-3fe6b2fd0be3","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-21T22:36:50.399181Z","updated_at":"2025-01-21T22:36:50.399181Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"02343a47-9092-40a7-9464-aade9d617050","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-20T23:17:39.895098Z","updated_at":"2025-01-20T23:17:40.19356Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"be847238-5f04-4e50-9cce-facc0b8fbb09","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"[synthetics] + app name 0123456789","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":7571471,"user_uuid":"01347f51-3fcd-11ef-95dd-a65df5ee2843","user_name":"01347f51-3fcd-11ef-95dd-a65df5ee2843","version":0,"updated_since_deployment":false,"created_at":"2025-01-20T01:48:05.39422Z","updated_at":"2025-01-20T01:48:05.39422Z","deleted_at":"0001-01-01T00:00:00Z"}},{"id":"4b562f9c-3fe4-49dc-9e08-4a704db958a8","type":"appDefinitions","attributes":{"description":"","favorite":false,"name":"Kelly''s + App Thu, Jan 16, 1:13:37 pm","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":20776465,"user_uuid":"8820640c-cdf5-11ef-b473-76727e778fd9","user_name":"kelly.sun@datadoghq.com","version":0,"updated_since_deployment":false,"created_at":"2025-01-16T18:14:00.896371Z","updated_at":"2025-01-16T18:14:00.896371Z","deleted_at":"0001-01-01T00:00:00Z"}}],"meta":{"page":{"totalCount":29,"totalFilteredCount":29}}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.frozen b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.frozen index ee1be76942..c28deba1ba 100644 --- a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:39.474Z \ No newline at end of file +2025-01-30T22:30:43.820Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.yaml b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.yaml index 2a6230b91a..2f259c5daa 100644 --- a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_created_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"f33cfd55-b517-4c29-862b-45c99742ed0e","type":"appDefinitions"}}' + string: '{"data":{"id":"4e22b013-8758-49b7-98ea-0b2508c97bbf","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -25,10 +25,10 @@ interactions: accept: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/app-builder/apps/f33cfd55-b517-4c29-862b-45c99742ed0e/deployment + uri: https://api.datadoghq.com/api/v2/app-builder/apps/4e22b013-8758-49b7-98ea-0b2508c97bbf/deployment response: body: - string: '{"data":{"id":"01087e5d-de82-4a28-bf05-d2e66ec4ed44","type":"deployment","attributes":{"app_version_id":"f638f430-5534-447f-85c8-860693539ff6"},"meta":{"created_at":"2025-01-09T20:40:39.764785Z","user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com"}}}' + string: '{"data":{"id":"62438b66-95eb-47d3-b540-a5d4b0b0a791","type":"deployment","attributes":{"app_version_id":"178fbd22-f8b5-4841-92eb-f8c1c03d44c1"},"meta":{"created_at":"2025-01-30T22:30:44.12194Z","user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com"}}}' headers: content-type: - application/vnd.api+json @@ -41,10 +41,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/f33cfd55-b517-4c29-862b-45c99742ed0e + uri: https://api.datadoghq.com/api/v2/app-builder/apps/4e22b013-8758-49b7-98ea-0b2508c97bbf response: body: - string: '{"data":{"id":"f33cfd55-b517-4c29-862b-45c99742ed0e","type":"appDefinitions"}}' + string: '{"data":{"id":"4e22b013-8758-49b7-98ea-0b2508c97bbf","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.frozen index 3a40add39a..3a29d90cff 100644 --- a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:39.992Z \ No newline at end of file +2025-01-30T22:30:44.372Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.yaml index 122382dda6..8af9039e5f 100644 --- a/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_publish_app_returns_not_found_response.yaml @@ -8,7 +8,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps/7addb29b-f935-472c-ae79-d1963979a23e/deployment response: body: - string: '{"errors":[{"title":"app not found","detail":"app not found"}]}' + string: '{"errors":[{"title":"app not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.frozen index 89158226aa..4e09395f98 100644 --- a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:40.084Z \ No newline at end of file +2025-01-30T22:30:44.457Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.yaml index fe842f4a7a..9e64faba82 100644 --- a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_not_found_response.yaml @@ -8,7 +8,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps/7addb29b-f935-472c-ae79-d1963979a23e/deployment response: body: - string: '{"errors":[{"title":"app not found","detail":"app not found"}]}' + string: '{"errors":[{"title":"app not found"}]}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.frozen index 7caa9400c8..fbc38a5c7c 100644 --- a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:40.161Z \ No newline at end of file +2025-01-30T22:30:44.533Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.yaml index 62143bf27c..ca90af9a2a 100644 --- a/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_unpublish_app_returns_ok_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"5a291e81-8d65-4404-a700-2c3d46b1da47","type":"appDefinitions"}}' + string: '{"data":{"id":"74865138-3856-43bf-b309-e6c5f5599e36","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -25,10 +25,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/5a291e81-8d65-4404-a700-2c3d46b1da47/deployment + uri: https://api.datadoghq.com/api/v2/app-builder/apps/74865138-3856-43bf-b309-e6c5f5599e36/deployment response: body: - string: '{"data":{"id":"8c318f17-b117-4ea5-b01d-b02db78134bb","type":"deployment","attributes":{"app_version_id":"00000000-0000-0000-0000-000000000000"},"meta":{"created_at":"2025-01-09T20:40:40.464096Z","user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com"}}}' + string: '{"data":{"id":"b8434408-826f-4fea-bd27-786526d74e30","type":"deployment","attributes":{"app_version_id":"00000000-0000-0000-0000-000000000000"},"meta":{"created_at":"2025-01-30T22:30:44.827748Z","user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com"}}}' headers: content-type: - application/vnd.api+json @@ -41,10 +41,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/5a291e81-8d65-4404-a700-2c3d46b1da47 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/74865138-3856-43bf-b309-e6c5f5599e36 response: body: - string: '{"data":{"id":"5a291e81-8d65-4404-a700-2c3d46b1da47","type":"appDefinitions"}}' + string: '{"data":{"id":"74865138-3856-43bf-b309-e6c5f5599e36","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.frozen index 67b5e984d6..84b4273039 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:40.664Z \ No newline at end of file +2025-01-30T22:30:45.101Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.yaml index 87048ff7f5..d5da099cac 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_app_returns_bad_request_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"b3f997e6-a9db-4984-a560-23005049c5f3","type":"appDefinitions"}}' + string: '{"data":{"id":"3800673b-840c-4c3a-8815-058b4a8ce38e","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -20,18 +20,17 @@ interactions: code: 201 message: Created - request: - body: '{"data":{"attributes":{"rootInstanceName":""},"id":"b3f997e6-a9db-4984-a560-23005049c5f3","type":"appDefinitions"}}' + body: '{"data":{"attributes":{"rootInstanceName":""},"id":"3800673b-840c-4c3a-8815-058b4a8ce38e","type":"appDefinitions"}}' headers: accept: - application/json content-type: - application/json method: PATCH - uri: https://api.datadoghq.com/api/v2/app-builder/apps/b3f997e6-a9db-4984-a560-23005049c5f3 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/3800673b-840c-4c3a-8815-058b4a8ce38e response: body: - string: '{"errors":[{"title":"missing required field","detail":"missing required - field","source":{"pointer":"/data/attributes/rootInstanceName"}}]}' + string: '{"errors":[{"title":"missing required field","source":{"pointer":"/data/attributes/rootInstanceName"}}]}' headers: content-type: - application/vnd.api+json @@ -44,10 +43,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/b3f997e6-a9db-4984-a560-23005049c5f3 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/3800673b-840c-4c3a-8815-058b4a8ce38e response: body: - string: '{"data":{"id":"b3f997e6-a9db-4984-a560-23005049c5f3","type":"appDefinitions"}}' + string: '{"data":{"id":"3800673b-840c-4c3a-8815-058b4a8ce38e","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.frozen index 920baa8fa2..0c72a214a0 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.frozen @@ -1 +1 @@ -2025-01-09T20:40:41.221Z \ No newline at end of file +2025-01-30T22:30:45.511Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.yaml index 5df5657866..c29fdfa1ff 100644 --- a/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_update_app_returns_ok_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"data":{"attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"name":"Example App","rootInstanceName":"grid0"},"type":"appDefinitions"}}' + is a simple example app","name":"Example App","queries":[],"rootInstanceName":"grid0"},"type":"appDefinitions"}}' headers: accept: - application/json @@ -12,7 +12,7 @@ interactions: uri: https://api.datadoghq.com/api/v2/app-builder/apps response: body: - string: '{"data":{"id":"b5820444-b12a-48d2-9cf2-231d6a3e8858","type":"appDefinitions"}}' + string: '{"data":{"id":"892d9225-fd31-4237-b218-e964ac33fc71","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json @@ -20,20 +20,19 @@ interactions: code: 201 message: Created - request: - body: '{"data":{"attributes":{"name":"Updated Name","rootInstanceName":"grid0"},"id":"b5820444-b12a-48d2-9cf2-231d6a3e8858","type":"appDefinitions"}}' + body: '{"data":{"attributes":{"name":"Updated Name","rootInstanceName":"grid0"},"id":"892d9225-fd31-4237-b218-e964ac33fc71","type":"appDefinitions"}}' headers: accept: - application/json content-type: - application/json method: PATCH - uri: https://api.datadoghq.com/api/v2/app-builder/apps/b5820444-b12a-48d2-9cf2-231d6a3e8858 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/892d9225-fd31-4237-b218-e964ac33fc71 response: body: - string: '{"data":{"id":"b5820444-b12a-48d2-9cf2-231d6a3e8858","type":"appDefinitions","attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU + string: '{"data":{"id":"892d9225-fd31-4237-b218-e964ac33fc71","type":"appDefinitions","attributes":{"components":[{"events":[],"name":"grid0","properties":{"children":[{"events":[],"name":"gridCell0","properties":{"children":[{"events":[],"name":"calloutValue0","properties":{"isDisabled":false,"isLoading":false,"isVisible":true,"label":"CPU Usage","size":"sm","style":"vivid_yellow","unit":"kB","value":"42"},"type":"calloutValue"}],"isVisible":"true","layout":{"default":{"height":8,"width":2,"x":0,"y":0}}},"type":"gridCell"}]},"type":"grid"}],"description":"This - is a simple example app","embeddedQueries":[],"favorite":false,"name":"Updated - Name","rootInstanceName":"grid0","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com","version":2,"updated_since_deployment":false,"created_at":"2025-01-09T20:40:41.309534Z","updated_at":"2025-01-09T20:40:41.499741Z","deleted_at":"0001-01-01T00:00:00Z"}}}' + is a simple example app","favorite":false,"name":"Updated Name","queries":[],"rootInstanceName":"grid0","selfService":false,"tags":[]},"meta":{"org_id":1107852,"user_id":15479137,"user_uuid":"b3f98453-b289-11ef-a4e9-d6d283f92d91","user_name":"oliver.li@datadoghq.com","version":2,"updated_since_deployment":false,"created_at":"2025-01-30T22:30:45.584607Z","updated_at":"2025-01-30T22:30:45.785438Z","deleted_at":"0001-01-01T00:00:00Z"}}}' headers: content-type: - application/vnd.api+json @@ -46,10 +45,10 @@ interactions: accept: - application/json method: DELETE - uri: https://api.datadoghq.com/api/v2/app-builder/apps/b5820444-b12a-48d2-9cf2-231d6a3e8858 + uri: https://api.datadoghq.com/api/v2/app-builder/apps/892d9225-fd31-4237-b218-e964ac33fc71 response: body: - string: '{"data":{"id":"b5820444-b12a-48d2-9cf2-231d6a3e8858","type":"appDefinitions"}}' + string: '{"data":{"id":"892d9225-fd31-4237-b218-e964ac33fc71","type":"appDefinitions"}}' headers: content-type: - application/vnd.api+json diff --git a/tests/v2/features/app_builder.feature b/tests/v2/features/app_builder.feature index e0385bdb83..1c8226e897 100644 --- a/tests/v2/features/app_builder.feature +++ b/tests/v2/features/app_builder.feature @@ -14,17 +14,17 @@ Feature: App Builder Scenario: Create App returns "Bad Request" response Given operation "CreateApp" enabled And new "CreateApp" request - And body with value {"data": {"attributes": {"description": "This is a bad example app", "embeddedQueries": [], "rootInstanceName": "grid0"}, "type": "appDefinitions"}} + And body with value {"data": {"attributes": {"description": "This is a bad example app", "queries": [], "rootInstanceName": "grid0"}, "type": "appDefinitions"}} When the request is sent Then the response status is 400 Bad Request And the response "errors" has length 1 - And the response "errors[0].detail" is equal to "missing required field" + And the response "errors[0].title" is equal to "missing required field" @skip-typescript @team:DataDog/app-builder-backend Scenario: Create App returns "Created" response Given operation "CreateApp" enabled And new "CreateApp" request - And body with value {"data": {"attributes": {"components": [{"events": [], "name": "grid0", "properties": {"children": [{"events": [], "name": "gridCell0", "properties": {"children": [{"events": [], "name": "calloutValue0", "properties": {"isVisible": true, "isUnpublishd": false, "isLoading": false, "label": "CPU Usage", "size": "sm", "style": "vivid_yellow", "unit": "kB", "value": "42"}, "type": "calloutValue"}], "isVisible": "true", "layout": {"default": {"height": 8, "width": 2, "x": 0, "y": 0}}}, "type": "gridCell"}]}, "type": "grid"}], "description": "This is a simple example app", "embeddedQueries": [], "name": "Example App", "rootInstanceName": "grid0"}, "type": "appDefinitions"}} + And body with value {"data": {"attributes": {"components": [{"events": [], "name": "grid0", "properties": {"children": [{"events": [], "name": "gridCell0", "properties": {"children": [{"events": [], "name": "calloutValue0", "properties": {"isVisible": true, "isUnpublishd": false, "isLoading": false, "label": "CPU Usage", "size": "sm", "style": "vivid_yellow", "unit": "kB", "value": "42"}, "type": "calloutValue"}], "isVisible": "true", "layout": {"default": {"height": 8, "width": 2, "x": 0, "y": 0}}}, "type": "gridCell"}]}, "type": "grid"}], "description": "This is a simple example app", "queries": [], "name": "Example App", "rootInstanceName": "grid0"}, "type": "appDefinitions"}} When the request is sent Then the response status is 201 Created And the response "data.type" is equal to "appDefinitions" @@ -192,7 +192,7 @@ Feature: App Builder When the request is sent Then the response status is 400 Bad Request And the response "errors" has length 1 - And the response "errors[0].detail" is equal to "missing required field" + And the response "errors[0].title" is equal to "missing required field" @skip-typescript @team:DataDog/app-builder-backend Scenario: Update App returns "OK" response diff --git a/tests/v2/features/given.json b/tests/v2/features/given.json index 9f928a1afc..171c348533 100644 --- a/tests/v2/features/given.json +++ b/tests/v2/features/given.json @@ -63,7 +63,7 @@ "parameters": [ { "name": "body", - "value": "{\"data\": {\"attributes\": {\"components\": [{\"events\": [], \"name\": \"grid0\", \"properties\": {\"children\": [{\"events\": [], \"name\": \"gridCell0\", \"properties\": {\"children\": [{\"events\": [], \"name\": \"calloutValue0\", \"properties\": {\"isDisabled\": false, \"isLoading\": false, \"isVisible\": true, \"label\": \"CPU Usage\", \"size\": \"sm\", \"style\": \"vivid_yellow\", \"unit\": \"kB\", \"value\": \"42\"}, \"type\": \"calloutValue\"}], \"isVisible\": \"true\", \"layout\": {\"default\": {\"height\": 8, \"width\": 2, \"x\": 0, \"y\": 0}}}, \"type\": \"gridCell\"}]}, \"type\": \"grid\"}], \"description\": \"This is a simple example app\", \"embeddedQueries\": [], \"name\": \"Example App\", \"rootInstanceName\": \"grid0\"}, \"type\": \"appDefinitions\"}}" + "value": "{\"data\": {\"attributes\": {\"components\": [{\"events\": [], \"name\": \"grid0\", \"properties\": {\"children\": [{\"events\": [], \"name\": \"gridCell0\", \"properties\": {\"children\": [{\"events\": [], \"name\": \"calloutValue0\", \"properties\": {\"isDisabled\": false, \"isLoading\": false, \"isVisible\": true, \"label\": \"CPU Usage\", \"size\": \"sm\", \"style\": \"vivid_yellow\", \"unit\": \"kB\", \"value\": \"42\"}, \"type\": \"calloutValue\"}], \"isVisible\": \"true\", \"layout\": {\"default\": {\"height\": 8, \"width\": 2, \"x\": 0, \"y\": 0}}}, \"type\": \"gridCell\"}]}, \"type\": \"grid\"}], \"description\": \"This is a simple example app\", \"queries\": [], \"name\": \"Example App\", \"rootInstanceName\": \"grid0\"}, \"type\": \"appDefinitions\"}}" } ], "step": "there is a valid \"app\" in the system",