diff --git a/.apigentools-info b/.apigentools-info index 241a5c8737e..fe85ef31fc6 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-10 13:47:40.326078", - "spec_repo_commit": "afb48804" + "regenerated": "2023-10-12 13:31:21.743085", + "spec_repo_commit": "6653b14d" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-10-10 13:47:40.346011", - "spec_repo_commit": "afb48804" + "regenerated": "2023-10-12 13:31:21.760452", + "spec_repo_commit": "6653b14d" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2975fa2f445..3abf3ccc403 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -23874,6 +23874,18 @@ paths: get: description: Get a list of all powerpacks. operationId: ListPowerpacks + parameters: + - description: Maximum number of powerpacks in the response. + example: 25 + in: query + name: page[limit] + required: false + schema: + default: 25 + format: int64 + maximum: 1000 + type: integer + - $ref: '#/components/parameters/PageOffset' responses: '200': content: @@ -23891,6 +23903,10 @@ paths: summary: Get all powerpacks tags: - Powerpack + x-pagination: + limitParam: page[limit] + pageOffsetParam: page[offset] + resultsPath: data post: description: Create a powerpack. operationId: CreatePowerpack diff --git a/examples/v2/powerpack/CreatePowerpack.java b/examples/v2/powerpack/CreatePowerpack.java index f6c2d004326..cbb01310069 100644 --- a/examples/v2/powerpack/CreatePowerpack.java +++ b/examples/v2/powerpack/CreatePowerpack.java @@ -48,7 +48,7 @@ public static void main(String[] args) { .width(12L) .x(0L) .y(0L))) - .name("Sample Powerpack") + .name("Example-Powerpack") .tags(Collections.singletonList("tag:sample")) .templateVariables( Collections.singletonList( diff --git a/examples/v2/powerpack/ListPowerpacks.java b/examples/v2/powerpack/ListPowerpacks.java index 1272d6bbf69..7ee42767c5b 100644 --- a/examples/v2/powerpack/ListPowerpacks.java +++ b/examples/v2/powerpack/ListPowerpacks.java @@ -3,6 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.PowerpackApi; +import com.datadog.api.client.v2.api.PowerpackApi.ListPowerpacksOptionalParameters; import com.datadog.api.client.v2.model.ListPowerpacksResponse; public class Example { @@ -11,7 +12,8 @@ public static void main(String[] args) { PowerpackApi apiInstance = new PowerpackApi(defaultClient); try { - ListPowerpacksResponse result = apiInstance.listPowerpacks(); + ListPowerpacksResponse result = + apiInstance.listPowerpacks(new ListPowerpacksOptionalParameters().pageLimit(1000L)); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PowerpackApi#listPowerpacks"); diff --git a/examples/v2/powerpack/ListPowerpacks_1173755071.java b/examples/v2/powerpack/ListPowerpacks_1173755071.java new file mode 100644 index 00000000000..f871f3390f5 --- /dev/null +++ b/examples/v2/powerpack/ListPowerpacks_1173755071.java @@ -0,0 +1,28 @@ +// Get all powerpacks returns "OK" response with pagination + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.PaginationIterable; +import com.datadog.api.client.v2.api.PowerpackApi; +import com.datadog.api.client.v2.api.PowerpackApi.ListPowerpacksOptionalParameters; +import com.datadog.api.client.v2.model.PowerpackData; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + PowerpackApi apiInstance = new PowerpackApi(defaultClient); + + try { + PaginationIterable iterable = + apiInstance.listPowerpacksWithPagination( + new ListPowerpacksOptionalParameters().pageLimit(2L)); + + for (PowerpackData item : iterable) { + System.out.println(item); + } + } catch (RuntimeException e) { + System.err.println("Exception when calling PowerpackApi#listPowerpacksWithPagination"); + System.err.println("Reason: " + e.getMessage()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/powerpack/UpdatePowerpack.java b/examples/v2/powerpack/UpdatePowerpack.java index b1a48f0d93f..16f8e484630 100644 --- a/examples/v2/powerpack/UpdatePowerpack.java +++ b/examples/v2/powerpack/UpdatePowerpack.java @@ -51,7 +51,7 @@ public static void main(String[] args) { .width(12L) .x(0L) .y(0L))) - .name("Sample Powerpack") + .name("Example-Powerpack") .tags(Collections.singletonList("tag:sample")) .templateVariables( Collections.singletonList( diff --git a/src/main/java/com/datadog/api/client/v2/api/PowerpackApi.java b/src/main/java/com/datadog/api/client/v2/api/PowerpackApi.java index f798baae296..87b4a106fcd 100644 --- a/src/main/java/com/datadog/api/client/v2/api/PowerpackApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/PowerpackApi.java @@ -3,14 +3,18 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.ApiResponse; +import com.datadog.api.client.PaginationIterable; import com.datadog.api.client.Pair; import com.datadog.api.client.v2.model.ListPowerpacksResponse; import com.datadog.api.client.v2.model.Powerpack; +import com.datadog.api.client.v2.model.PowerpackData; import com.datadog.api.client.v2.model.PowerpackResponse; import jakarta.ws.rs.client.Invocation; import jakarta.ws.rs.core.GenericType; import java.util.ArrayList; import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; @@ -444,6 +448,35 @@ public CompletableFuture> getPowerpackWithHttpInf new GenericType() {}); } + /** Manage optional parameters to listPowerpacks. */ + public static class ListPowerpacksOptionalParameters { + private Long pageLimit; + private Long pageOffset; + + /** + * Set pageLimit. + * + * @param pageLimit Maximum number of powerpacks in the response. (optional, default to 25) + * @return ListPowerpacksOptionalParameters + */ + public ListPowerpacksOptionalParameters pageLimit(Long pageLimit) { + this.pageLimit = pageLimit; + return this; + } + + /** + * Set pageOffset. + * + * @param pageOffset Specific offset to use as the beginning of the returned page. (optional, + * default to 0) + * @return ListPowerpacksOptionalParameters + */ + public ListPowerpacksOptionalParameters pageOffset(Long pageOffset) { + this.pageOffset = pageOffset; + return this; + } + } + /** * Get all powerpacks. * @@ -453,7 +486,7 @@ public CompletableFuture> getPowerpackWithHttpInf * @throws ApiException if fails to make API call */ public ListPowerpacksResponse listPowerpacks() throws ApiException { - return listPowerpacksWithHttpInfo().getData(); + return listPowerpacksWithHttpInfo(new ListPowerpacksOptionalParameters()).getData(); } /** @@ -464,16 +497,100 @@ public ListPowerpacksResponse listPowerpacks() throws ApiException { * @return CompletableFuture<ListPowerpacksResponse> */ public CompletableFuture listPowerpacksAsync() { - return listPowerpacksWithHttpInfoAsync() + return listPowerpacksWithHttpInfoAsync(new ListPowerpacksOptionalParameters()) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Get all powerpacks. + * + *

See {@link #listPowerpacksWithHttpInfo}. + * + * @param parameters Optional parameters for the request. + * @return ListPowerpacksResponse + * @throws ApiException if fails to make API call + */ + public ListPowerpacksResponse listPowerpacks(ListPowerpacksOptionalParameters parameters) + throws ApiException { + return listPowerpacksWithHttpInfo(parameters).getData(); + } + + /** + * Get all powerpacks. + * + *

See {@link #listPowerpacksWithHttpInfoAsync}. + * + * @param parameters Optional parameters for the request. + * @return CompletableFuture<ListPowerpacksResponse> + */ + public CompletableFuture listPowerpacksAsync( + ListPowerpacksOptionalParameters parameters) { + return listPowerpacksWithHttpInfoAsync(parameters) .thenApply( response -> { return response.getData(); }); } + /** + * Get all powerpacks. + * + *

See {@link #listPowerpacksWithHttpInfo}. + * + * @return PaginationIterable<PowerpackData> + */ + public PaginationIterable listPowerpacksWithPagination() { + ListPowerpacksOptionalParameters parameters = new ListPowerpacksOptionalParameters(); + return listPowerpacksWithPagination(parameters); + } + + /** + * Get all powerpacks. + * + *

See {@link #listPowerpacksWithHttpInfo}. + * + * @return ListPowerpacksResponse + */ + public PaginationIterable listPowerpacksWithPagination( + ListPowerpacksOptionalParameters parameters) { + String resultsPath = "getData"; + String valueGetterPath = ""; + String valueSetterPath = "pageOffset"; + Boolean valueSetterParamOptional = true; + Long limit; + + if (parameters.pageLimit == null) { + limit = 25l; + parameters.pageLimit(limit); + } else { + limit = parameters.pageLimit; + } + + LinkedHashMap args = new LinkedHashMap(); + args.put("optionalParams", parameters); + + PaginationIterable iterator = + new PaginationIterable( + this, + "listPowerpacks", + resultsPath, + valueGetterPath, + valueSetterPath, + valueSetterParamOptional, + true, + limit, + args); + + return iterator; + } + /** * Get a list of all powerpacks. * + * @param parameters Optional parameters for the request. * @return ApiResponse<ListPowerpacksResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -484,18 +601,25 @@ public CompletableFuture listPowerpacksAsync() { * 429 Too many requests - * */ - public ApiResponse listPowerpacksWithHttpInfo() throws ApiException { + public ApiResponse listPowerpacksWithHttpInfo( + ListPowerpacksOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; + Long pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; // create path and map variables String localVarPath = "/api/v2/powerpacks"; + List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[limit]", pageLimit)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[offset]", pageOffset)); + Invocation.Builder builder = apiClient.createBuilder( "v2.PowerpackApi.listPowerpacks", localVarPath, - new ArrayList(), + localVarQueryParams, localVarHeaderParams, new HashMap(), new String[] {"application/json"}, @@ -516,22 +640,30 @@ public ApiResponse listPowerpacksWithHttpInfo() throws A * *

See {@link #listPowerpacksWithHttpInfo}. * + * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<ListPowerpacksResponse>> */ - public CompletableFuture> listPowerpacksWithHttpInfoAsync() { + public CompletableFuture> listPowerpacksWithHttpInfoAsync( + ListPowerpacksOptionalParameters parameters) { Object localVarPostBody = null; + Long pageLimit = parameters.pageLimit; + Long pageOffset = parameters.pageOffset; // create path and map variables String localVarPath = "/api/v2/powerpacks"; + List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[limit]", pageLimit)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[offset]", pageOffset)); + Invocation.Builder builder; try { builder = apiClient.createBuilder( "v2.PowerpackApi.listPowerpacks", localVarPath, - new ArrayList(), + localVarQueryParams, localVarHeaderParams, new HashMap(), new String[] {"application/json"}, diff --git a/src/test/java/com/datadog/api/ClientSteps.java b/src/test/java/com/datadog/api/ClientSteps.java index 1691391e563..22718d43028 100644 --- a/src/test/java/com/datadog/api/ClientSteps.java +++ b/src/test/java/com/datadog/api/ClientSteps.java @@ -338,8 +338,8 @@ public void theResponseHasItemWithField(String responsePath, String keyPath, Str responseList = (List) responseObject.getActualInstance(); } for (Object responseItem : responseList) { - Object itemValue = World.lookup(responseItem, keyPath); try { + Object itemValue = World.lookup(responseItem, keyPath); assertEquals( World.fromJSON( world.getObjectMapper(), @@ -347,7 +347,7 @@ public void theResponseHasItemWithField(String responsePath, String keyPath, Str World.templated(value, world.context)), itemValue); return; - } catch (AssertionError e) { + } catch (AssertionError | NullPointerException e) { continue; } } diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze index e9f7b08fe2d..1ad16723a01 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.freeze @@ -1 +1 @@ -2023-09-26T21:29:30.230Z \ No newline at end of file +2023-10-11T18:44:47.026Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json index 17e881dbb9c..35fb18f4037 100644 --- a/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json +++ b/src/test/resources/cassettes/features/v1/Create_a_new_dashboard_with_powerpack_widget.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"c71559ce-5cb3-11ee-9164-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8492163139927418}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6750168893668334}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "8305fb37-79a4-03a2-aa69-f085c06f0597" + "id": "09df1491-cb73-d8c0-64ac-9cb6b1832ff4" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"description\":\"description\",\"is_read_only\":false,\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1695763770 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"c71559ce-5cb3-11ee-9164-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1}}]}" + "json": "{\"description\":\"description\",\"is_read_only\":false,\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1}}]}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"id\":\"qk3-bn8-9pa\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1695763770 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/qk3-bn8-9pa/test-createanewdashboardwithpowerpackwidget-1695763770-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"c71559ce-5cb3-11ee-9164-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1},\"id\":5618921727592736}],\"notify_list\":null,\"created_at\":\"2023-09-26T21:29:30.677263+00:00\",\"modified_at\":\"2023-09-26T21:29:30.677263+00:00\",\"restricted_roles\":[]}\n", + "body": "{\"id\":\"wap-jgr-c99\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/wap-jgr-c99/test-createanewdashboardwithpowerpackwidget-1697049887-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1},\"id\":2124665012947075}],\"notify_list\":null,\"created_at\":\"2023-10-11T18:44:47.485150+00:00\",\"modified_at\":\"2023-10-11T18:44:47.485150+00:00\",\"restricted_roles\":[]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,18 +57,18 @@ "timeToLive": { "unlimited": true }, - "id": "d8ab6413-2eff-6052-7bbe-0ca82fcf0d6c" + "id": "75eb5a98-7bc0-07cb-a494-28c0cf9bfc39" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v1/dashboard/qk3-bn8-9pa", + "path": "/api/v1/dashboard/wap-jgr-c99", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"deleted_dashboard_id\":\"qk3-bn8-9pa\"}\n", + "body": "{\"deleted_dashboard_id\":\"wap-jgr-c99\"}\n", "headers": { "Content-Type": [ "application/json" @@ -83,13 +83,13 @@ "timeToLive": { "unlimited": true }, - "id": "665b2997-a64f-af9f-4780-24ce79a28eef" + "id": "3e05e958-5687-2650-c293-372e704c67d9" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/c71559ce-5cb3-11ee-9164-da7ad0900002", + "path": "/api/v2/powerpacks/40778356-6866-11ee-812e-da7ad0900002", "keepAlive": false, "secure": true }, @@ -108,6 +108,6 @@ "timeToLive": { "unlimited": true }, - "id": "d8baa7c8-cbe4-b53a-5784-7782abf4c72e" + "id": "21751312-5539-3056-49fb-e5723c37d7ec" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.freeze index 9d1f0685530..d85ca8f9611 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.freeze @@ -1 +1 @@ -2023-09-19T20:34:19.014Z \ No newline at end of file +2023-10-11T15:48:55.126Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.json index b8e5100d8a5..4608314b0d7 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_new_powerpack_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1697039335\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"e88f5556-572b-11ee-b081-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":5644443297535288}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"aef5d85a-684d-11ee-ae79-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1697039335\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":5789473441337322}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "8305fb37-79a4-03a2-aa69-f085c06f059c" + "id": "1771f1e3-6e45-52ae-dd76-a04be37cde22" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/e88f5556-572b-11ee-b081-da7ad0900002", + "path": "/api/v2/powerpacks/aef5d85a-684d-11ee-ae79-da7ad0900002", "keepAlive": false, "secure": true }, @@ -52,6 +52,6 @@ "timeToLive": { "unlimited": true }, - "id": "b6e525bb-0e70-fc70-d054-cf5e36878c7b" + "id": "39c20bcd-9cd1-a67b-e303-53ef0a0bbccf" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.freeze index 3f04c2c6ffe..aaa1fbb6130 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.freeze @@ -1 +1 @@ -2023-09-19T20:34:19.880Z \ No newline at end of file +2023-10-11T15:48:55.488Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.json index ffe0b876601..f977f3004c4 100644 --- a/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Delete_a_powerpack_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Delete_a_powerpack_returns_OK_response-1697039335\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"e918c048-572b-11ee-8cec-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8519959434065727}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"af2eedc0-684d-11ee-bf6c-da7ad0900002\",\"attributes\":{\"name\":\"Test-Delete_a_powerpack_returns_OK_response-1697039335\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6052073873114005}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "8305fb37-79a4-03a2-aa69-f085c06f059a" + "id": "0cbf31f7-7c8a-c3d2-4bd7-f3d6e901a844" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/e918c048-572b-11ee-8cec-da7ad0900002", + "path": "/api/v2/powerpacks/af2eedc0-684d-11ee-bf6c-da7ad0900002", "keepAlive": false, "secure": true }, @@ -52,18 +52,18 @@ "timeToLive": { "unlimited": true }, - "id": "352b4a26-dcb4-64f5-0550-1550eb84fe15" + "id": "00fd0809-6dc5-98d7-d635-f7aaf41a8ace" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/e918c048-572b-11ee-8cec-da7ad0900002", + "path": "/api/v2/powerpacks/af2eedc0-684d-11ee-bf6c-da7ad0900002", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[\"Powerpack with ID e918c048-572b-11ee-8cec-da7ad0900002 not found\"]}", + "body": "{\"errors\":[\"Powerpack with ID af2eedc0-684d-11ee-bf6c-da7ad0900002 not found\"]}", "headers": { "Content-Type": [ "application/json" @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "352b4a26-dcb4-64f5-0550-1550eb84fe16" + "id": "00fd0809-6dc5-98d7-d635-f7aaf41a8acf" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.freeze index 77218be98ec..6e95c357448 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.freeze @@ -1 +1 @@ -2023-09-19T20:34:21.001Z \ No newline at end of file +2023-10-11T15:48:56.104Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.json index c0e2f9f15d8..75d947397fb 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1697039336\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"e9c3a68e-572b-11ee-9921-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6180231820143192}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"af8c8bc4-684d-11ee-ab74-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4673428095397965}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "8305fb37-79a4-03a2-aa69-f085c06f0598" + "id": "5cb3dde0-dc00-f97f-0ccb-f183838c8638" }, { "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v2/powerpacks/e9c3a68e-572b-11ee-9921-da7ad0900002", + "path": "/api/v2/powerpacks/af8c8bc4-684d-11ee-ab74-da7ad0900002", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"e9c3a68e-572b-11ee-9921-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6180231820143192}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"af8c8bc4-684d-11ee-ab74-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_a_Powerpack_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4673428095397965}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -53,13 +53,13 @@ "timeToLive": { "unlimited": true }, - "id": "0b687bd8-c7a9-499e-2c5b-2a95f7325c4c" + "id": "1d963c99-33fc-5925-b318-2e162df947a6" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/e9c3a68e-572b-11ee-9921-da7ad0900002", + "path": "/api/v2/powerpacks/af8c8bc4-684d-11ee-ab74-da7ad0900002", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "1f35ffec-4405-e927-370e-c40c569654c3" + "id": "0cca47d6-3ac8-2d75-b777-3db410e83217" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_Powerpack_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_Powerpack_Not_Found_response.freeze index 01489960580..f51c198ff79 100644 --- a/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_Powerpack_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_a_Powerpack_returns_Powerpack_Not_Found_response.freeze @@ -1 +1 @@ -2023-09-19T20:34:21.843Z \ No newline at end of file +2023-10-11T15:48:56.601Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.freeze index f1d89bcd5f6..6367af5c7b9 100644 --- a/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.freeze @@ -1 +1 @@ -2023-09-19T20:34:22.163Z \ No newline at end of file +2023-10-11T15:48:56.720Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.json index 0bcb99750d5..31b272a4195 100644 --- a/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1697039336\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"ea79a97a-572b-11ee-95d1-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4425546308848838}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"afe8ae9a-684d-11ee-acaa-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2076464251986187}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,18 +27,23 @@ "timeToLive": { "unlimited": true }, - "id": "8305fb37-79a4-03a2-aa69-f085c06f059b" + "id": "bda36534-fadd-46f0-80b2-a065c84b6c52" }, { "httpRequest": { "headers": {}, "method": "GET", "path": "/api/v2/powerpacks", + "queryStringParameters": { + "page[limit]": [ + "1000" + ] + }, "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":[{\"type\":\"powerpack\",\"id\":\"ea79a97a-572b-11ee-95d1-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4425546308848838}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"df854830-5721-11ee-a5cb-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":7074599446492254}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"c682402c-5721-11ee-9e3a-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6284179343997328}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"9845ef02-5270-11ee-b156-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Please don't delete - used in public api spec tests.\",\"group_widget\":{\"layout\":{\"x\":0,\"y\":0,\"width\":12,\"height\":3},\"definition\":{\"title\":\"Sample Powerpack\",\"type\":\"group\",\"layout_type\":\"ordered\",\"widgets\":[{\"layout\":{\"x\":0,\"y\":0,\"width\":2,\"height\":2},\"definition\":{\"type\":\"note\",\"content\":\"Test\",\"background_color\":\"white\",\"font_size\":\"56\",\"text_align\":\"center\",\"vertical_align\":\"top\",\"show_tick\":false,\"tick_pos\":\"50%\",\"tick_edge\":\"left\",\"has_padding\":true},\"id\":5480978922393146},{\"layout\":{\"x\":2,\"y\":0,\"width\":4,\"height\":2},\"definition\":{\"type\":\"note\",\"content\":\"Powerpacks\",\"background_color\":\"white\",\"font_size\":\"56\",\"text_align\":\"center\",\"vertical_align\":\"top\",\"show_tick\":false,\"tick_pos\":\"50%\",\"tick_edge\":\"left\",\"has_padding\":true},\"id\":8930506491864045}]}},\"template_variables\":[],\"tags\":[\"tag:display\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"88575170-5721-11ee-ad58-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":808919002773200}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"87dcc80c-5720-11ee-a801-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8191251878590002}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"80d9e6ee-571f-11ee-8b1f-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8862041995898907}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"762dbf4a-571f-11ee-8317-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":687973434806520}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"760fce72-571f-11ee-9833-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4098068431422804}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"75f58440-571f-11ee-b1ee-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":1606539530126708}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"75024140-571f-11ee-b658-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8753429084871035}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"74cbe5be-571f-11ee-b7f3-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6566925545234730}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"74929fb6-571f-11ee-8b1e-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":432765966992707}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"7100a1b8-571f-11ee-8970-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2190124205654107}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"70db12f4-571f-11ee-964e-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":7599696962501486}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"70b76822-571f-11ee-ad4d-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2781058132030543}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"7057cd54-571f-11ee-8cb3-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6920126044100885}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"700537b0-571f-11ee-a310-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":7133100708358096}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"6f8db988-571f-11ee-8974-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":1212099985738531}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}}],\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":25,\"last_offset\":null,\"limit\":25,\"type\":\"offset_limit\"}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/powerpacks\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=25&page[limit]=25\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=0&page[limit]=25\"}}\n", + "body": "{\"data\":[{\"type\":\"powerpack\",\"id\":\"afe8ae9a-684d-11ee-acaa-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response-1697039336\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2076464251986187}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"1de23daa-67a7-11ee-aeeb-da7ad0900002\",\"attributes\":{\"name\":\"\",\"description\":\"Powerpack for ABC!\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Powerpack Test\",\"type\":\"group\",\"widgets\":[]}},\"template_variables\":null,\"tags\":[]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"1aa44f4c-684d-11ee-a69d-da7ad0900002\",\"attributes\":{\"name\":\"\",\"description\":\"Powerpack for ABCD!\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Powerpack Test\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test notes\",\"type\":\"note\"},\"id\":2505594874009019}]}},\"template_variables\":null,\"tags\":[]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"17c331c8-67a6-11ee-bad7-da7ad0900002\",\"attributes\":{\"name\":\"\",\"description\":\"Powerpack for ABC!\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Powerpack Test\",\"type\":\"group\",\"widgets\":[]}},\"template_variables\":null,\"tags\":[]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}}],\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":1000,\"last_offset\":null,\"limit\":1000,\"type\":\"offset_limit\"}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/powerpacks?page%5Blimit%5D=1000\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=1000&page[limit]=1000\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=0&page[limit]=1000\"}}\n", "headers": { "Content-Type": [ "application/json" @@ -53,13 +58,13 @@ "timeToLive": { "unlimited": true }, - "id": "adc68d02-e114-9a7e-e9a7-d5c9e558cacd" + "id": "982d4ec6-c25a-3770-3ec7-1d06af23474b" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/ea79a97a-572b-11ee-95d1-da7ad0900002", + "path": "/api/v2/powerpacks/afe8ae9a-684d-11ee-acaa-da7ad0900002", "keepAlive": false, "secure": true }, @@ -78,6 +83,6 @@ "timeToLive": { "unlimited": true }, - "id": "392f8fba-750c-6c5c-3c23-4c40bbbe0bb3" + "id": "7363a75c-03d8-aec0-39d7-7d135e66f7a4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response_with_pagination.freeze b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response_with_pagination.freeze new file mode 100644 index 00000000000..8aa7f07be83 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response_with_pagination.freeze @@ -0,0 +1 @@ +2023-10-11T19:24:38.025Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response_with_pagination.json b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response_with_pagination.json new file mode 100644 index 00000000000..647214bd439 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Get_all_powerpacks_returns_OK_response_with_pagination.json @@ -0,0 +1,122 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Get_all_powerpacks_returns_OK_response_with_pagination-1697052278\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/powerpacks", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"d1938042-686b-11ee-9d56-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response_with_pagination-1697052278\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4216761608837044}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "466a2c39-bb9e-b6a0-f890-20532cc74b60" + }, + { + "httpRequest": { + "headers": {}, + "method": "GET", + "path": "/api/v2/powerpacks", + "queryStringParameters": { + "page[limit]": [ + "2" + ] + }, + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":[{\"type\":\"powerpack\",\"id\":\"d1938042-686b-11ee-9d56-da7ad0900002\",\"attributes\":{\"name\":\"Test-Get_all_powerpacks_returns_OK_response_with_pagination-1697052278\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4216761608837044}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},{\"type\":\"powerpack\",\"id\":\"cabb74fa-686b-11ee-8326-da7ad0900002\",\"attributes\":{\"name\":\"another powerpack\",\"description\":\"\",\"group_widget\":{\"layout\":{\"x\":0,\"y\":0,\"width\":4,\"height\":3},\"definition\":{\"title\":\"another powerpack\",\"type\":\"group\",\"layout_type\":\"ordered\",\"widgets\":[{\"layout\":{\"x\":0,\"y\":0,\"width\":2,\"height\":2},\"definition\":{\"type\":\"note\",\"content\":\"its just a ***test***\",\"background_color\":\"white\",\"font_size\":\"36\",\"text_align\":\"center\",\"vertical_align\":\"center\",\"show_tick\":false,\"tick_pos\":\"50%\",\"tick_edge\":\"left\",\"has_padding\":true},\"id\":2265811261450092}]}},\"template_variables\":[],\"tags\":[\"tag:display\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"d5bf7f0a-19b0-11ed-b0df-da7ad0900002\"}}}}],\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}},{\"type\":\"users\",\"id\":\"d5bf7f0a-19b0-11ed-b0df-da7ad0900002\",\"attributes\":{\"name\":\"Kevin Zou\",\"email\":\"kevin.zou@datadoghq.com\"}}],\"meta\":{\"pagination\":{\"offset\":0,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":2,\"last_offset\":null,\"limit\":2,\"type\":\"offset_limit\"}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/powerpacks?page%5Blimit%5D=2\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=2&page[limit]=2\",\"prev\":null,\"first\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=0&page[limit]=2\"}}\n", + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "36ccd05c-3c7f-423b-d790-09434ab3f6ba" + }, + { + "httpRequest": { + "headers": {}, + "method": "GET", + "path": "/api/v2/powerpacks", + "queryStringParameters": { + "page[limit]": [ + "2" + ], + "page[offset]": [ + "2" + ] + }, + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":[{\"type\":\"powerpack\",\"id\":\"7d77332e-6865-11ee-a8bf-da7ad0900002\",\"attributes\":{\"name\":\"\",\"description\":\"Test Powerpack 2\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Powerpack Test\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test test test\",\"type\":\"note\"},\"id\":887637664261479}]}},\"template_variables\":null,\"tags\":[]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}}],\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}],\"meta\":{\"pagination\":{\"offset\":2,\"first_offset\":0,\"prev_offset\":0,\"next_offset\":4,\"last_offset\":null,\"limit\":2,\"type\":\"offset_limit\"}},\"links\":{\"self\":\"https://api.datadoghq.com/api/v2/powerpacks?page%5Blimit%5D=2&page%5Boffset%5D=2\",\"last\":null,\"next\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=4&page[limit]=2\",\"prev\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=0&page[limit]=2\",\"first\":\"https://api.datadoghq.com/api/v2/powerpacks?page[offset]=0&page[limit]=2\"}}\n", + "headers": { + "Content-Type": [ + "application/json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "893187d7-9dd2-fe55-c8f9-b8e2f4446732" + }, + { + "httpRequest": { + "headers": {}, + "method": "DELETE", + "path": "/api/v2/powerpacks/d1938042-686b-11ee-9d56-da7ad0900002", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "headers": { + "Content-Type": [ + "text/html; charset=utf-8" + ] + }, + "statusCode": 204, + "reasonPhrase": "No Content" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "22eddf03-a04f-be78-f806-cf77fa887f8a" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.freeze index 8d5b8f21651..1071753e9f5 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2023-10-05T15:56:24.178Z \ No newline at end of file +2023-10-11T15:48:57.189Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.json index cd7d3dbf842..f3f3bc7cc9f 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Bad_Request_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_Bad_Request_response-1697039337\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"bc22abe4-6397-11ee-865e-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":1043184765896296}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"b030a42a-684d-11ee-ad9a-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_Bad_Request_response-1697039337\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8452824404539211}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "8305fb37-79a4-03a2-aa69-f085c06f059d" + "id": "7cd88502-8616-bc61-728d-28a195216bac" }, { "httpRequest": { @@ -37,7 +37,7 @@ }, "headers": {}, "method": "PATCH", - "path": "/api/v2/powerpacks/bc22abe4-6397-11ee-865e-da7ad0900002", + "path": "/api/v2/powerpacks/b030a42a-684d-11ee-ad9a-da7ad0900002", "keepAlive": false, "secure": true }, @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "ff233efa-3783-ff46-07e4-0cc8d5404793" + "id": "fe5eeecc-6925-36f5-75aa-01d8e732a976" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/bc22abe4-6397-11ee-865e-da7ad0900002", + "path": "/api/v2/powerpacks/b030a42a-684d-11ee-ad9a-da7ad0900002", "keepAlive": false, "secure": true }, @@ -82,6 +82,6 @@ "timeToLive": { "unlimited": true }, - "id": "d54e920a-29c5-e713-2c88-346ac202d6fa" + "id": "da8999f1-2146-a405-6716-fc5f27b550be" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.freeze index 2d3704e417a..6794b87fecb 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.freeze @@ -1 +1 @@ -2023-09-19T20:34:23.956Z \ No newline at end of file +2023-10-11T15:48:57.662Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.json index 6a154f1159c..000efc49468 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_OK_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"eb863bda-572b-11ee-a120-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6171784362108598}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"b07d6fa8-684d-11ee-ac91-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":8154966623549713}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -27,22 +27,22 @@ "timeToLive": { "unlimited": true }, - "id": "8305fb37-79a4-03a2-aa69-f085c06f0599" + "id": "04c9ca47-655a-e8d5-8adc-ed3569e592aa" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "PATCH", - "path": "/api/v2/powerpacks/eb863bda-572b-11ee-a120-da7ad0900002", + "path": "/api/v2/powerpacks/b07d6fa8-684d-11ee-ac91-da7ad0900002", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"eb863bda-572b-11ee-a120-da7ad0900002\",\"attributes\":{\"name\":\"Sample Powerpack\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":4154924957169825}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", + "body": "{\"data\":{\"type\":\"powerpack\",\"id\":\"b07d6fa8-684d-11ee-ac91-da7ad0900002\",\"attributes\":{\"name\":\"Test-Update_a_powerpack_returns_OK_response-1697039337\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":5980827967005331}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n", "headers": { "Content-Type": [ "application/json" @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "91464fb8-dcce-a706-a2b0-1b8cd6903193" + "id": "da12a2c7-4e5f-0609-675b-8c677f966f56" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/powerpacks/eb863bda-572b-11ee-a120-da7ad0900002", + "path": "/api/v2/powerpacks/b07d6fa8-684d-11ee-ac91-da7ad0900002", "keepAlive": false, "secure": true }, @@ -82,6 +82,6 @@ "timeToLive": { "unlimited": true }, - "id": "109d43b5-9a67-b15f-84df-584377fff222" + "id": "74ee8d46-34c9-35b5-a5e1-071070edd45f" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.freeze index 4ff3fe59423..2c235aef0fe 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.freeze @@ -1 +1 @@ -2023-09-19T20:34:24.805Z \ No newline at end of file +2023-10-11T15:48:58.181Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.json index 25f3151fdf9..0ddf0baa4cd 100644 --- a/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Update_a_powerpack_returns_Powerpack_Not_Found_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" + "json": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Update_a_powerpack_returns_Powerpack_Not_Found_response-1697039338\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}" }, "headers": {}, "method": "PATCH", @@ -27,6 +27,6 @@ "timeToLive": { "unlimited": true }, - "id": "31d17c65-0777-8b61-379d-443e20d01041" + "id": "5187ec64-6405-5b14-ac1a-d2477dcbf59d" } ] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v2/api/given.json b/src/test/resources/com/datadog/api/client/v2/api/given.json index 3db9325b750..408165d3599 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/given.json +++ b/src/test/resources/com/datadog/api/client/v2/api/given.json @@ -310,7 +310,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"data\": {\n \"attributes\": {\n \"description\": \"Sample powerpack\",\n \"group_widget\": {\n \"definition\": {\n \"layout_type\": \"ordered\",\n \"show_title\": true,\n \"title\": \"Sample Powerpack\",\n \"type\": \"group\",\n \"widgets\": [\n {\n \"definition\": {\n \"content\": \"test\",\n \"type\": \"note\"\n }\n }\n ]\n },\n \"layout\": {\n \"height\": 3,\n \"width\": 12,\n \"x\": 0,\n \"y\": 0\n }\n },\n \"name\": \"Sample Powerpack\",\n \"tags\": [\n \"tag:sample\"\n ],\n \"template_variables\": [\n {\n \"defaults\": [\n \"*\"\n ],\n \"name\": \"sample\"\n }\n ]\n },\n \"type\": \"powerpack\"\n }\n}" + "value": "{\n \"data\": {\n \"attributes\": {\n \"description\": \"Sample powerpack\",\n \"group_widget\": {\n \"definition\": {\n \"layout_type\": \"ordered\",\n \"show_title\": true,\n \"title\": \"Sample Powerpack\",\n \"type\": \"group\",\n \"widgets\": [\n {\n \"definition\": {\n \"content\": \"test\",\n \"type\": \"note\"\n }\n }\n ]\n },\n \"layout\": {\n \"height\": 3,\n \"width\": 12,\n \"x\": 0,\n \"y\": 0\n }\n },\n \"name\": \"{{ unique }}\",\n \"tags\": [\n \"tag:sample\"\n ],\n \"template_variables\": [\n {\n \"defaults\": [\n \"*\"\n ],\n \"name\": \"sample\"\n }\n ]\n },\n \"type\": \"powerpack\"\n }\n}" } ], "step": "there is a valid \"powerpack\" in the system", diff --git a/src/test/resources/com/datadog/api/client/v2/api/powerpack.feature b/src/test/resources/com/datadog/api/client/v2/api/powerpack.feature index e14ebfb6520..2f622ef3494 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/powerpack.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/powerpack.feature @@ -24,7 +24,7 @@ Feature: Powerpack When the request is sent Then the response status is 200 OK And the response "data.type" is equal to "powerpack" - And the response "data.attributes.name" is equal to "Sample Powerpack" + And the response "data.attributes.name" is equal to "{{ unique }}" And the response "data.attributes.description" is equal to "Sample powerpack" And the response "data.attributes.template_variables[0].name" is equal to "sample" And the response "data.attributes.template_variables[0].defaults[0]" is equal to "*" @@ -61,7 +61,8 @@ Feature: Powerpack When the request is sent Then the response status is 200 OK And the response "data.type" is equal to "powerpack" - And the response "data.attributes.name" is equal to "Sample Powerpack" + And the response "data.id" has the same value as "powerpack.data.id" + And the response "data.attributes.name" is equal to "{{ unique }}" And the response "data.attributes.description" is equal to "Sample powerpack" And the response "data.attributes.template_variables[0].name" is equal to "sample" And the response "data.attributes.template_variables[0].defaults[0]" is equal to "*" @@ -87,10 +88,12 @@ Feature: Powerpack Scenario: Get all powerpacks returns "OK" response Given there is a valid "powerpack" in the system And new "ListPowerpacks" request + And request contains "page[limit]" parameter with value 1000 When the request is sent Then the response status is 200 OK And the response "data" has item with field "type" with value "powerpack" - And the response "data" has item with field "attributes.name" with value "Sample Powerpack" + And the response "data" has item with field "id" with value "{{ powerpack.data.id }}" + And the response "data" has item with field "attributes.name" with value "{{ unique }}" And the response "data" has item with field "attributes.description" with value "Sample powerpack" And the response "data" has item with field "attributes.template_variables[0].name" with value "sample" And the response "data" has item with field "attributes.template_variables[0].defaults[0]" with value "*" @@ -105,6 +108,15 @@ Feature: Powerpack And the response "data" has item with field "attributes.group_widget.definition.widgets[0].definition.type" with value "note" And the response "data" has item with field "attributes.group_widget.definition.widgets[0].definition.content" with value "test" + @replay-only @skip-validation @team:DataDog/dashboards-backend @with-pagination + Scenario: Get all powerpacks returns "OK" response with pagination + Given there is a valid "powerpack" in the system + And new "ListPowerpacks" request + And request contains "page[limit]" parameter with value 2 + When the request with pagination is sent + Then the response status is 200 OK + And the response has 3 items + @team:DataDog/dashboards-backend Scenario: Update a powerpack returns "Bad Request" response Given there is a valid "powerpack" in the system @@ -123,7 +135,8 @@ Feature: Powerpack When the request is sent Then the response status is 200 OK And the response "data.type" is equal to "powerpack" - And the response "data.attributes.name" is equal to "Sample Powerpack" + And the response "data.id" has the same value as "powerpack.data.id" + And the response "data.attributes.name" is equal to "{{ unique }}" And the response "data.attributes.description" is equal to "Sample powerpack" And the response "data.attributes.template_variables[0].name" is equal to "sample" And the response "data.attributes.template_variables[0].defaults[0]" is equal to "*" diff --git a/src/test/resources/com/datadog/api/client/v2/api/powerpack_payload.json b/src/test/resources/com/datadog/api/client/v2/api/powerpack_payload.json index d0681e39217..32e53416a9a 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/powerpack_payload.json +++ b/src/test/resources/com/datadog/api/client/v2/api/powerpack_payload.json @@ -24,7 +24,7 @@ "y": 0 } }, - "name": "Sample Powerpack", + "name": "{{ unique }}", "tags": [ "tag:sample" ],