From bdaef59048491c621b0b81768ce8f6e45421d192 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 26 Nov 2026 14:57:40 +0000 Subject: [PATCH] Regenerate client from commit 6c8c833 of spec repo --- examples/v2/rum-config/UpdateRumConfig.java | 2 +- .../QueryAggregatedLongTasks.java | 6 +- .../QueryAggregatedWaterfall.java | 6 +- .../v2/rum-operations/CreateRUMOperation.java | 41 ++-- .../CreateRUMOperationStrongLink.java | 14 +- .../v2/rum-operations/DeleteRUMOperation.java | 5 +- .../DeleteRUMOperationStrongLink.java | 10 +- .../v2/rum-operations/GetRUMOperation.java | 5 +- .../rum-operations/GetRUMOperationByName.java | 6 +- .../ListRUMOperationStrongLinks.java | 9 +- .../v2/rum-operations/ListRUMOperations.java | 8 +- .../v2/rum-operations/UpdateRUMOperation.java | 49 ++-- .../UpdateRUMOperationStrongLink.java | 15 +- .../com/datadog/api/client/v2/api/given.json | 36 +++ .../api/client/v2/api/rum_config.feature | 9 +- .../api/client/v2/api/rum_insights.feature | 18 +- .../api/client/v2/api/rum_operations.feature | 173 ++++++++------ .../com/datadog/api/client/v2/api/undo.json | 18 ++ .../test-runner-data/manifest.json | 217 ++++++++++++++++++ ...rum-configuration-returns-ok-response.json | 18 ++ ...rum-configuration-returns-ok-response.json | 33 +++ ...ng-tasks-returns-bad-request-response.json | 28 +++ ...-returns-successful-response-response.json | 28 +++ ...aterfall-returns-bad-request-response.json | 28 +++ ...-returns-successful-response-response.json | 28 +++ ...ion-link-returns-bad-request-response.json | 33 +++ ...n-and-journey-already-exists-response.json | 36 +++ ...eration-link-returns-created-response.json | 38 +++ ...-operation-id-does-not-exist-response.json | 36 +++ ...peration-returns-bad-request-response.json | 52 +++++ ...ith-this-name-already-exists-response.json | 57 +++++ ...e-a-rum-operation-returns-ok-response.json | 57 +++++ ...tion-link-returns-no-content-response.json | 51 ++++ ...ation-link-returns-not-found-response.json | 51 ++++ ...operation-returns-no-content-response.json | 35 +++ ...-operation-returns-not-found-response.json | 35 +++ ...on-by-name-returns-not-found-response.json | 35 +++ ...operation-by-name-returns-ok-response.json | 35 +++ ...-operation-returns-not-found-response.json | 35 +++ ...t-a-rum-operation-returns-ok-response.json | 35 +++ ...on-links-returns-bad-request-response.json | 18 ++ ...m-operation-links-returns-ok-response.json | 35 +++ ...erations-returns-bad-request-response.json | 35 +++ ...ch-rum-operations-returns-ok-response.json | 35 +++ ...ation-link-returns-not-found-response.json | 66 ++++++ ...um-operation-link-returns-ok-response.json | 66 ++++++ ...peration-returns-bad-request-response.json | 70 ++++++ ...ith-this-name-already-exists-response.json | 75 ++++++ ...-operation-returns-not-found-response.json | 75 ++++++ ...e-a-rum-operation-returns-ok-response.json | 75 ++++++ 50 files changed, 1826 insertions(+), 155 deletions(-) create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-config/get-the-rum-configuration-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-config/update-the-rum-configuration-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-bad-request-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-successful-response-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-bad-request-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-successful-response-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-bad-request-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-conflict-a-link-between-this-operation-and-journey-already-exists-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-created-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-not-found-the-referenced-operation-id-does-not-exist-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-bad-request-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-no-content-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-not-found-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-no-content-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-not-found-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-not-found-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-not-found-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-bad-request-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-bad-request-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-not-found-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-ok-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-bad-request-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-not-found-response.json create mode 100644 src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-ok-response.json diff --git a/examples/v2/rum-config/UpdateRumConfig.java b/examples/v2/rum-config/UpdateRumConfig.java index 8718971a4ff..e974150a15d 100644 --- a/examples/v2/rum-config/UpdateRumConfig.java +++ b/examples/v2/rum-config/UpdateRumConfig.java @@ -20,7 +20,7 @@ public static void main(String[] args) { new RumConfigUpdateRequest() .data( new RumConfigUpdateData() - .attributes(new RumConfigUpdateAttributes().enforcedApplicationTags(true)) + .attributes(new RumConfigUpdateAttributes().enforcedApplicationTags(false)) .type(RumConfigType.RUM_CONFIG)); try { diff --git a/examples/v2/rum-insights/QueryAggregatedLongTasks.java b/examples/v2/rum-insights/QueryAggregatedLongTasks.java index 8fd88e805ea..c2435482750 100644 --- a/examples/v2/rum-insights/QueryAggregatedLongTasks.java +++ b/examples/v2/rum-insights/QueryAggregatedLongTasks.java @@ -1,5 +1,4 @@ // Query aggregated long tasks returns "Successful response" response - import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.RumInsightsApi; @@ -10,6 +9,7 @@ import com.datadog.api.client.v2.model.AggregatedLongTasksResponse; import com.datadog.api.client.v2.model.AggregatedWaterfallPerformanceCriteria; import com.datadog.api.client.v2.model.AggregatedWaterfallPerformanceCriteriaMetric; +import java.time.OffsetDateTime; import java.util.UUID; public class Example { @@ -34,9 +34,9 @@ public static void main(String[] args) { .LARGEST_CONTENTFUL_PAINT) .min(2.5)) .filter("@session.type:user") - .from(1762437564L) + .from(OffsetDateTime.now().plusHours(-1).toInstant().getEpochSecond()) .sampleSize(20) - .to(1762523964L) + .to(OffsetDateTime.now().toInstant().getEpochSecond()) .viewName("/account/login(/:type)")) .type(AggregatedLongTasksRequestType.AGGREGATED_LONG_TASKS)); diff --git a/examples/v2/rum-insights/QueryAggregatedWaterfall.java b/examples/v2/rum-insights/QueryAggregatedWaterfall.java index 17056d9f0b9..ffa4371e7bb 100644 --- a/examples/v2/rum-insights/QueryAggregatedWaterfall.java +++ b/examples/v2/rum-insights/QueryAggregatedWaterfall.java @@ -1,5 +1,4 @@ // Query aggregated waterfall returns "Successful response" response - import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.RumInsightsApi; @@ -10,6 +9,7 @@ import com.datadog.api.client.v2.model.AggregatedWaterfallRequestData; import com.datadog.api.client.v2.model.AggregatedWaterfallRequestType; import com.datadog.api.client.v2.model.AggregatedWaterfallResponse; +import java.time.OffsetDateTime; import java.util.UUID; public class Example { @@ -34,10 +34,10 @@ public static void main(String[] args) { .LARGEST_CONTENTFUL_PAINT) .min(2.5)) .filter("@session.type:user") - .from(1762437564L) + .from(OffsetDateTime.now().plusHours(-1).toInstant().getEpochSecond()) .includeGlobalAppearance(false) .sampleSize(20) - .to(1762523964L) + .to(OffsetDateTime.now().toInstant().getEpochSecond()) .viewName("/account/login(/:type)")) .type(AggregatedWaterfallRequestType.AGGREGATED_WATERFALL)); diff --git a/examples/v2/rum-operations/CreateRUMOperation.java b/examples/v2/rum-operations/CreateRUMOperation.java index 75e8f82ca7f..fbe8ee4abd4 100644 --- a/examples/v2/rum-operations/CreateRUMOperation.java +++ b/examples/v2/rum-operations/CreateRUMOperation.java @@ -5,18 +5,15 @@ import com.datadog.api.client.v2.api.RumOperationsApi; import com.datadog.api.client.v2.model.RUMOperationCreateRequest; import com.datadog.api.client.v2.model.RUMOperationCreateRequestData; -import com.datadog.api.client.v2.model.RUMOperationJourneyCompositeRule; -import com.datadog.api.client.v2.model.RUMOperationJourneyCompositeRuleKind; import com.datadog.api.client.v2.model.RUMOperationJourneyNode; -import com.datadog.api.client.v2.model.RUMOperationJourneyPredicate; import com.datadog.api.client.v2.model.RUMOperationJourneyRum; import com.datadog.api.client.v2.model.RUMOperationJourneyStep; import com.datadog.api.client.v2.model.RUMOperationJourneyStepType; import com.datadog.api.client.v2.model.RUMOperationRequestAttributes; import com.datadog.api.client.v2.model.RUMOperationResponse; import com.datadog.api.client.v2.model.RUMOperationType; +import java.util.Arrays; import java.util.Collections; -import java.util.UUID; public class Example { public static void main(String[] args) { @@ -28,38 +25,30 @@ public static void main(String[] args) { new RUMOperationCreateRequest() .data( new RUMOperationCreateRequestData() + .type(RUMOperationType.OPERATIONS) .attributes( new RUMOperationRequestAttributes() - .applicationId(UUID.fromString("abc12345-1234-5678-abcd-ef1234567890")) - .category(null) - .description(null) - .displayName("Checkout completed") + .name("bdd_examplerumoperation") + .displayName("BDD operation") + .tags(Collections.singletonList("team:rum-backend")) .journeyRum( new RUMOperationJourneyRum() .rumSteps( - Collections.singletonList( + Arrays.asList( new RUMOperationJourneyStep() - .composite( - new RUMOperationJourneyCompositeRule() - .kind( - RUMOperationJourneyCompositeRuleKind - .ALL_OF) - .maxWindowMs(30000L) - .predicates( - Collections.singletonList( - new RUMOperationJourneyPredicate() - .query( - "@type:action" - + " @action.type:click")))) + .type(RUMOperationJourneyStepType.START) .nodes( Collections.singletonList( new RUMOperationJourneyNode() .query( - "@type:action @action.type:click"))) - .type(RUMOperationJourneyStepType.START)))) - .name("checkout_completed") - .tags(Collections.singletonList("team:checkout"))) - .type(RUMOperationType.OPERATIONS)); + "@type:action" + + " @action.type:click"))), + new RUMOperationJourneyStep() + .type(RUMOperationJourneyStepType.STOP) + .nodes( + Collections.singletonList( + new RUMOperationJourneyNode() + .query("@type:view")))))))); try { RUMOperationResponse result = apiInstance.createRUMOperation(body); diff --git a/examples/v2/rum-operations/CreateRUMOperationStrongLink.java b/examples/v2/rum-operations/CreateRUMOperationStrongLink.java index 0a62205c20c..2deabbc5acd 100644 --- a/examples/v2/rum-operations/CreateRUMOperationStrongLink.java +++ b/examples/v2/rum-operations/CreateRUMOperationStrongLink.java @@ -9,6 +9,7 @@ import com.datadog.api.client.v2.model.RUMOperationStrongLinkResponse; import com.datadog.api.client.v2.model.RUMOperationStrongLinkStatus; import com.datadog.api.client.v2.model.RUMOperationStrongLinkType; +import java.util.Collections; public class Example { public static void main(String[] args) { @@ -16,17 +17,20 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation" in the system + String RUM_OPERATION_DATA_ID = System.getenv("RUM_OPERATION_DATA_ID"); + RUMOperationStrongLinkCreateRequest body = new RUMOperationStrongLinkCreateRequest() .data( new RUMOperationStrongLinkCreateRequestData() + .type(RUMOperationStrongLinkType.STRONG_LINKS) .attributes( new RUMOperationStrongLinkCreateRequestAttributes() - .description(null) - .featureId("journey-123") - .operationId("abc12345-1234-5678-abcd-ef1234567890") - .status(RUMOperationStrongLinkStatus.CONFIRMED)) - .type(RUMOperationStrongLinkType.STRONG_LINKS)); + .operationId(RUM_OPERATION_DATA_ID) + .featureId("bdd-examplerumoperation") + .status(RUMOperationStrongLinkStatus.DRAFT) + .tags(Collections.singletonList("team:rum-backend")))); try { RUMOperationStrongLinkResponse result = apiInstance.createRUMOperationStrongLink(body); diff --git a/examples/v2/rum-operations/DeleteRUMOperation.java b/examples/v2/rum-operations/DeleteRUMOperation.java index b74d61df5a6..231e2c49912 100644 --- a/examples/v2/rum-operations/DeleteRUMOperation.java +++ b/examples/v2/rum-operations/DeleteRUMOperation.java @@ -10,8 +10,11 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation" in the system + String RUM_OPERATION_DATA_ID = System.getenv("RUM_OPERATION_DATA_ID"); + try { - apiInstance.deleteRUMOperation("rum_operation_id"); + apiInstance.deleteRUMOperation(RUM_OPERATION_DATA_ID); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#deleteRUMOperation"); System.err.println("Status code: " + e.getCode()); diff --git a/examples/v2/rum-operations/DeleteRUMOperationStrongLink.java b/examples/v2/rum-operations/DeleteRUMOperationStrongLink.java index b1218d75be1..225ec1fb52e 100644 --- a/examples/v2/rum-operations/DeleteRUMOperationStrongLink.java +++ b/examples/v2/rum-operations/DeleteRUMOperationStrongLink.java @@ -10,8 +10,16 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation_strong_link" in the system + String RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_FEATURE_ID = + System.getenv("RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_FEATURE_ID"); + String RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_OPERATION_ID = + System.getenv("RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_OPERATION_ID"); + try { - apiInstance.deleteRUMOperationStrongLink("rum_operation_id", "feature_id"); + apiInstance.deleteRUMOperationStrongLink( + RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_OPERATION_ID, + RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_FEATURE_ID); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#deleteRUMOperationStrongLink"); System.err.println("Status code: " + e.getCode()); diff --git a/examples/v2/rum-operations/GetRUMOperation.java b/examples/v2/rum-operations/GetRUMOperation.java index 71005cc2fb5..8e8ba95a03a 100644 --- a/examples/v2/rum-operations/GetRUMOperation.java +++ b/examples/v2/rum-operations/GetRUMOperation.java @@ -11,8 +11,11 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation" in the system + String RUM_OPERATION_DATA_ID = System.getenv("RUM_OPERATION_DATA_ID"); + try { - RUMOperationResponse result = apiInstance.getRUMOperation("rum_operation_id"); + RUMOperationResponse result = apiInstance.getRUMOperation(RUM_OPERATION_DATA_ID); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#getRUMOperation"); diff --git a/examples/v2/rum-operations/GetRUMOperationByName.java b/examples/v2/rum-operations/GetRUMOperationByName.java index cb5187de421..832c69a1734 100644 --- a/examples/v2/rum-operations/GetRUMOperationByName.java +++ b/examples/v2/rum-operations/GetRUMOperationByName.java @@ -11,8 +11,12 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation" in the system + String RUM_OPERATION_DATA_ATTRIBUTES_NAME = System.getenv("RUM_OPERATION_DATA_ATTRIBUTES_NAME"); + try { - RUMOperationResponse result = apiInstance.getRUMOperationByName("name"); + RUMOperationResponse result = + apiInstance.getRUMOperationByName(RUM_OPERATION_DATA_ATTRIBUTES_NAME); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#getRUMOperationByName"); diff --git a/examples/v2/rum-operations/ListRUMOperationStrongLinks.java b/examples/v2/rum-operations/ListRUMOperationStrongLinks.java index 643bd91f6da..0c6e1cb5606 100644 --- a/examples/v2/rum-operations/ListRUMOperationStrongLinks.java +++ b/examples/v2/rum-operations/ListRUMOperationStrongLinks.java @@ -3,6 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.RumOperationsApi; +import com.datadog.api.client.v2.api.RumOperationsApi.ListRUMOperationStrongLinksOptionalParameters; import com.datadog.api.client.v2.model.RUMOperationStrongLinksListResponse; public class Example { @@ -11,8 +12,14 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation" in the system + String RUM_OPERATION_DATA_ID = System.getenv("RUM_OPERATION_DATA_ID"); + try { - RUMOperationStrongLinksListResponse result = apiInstance.listRUMOperationStrongLinks(); + RUMOperationStrongLinksListResponse result = + apiInstance.listRUMOperationStrongLinks( + new ListRUMOperationStrongLinksOptionalParameters() + .operationId(RUM_OPERATION_DATA_ID)); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#listRUMOperationStrongLinks"); diff --git a/examples/v2/rum-operations/ListRUMOperations.java b/examples/v2/rum-operations/ListRUMOperations.java index e091b9c15b5..bb8a7628dbe 100644 --- a/examples/v2/rum-operations/ListRUMOperations.java +++ b/examples/v2/rum-operations/ListRUMOperations.java @@ -3,6 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.RumOperationsApi; +import com.datadog.api.client.v2.api.RumOperationsApi.ListRUMOperationsOptionalParameters; import com.datadog.api.client.v2.model.RUMOperationsListResponse; public class Example { @@ -11,8 +12,13 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation" in the system + String RUM_OPERATION_DATA_ATTRIBUTES_NAME = System.getenv("RUM_OPERATION_DATA_ATTRIBUTES_NAME"); + try { - RUMOperationsListResponse result = apiInstance.listRUMOperations(); + RUMOperationsListResponse result = + apiInstance.listRUMOperations( + new ListRUMOperationsOptionalParameters().query(RUM_OPERATION_DATA_ATTRIBUTES_NAME)); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#listRUMOperations"); diff --git a/examples/v2/rum-operations/UpdateRUMOperation.java b/examples/v2/rum-operations/UpdateRUMOperation.java index 6af0c707753..ced15d8f9b0 100644 --- a/examples/v2/rum-operations/UpdateRUMOperation.java +++ b/examples/v2/rum-operations/UpdateRUMOperation.java @@ -3,10 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.RumOperationsApi; -import com.datadog.api.client.v2.model.RUMOperationJourneyCompositeRule; -import com.datadog.api.client.v2.model.RUMOperationJourneyCompositeRuleKind; import com.datadog.api.client.v2.model.RUMOperationJourneyNode; -import com.datadog.api.client.v2.model.RUMOperationJourneyPredicate; import com.datadog.api.client.v2.model.RUMOperationJourneyRum; import com.datadog.api.client.v2.model.RUMOperationJourneyStep; import com.datadog.api.client.v2.model.RUMOperationJourneyStepType; @@ -15,8 +12,8 @@ import com.datadog.api.client.v2.model.RUMOperationType; import com.datadog.api.client.v2.model.RUMOperationUpdateRequest; import com.datadog.api.client.v2.model.RUMOperationUpdateRequestData; +import java.util.Arrays; import java.util.Collections; -import java.util.UUID; public class Example { public static void main(String[] args) { @@ -24,46 +21,42 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation" in the system + String RUM_OPERATION_DATA_ATTRIBUTES_NAME = System.getenv("RUM_OPERATION_DATA_ATTRIBUTES_NAME"); + String RUM_OPERATION_DATA_ID = System.getenv("RUM_OPERATION_DATA_ID"); + RUMOperationUpdateRequest body = new RUMOperationUpdateRequest() .data( new RUMOperationUpdateRequestData() + .id(RUM_OPERATION_DATA_ID) + .type(RUMOperationType.OPERATIONS) .attributes( new RUMOperationRequestAttributes() - .applicationId(UUID.fromString("abc12345-1234-5678-abcd-ef1234567890")) - .category(null) - .description(null) - .displayName("Checkout completed") + .name(RUM_OPERATION_DATA_ATTRIBUTES_NAME) + .displayName("BDD operation updated") + .tags(Collections.singletonList("team:rum-backend")) .journeyRum( new RUMOperationJourneyRum() .rumSteps( - Collections.singletonList( + Arrays.asList( new RUMOperationJourneyStep() - .composite( - new RUMOperationJourneyCompositeRule() - .kind( - RUMOperationJourneyCompositeRuleKind - .ALL_OF) - .maxWindowMs(30000L) - .predicates( - Collections.singletonList( - new RUMOperationJourneyPredicate() - .query( - "@type:action" - + " @action.type:click")))) + .type(RUMOperationJourneyStepType.START) .nodes( Collections.singletonList( new RUMOperationJourneyNode() .query( - "@type:action @action.type:click"))) - .type(RUMOperationJourneyStepType.START)))) - .name("checkout_completed") - .tags(Collections.singletonList("team:checkout"))) - .id("abc12345-1234-5678-abcd-ef1234567890") - .type(RUMOperationType.OPERATIONS)); + "@type:action" + + " @action.type:click"))), + new RUMOperationJourneyStep() + .type(RUMOperationJourneyStepType.STOP) + .nodes( + Collections.singletonList( + new RUMOperationJourneyNode() + .query("@type:view")))))))); try { - RUMOperationResponse result = apiInstance.updateRUMOperation("rum_operation_id", body); + RUMOperationResponse result = apiInstance.updateRUMOperation(RUM_OPERATION_DATA_ID, body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#updateRUMOperation"); diff --git a/examples/v2/rum-operations/UpdateRUMOperationStrongLink.java b/examples/v2/rum-operations/UpdateRUMOperationStrongLink.java index e1fac97033b..d0169ffc3cf 100644 --- a/examples/v2/rum-operations/UpdateRUMOperationStrongLink.java +++ b/examples/v2/rum-operations/UpdateRUMOperationStrongLink.java @@ -16,18 +16,27 @@ public static void main(String[] args) { defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); RumOperationsApi apiInstance = new RumOperationsApi(defaultClient); + // there is a valid "rum_operation_strong_link" in the system + String RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_FEATURE_ID = + System.getenv("RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_FEATURE_ID"); + String RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_OPERATION_ID = + System.getenv("RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_OPERATION_ID"); + RUMOperationStrongLinkUpdateRequest body = new RUMOperationStrongLinkUpdateRequest() .data( new RUMOperationStrongLinkUpdateRequestData() + .type(RUMOperationStrongLinkType.STRONG_LINKS) .attributes( new RUMOperationStrongLinkUpdateRequestAttributes() - .status(RUMOperationStrongLinkUpdateStatus.CONFIRMED)) - .type(RUMOperationStrongLinkType.STRONG_LINKS)); + .status(RUMOperationStrongLinkUpdateStatus.REJECTED))); try { RUMOperationStrongLinkResponse result = - apiInstance.updateRUMOperationStrongLink("rum_operation_id", "feature_id", body); + apiInstance.updateRUMOperationStrongLink( + RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_OPERATION_ID, + RUM_OPERATION_STRONG_LINK_DATA_ATTRIBUTES_FEATURE_ID, + body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RumOperationsApi#updateRUMOperationStrongLink"); 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 bdc1607121f..4620fc7e9b1 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 @@ -1457,6 +1457,42 @@ "step": "there is a valid \"teams_ownership_mapping\" in the system", "tag": "Rum Teams Ownership" }, + { + "key": "rum_operation", + "operationId": "CreateRUMOperation", + "parameters": [ + { + "name": "body", + "value": "{\"data\": {\"type\": \"operations\", \"attributes\": {\"name\": \"bdd_{{ unique_lower_alnum }}\", \"tags\": [\"team:rum-backend\"], \"journey_rum\": {\"rum_steps\": [{\"type\": \"start\", \"nodes\": [{\"query\": \"@type:action @action.type:click\"}]}, {\"type\": \"stop\", \"nodes\": [{\"query\": \"@type:view\"}]}]}}}}" + } + ], + "step": "there is a valid \"rum_operation\" in the system", + "tag": "RUM Operations" + }, + { + "key": "rum_operation_b", + "operationId": "CreateRUMOperation", + "parameters": [ + { + "name": "body", + "value": "{\"data\": {\"type\": \"operations\", \"attributes\": {\"name\": \"bdd_b_{{ unique_lower_alnum }}\", \"tags\": [\"team:rum-backend\"], \"journey_rum\": {\"rum_steps\": [{\"type\": \"start\", \"nodes\": [{\"query\": \"@type:action @action.type:click\"}]}, {\"type\": \"stop\", \"nodes\": [{\"query\": \"@type:view\"}]}]}}}}" + } + ], + "step": "there is a valid \"rum_operation_b\" in the system", + "tag": "RUM Operations" + }, + { + "key": "rum_operation_strong_link", + "operationId": "CreateRUMOperationStrongLink", + "parameters": [ + { + "name": "body", + "value": "{\"data\": {\"type\": \"strong_links\", \"attributes\": {\"operation_id\": \"{{ rum_operation.data.id }}\", \"feature_id\": \"bdd-{{ unique_lower_alnum }}\", \"status\": \"DRAFT\", \"tags\": []}}}" + } + ], + "step": "there is a valid \"rum_operation_strong_link\" in the system", + "tag": "RUM Operations" + }, { "key": "create_scorecard_rule", "operationId": "CreateScorecardRule", diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_config.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_config.feature index 3d34e0451e1..07796e3ce82 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/rum_config.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/rum_config.feature @@ -25,12 +25,13 @@ Feature: RUM Config When the request is sent Then the response status is 201 Created - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Get the RUM configuration returns "OK" response Given operation "GetRumConfig" enabled And new "GetRumConfig" request When the request is sent Then the response status is 200 OK + And the response "data.type" is equal to "rum_config" @generated @skip @team:ddoghq/rum-backend Scenario: Update the RUM configuration returns "Bad Request" response @@ -40,10 +41,12 @@ Feature: RUM Config When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Update the RUM configuration returns "OK" response Given operation "UpdateRumConfig" enabled And new "UpdateRumConfig" request - And body with value {"data": {"attributes": {"enforced_application_tags": true}, "type": "rum_config"}} + And body with value {"data": {"attributes": {"enforced_application_tags": false}, "type": "rum_config"}} When the request is sent Then the response status is 200 OK + And the response "data.type" is equal to "rum_config" + And the response "data.attributes.enforced_application_tags" is false diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature index 61633b4cfab..e8a9d603490 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature @@ -10,34 +10,36 @@ Feature: RUM Insights And a valid "appKeyAuth" key in the system And an instance of "RUMInsights" API - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Query aggregated long tasks returns "Bad Request" response Given operation "QueryAggregatedLongTasks" enabled And new "QueryAggregatedLongTasks" request - And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": 1762437564, "sample_size": 20, "to": 1762523964, "view_name": "/account/login(/:type)"}, "type": "aggregated_long_tasks"}} + And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": {{ timestamp('now') }}, "sample_size": 20, "to": {{ timestamp('now') }}, "view_name": "/account/login(/:type)"}, "type": "aggregated_long_tasks"}} When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Query aggregated long tasks returns "Successful response" response Given operation "QueryAggregatedLongTasks" enabled And new "QueryAggregatedLongTasks" request - And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": 1762437564, "sample_size": 20, "to": 1762523964, "view_name": "/account/login(/:type)"}, "type": "aggregated_long_tasks"}} + And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": {{ timestamp('now - 1h') }}, "sample_size": 20, "to": {{ timestamp('now') }}, "view_name": "/account/login(/:type)"}, "type": "aggregated_long_tasks"}} When the request is sent Then the response status is 201 Successful response + And the response "data.attributes.application_id" is equal to "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b" - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Query aggregated waterfall returns "Bad Request" response Given operation "QueryAggregatedWaterfall" enabled And new "QueryAggregatedWaterfall" request - And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": 1762437564, "include_global_appearance": false, "sample_size": 20, "to": 1762523964, "view_name": "/account/login(/:type)"}, "type": "aggregated_waterfall"}} + And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": {{ timestamp('now') }}, "include_global_appearance": false, "sample_size": 20, "to": {{ timestamp('now') }}, "view_name": "/account/login(/:type)"}, "type": "aggregated_waterfall"}} When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Query aggregated waterfall returns "Successful response" response Given operation "QueryAggregatedWaterfall" enabled And new "QueryAggregatedWaterfall" request - And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": 1762437564, "include_global_appearance": false, "sample_size": 20, "to": 1762523964, "view_name": "/account/login(/:type)"}, "type": "aggregated_waterfall"}} + And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "filter": "@session.type:user", "from": {{ timestamp('now - 1h') }}, "include_global_appearance": false, "sample_size": 20, "to": {{ timestamp('now') }}, "view_name": "/account/login(/:type)"}, "type": "aggregated_waterfall"}} When the request is sent Then the response status is 201 Successful response + And the response "data.attributes.application_id" is equal to "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b" diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_operations.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_operations.feature index f2c7069e8ef..74235ac8cc2 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/rum_operations.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/rum_operations.feature @@ -11,82 +11,96 @@ Feature: RUM Operations And a valid "appKeyAuth" key in the system And an instance of "RUMOperations" API - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Create a RUM operation link returns "Bad Request" response Given new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + And body with value {"data": {"type": "strong_links", "attributes": {"feature_id": "bdd-{{ unique_lower_alnum }}"}}} When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Create a RUM operation link returns "Conflict. A link between this operation and journey already exists." response - Given new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + Given there is a valid "rum_operation" in the system + And there is a valid "rum_operation_strong_link" in the system + And new "CreateRUMOperationStrongLink" request + And body with value {"data": {"type": "strong_links", "attributes": {"operation_id": "{{ rum_operation_strong_link.data.attributes.operation_id }}", "feature_id": "{{ rum_operation_strong_link.data.attributes.feature_id }}", "status": "DRAFT", "tags": []}}} When the request is sent Then the response status is 409 Conflict. A link between this operation and journey already exists. - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Create a RUM operation link returns "Created" response - Given new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + Given there is a valid "rum_operation" in the system + And new "CreateRUMOperationStrongLink" request + And body with value {"data": {"type": "strong_links", "attributes": {"operation_id": "{{ rum_operation.data.id }}", "feature_id": "bdd-{{ unique_lower_alnum }}", "status": "DRAFT", "tags": ["team:rum-backend"]}}} When the request is sent Then the response status is 201 Created + And the response "data.type" is equal to "strong_links" + And the response "data.attributes.operation_id" is equal to "{{ rum_operation.data.id }}" + And the response "data.attributes.feature_id" is equal to "bdd-{{ unique_lower_alnum }}" + And the response "data.attributes.status" is equal to "DRAFT" - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Create a RUM operation link returns "Not Found. The referenced `operation_id` does not exist." response Given new "CreateRUMOperationStrongLink" request - And body with value {"data": {"attributes": {"description": null, "feature_id": "journey-123", "operation_id": "abc12345-1234-5678-abcd-ef1234567890", "status": "CONFIRMED", "tags": []}, "type": "strong_links"}} + And body with value {"data": {"type": "strong_links", "attributes": {"operation_id": "00000000-0000-0000-0000-000000000000", "feature_id": "bdd-{{ unique_lower_alnum }}", "status": "DRAFT", "tags": []}}} When the request is sent Then the response status is 404 Not Found. The referenced `operation_id` does not exist. - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Create a RUM operation returns "Bad Request" response Given new "CreateRUMOperation" request - And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "type": "operations"}} + And body with value {"data": {"type": "operations", "attributes": {"name": "bdd_{{ unique_lower_alnum }}", "display_name": "BDD operation", "tags": ["team:rum-backend"], "journey_rum": {"rum_steps": [{"type": "start", "composite": {"kind": "all_of", "predicates": [{"query": "@type:action"}]}}]}}}} When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Create a RUM operation returns "Conflict. An operation with this name already exists." response - Given new "CreateRUMOperation" request - And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "type": "operations"}} + Given there is a valid "rum_operation" in the system + And new "CreateRUMOperation" request + And body with value {"data": {"type": "operations", "attributes": {"name": "{{ rum_operation.data.attributes.name }}", "display_name": "BDD operation", "tags": ["team:rum-backend"], "journey_rum": {"rum_steps": [{"type": "start", "nodes": [{"query": "@type:action @action.type:click"}]}, {"type": "stop", "nodes": [{"query": "@type:view"}]}]}}}} When the request is sent Then the response status is 409 Conflict. An operation with this name already exists. - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Create a RUM operation returns "OK" response Given new "CreateRUMOperation" request - And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "type": "operations"}} + And body with value {"data": {"type": "operations", "attributes": {"name": "bdd_{{ unique_lower_alnum }}", "display_name": "BDD operation", "tags": ["team:rum-backend"], "journey_rum": {"rum_steps": [{"type": "start", "nodes": [{"query": "@type:action @action.type:click"}]}, {"type": "stop", "nodes": [{"query": "@type:view"}]}]}}}} When the request is sent Then the response status is 200 OK + And the response "data.type" is equal to "operations" + And the response "data.attributes.name" is equal to "bdd_{{ unique_lower_alnum }}" + And the response "data.attributes.display_name" is equal to "BDD operation" - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Delete a RUM operation link returns "No Content" response - Given new "DeleteRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" + Given there is a valid "rum_operation" in the system + And there is a valid "rum_operation_strong_link" in the system + And new "DeleteRUMOperationStrongLink" request + And request contains "rum_operation_id" parameter from "rum_operation_strong_link.data.attributes.operation_id" + And request contains "feature_id" parameter from "rum_operation_strong_link.data.attributes.feature_id" When the request is sent Then the response status is 204 No Content - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Delete a RUM operation link returns "Not Found" response Given new "DeleteRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" + And request contains "rum_operation_id" parameter with value "00000000-0000-0000-0000-000000000000" + And request contains "feature_id" parameter with value "bdd-{{ unique_lower_alnum }}" When the request is sent Then the response status is 404 Not Found - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Delete a RUM operation returns "No Content" response - Given new "DeleteRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" + Given there is a valid "rum_operation" in the system + And new "DeleteRUMOperation" request + And request contains "rum_operation_id" parameter from "rum_operation.data.id" When the request is sent Then the response status is 204 No Content - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Delete a RUM operation returns "Not Found" response Given new "DeleteRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" + And request contains "rum_operation_id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent Then the response status is 404 Not Found @@ -97,57 +111,70 @@ Feature: RUM Operations When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Get a RUM operation by name returns "Not Found" response Given new "GetRUMOperationByName" request - And request contains "name" parameter from "REPLACE.ME" + And request contains "name" parameter with value "bdd_missing_{{ unique_lower_alnum }}" When the request is sent Then the response status is 404 Not Found - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Get a RUM operation by name returns "OK" response - Given new "GetRUMOperationByName" request - And request contains "name" parameter from "REPLACE.ME" + Given there is a valid "rum_operation" in the system + And new "GetRUMOperationByName" request + And request contains "name" parameter from "rum_operation.data.attributes.name" When the request is sent Then the response status is 200 OK + And the response "data.id" is equal to "{{ rum_operation.data.id }}" - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Get a RUM operation returns "Not Found" response Given new "GetRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" + And request contains "rum_operation_id" parameter with value "00000000-0000-0000-0000-000000000000" When the request is sent Then the response status is 404 Not Found - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Get a RUM operation returns "OK" response - Given new "GetRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" + Given there is a valid "rum_operation" in the system + And new "GetRUMOperation" request + And request contains "rum_operation_id" parameter from "rum_operation.data.id" When the request is sent Then the response status is 200 OK + And the response "data.id" is equal to "{{ rum_operation.data.id }}" + And the response "data.attributes.name" is equal to "{{ rum_operation.data.attributes.name }}" - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: List RUM operation links returns "Bad Request" response Given new "ListRUMOperationStrongLinks" request When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: List RUM operation links returns "OK" response - Given new "ListRUMOperationStrongLinks" request + Given there is a valid "rum_operation" in the system + And there is a valid "rum_operation_strong_link" in the system + And new "ListRUMOperationStrongLinks" request + And request contains "operation_id" parameter from "rum_operation.data.id" When the request is sent Then the response status is 200 OK + And the response "data[0].attributes.feature_id" is equal to "{{ rum_operation_strong_link.data.attributes.feature_id }}" - @generated @skip @team:ddoghq/rum-backend + @skip-go @skip-java @skip-python @team:ddoghq/rum-backend Scenario: Search RUM operations returns "Bad Request" response Given new "ListRUMOperations" request + And request contains "application_id" parameter with value "invalid-uuid" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Search RUM operations returns "OK" response - Given new "ListRUMOperations" request + Given there is a valid "rum_operation" in the system + And new "ListRUMOperations" request + And request contains "query" parameter from "rum_operation.data.attributes.name" When the request is sent Then the response status is 200 OK + And the response "data[0].id" is equal to "{{ rum_operation.data.id }}" @generated @skip @team:ddoghq/rum-backend Scenario: Update a RUM operation link returns "Bad Request" response @@ -158,52 +185,60 @@ Feature: RUM Operations When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Update a RUM operation link returns "Not Found" response Given new "UpdateRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} + And request contains "rum_operation_id" parameter with value "00000000-0000-0000-0000-000000000000" + And request contains "feature_id" parameter with value "bdd-{{ unique_lower_alnum }}" + And body with value {"data": {"type": "strong_links", "attributes": {"status": "REJECTED"}}} When the request is sent Then the response status is 404 Not Found - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Update a RUM operation link returns "OK" response - Given new "UpdateRUMOperationStrongLink" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And request contains "feature_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"status": "CONFIRMED"}, "type": "strong_links"}} + Given there is a valid "rum_operation" in the system + And there is a valid "rum_operation_strong_link" in the system + And new "UpdateRUMOperationStrongLink" request + And request contains "rum_operation_id" parameter from "rum_operation_strong_link.data.attributes.operation_id" + And request contains "feature_id" parameter from "rum_operation_strong_link.data.attributes.feature_id" + And body with value {"data": {"type": "strong_links", "attributes": {"status": "REJECTED"}}} When the request is sent Then the response status is 200 OK + And the response "data.attributes.status" is equal to "REJECTED" - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Update a RUM operation returns "Bad Request" response - Given new "UpdateRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "operations"}} + Given there is a valid "rum_operation" in the system + And new "UpdateRUMOperation" request + And request contains "rum_operation_id" parameter from "rum_operation.data.id" + And body with value {"data": {"id": "{{ rum_operation.data.id }}", "type": "operations", "attributes": {"name": "{{ rum_operation.data.attributes.name }}", "display_name": "BDD operation", "tags": ["team:rum-backend"], "journey_rum": {"rum_steps": [{"type": "start", "composite": {"kind": "all_of", "predicates": [{"query": "@type:action"}]}}]}}}} When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Update a RUM operation returns "Conflict. An operation with this name already exists." response - Given new "UpdateRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "operations"}} + Given there is a valid "rum_operation" in the system + And there is a valid "rum_operation_b" in the system + And new "UpdateRUMOperation" request + And request contains "rum_operation_id" parameter from "rum_operation.data.id" + And body with value {"data": {"id": "{{ rum_operation.data.id }}", "type": "operations", "attributes": {"name": "{{ rum_operation_b.data.attributes.name }}", "display_name": "BDD operation", "tags": ["team:rum-backend"], "journey_rum": {"rum_steps": [{"type": "start", "nodes": [{"query": "@type:action @action.type:click"}]}, {"type": "stop", "nodes": [{"query": "@type:view"}]}]}}}} When the request is sent Then the response status is 409 Conflict. An operation with this name already exists. - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Update a RUM operation returns "Not Found" response Given new "UpdateRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "operations"}} + And request contains "rum_operation_id" parameter with value "00000000-0000-0000-0000-000000000000" + And body with value {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "operations", "attributes": {"name": "bdd_{{ unique_lower_alnum }}", "display_name": "BDD operation", "tags": ["team:rum-backend"], "journey_rum": {"rum_steps": [{"type": "start", "nodes": [{"query": "@type:action @action.type:click"}]}, {"type": "stop", "nodes": [{"query": "@type:view"}]}]}}}} When the request is sent Then the response status is 404 Not Found - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Update a RUM operation returns "OK" response - Given new "UpdateRUMOperation" request - And request contains "rum_operation_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"application_id": "abc12345-1234-5678-abcd-ef1234567890", "category": null, "description": null, "display_name": "Checkout completed", "feature_ids": [], "journey_rum": {"rum_steps": [{"composite": {"kind": "all_of", "max_window_ms": 30000, "predicates": [{"query": "@type:action @action.type:click"}]}, "nodes": [{"query": "@type:action @action.type:click"}], "type": "start"}]}, "name": "checkout_completed", "tags": ["team:checkout"]}, "id": "abc12345-1234-5678-abcd-ef1234567890", "type": "operations"}} + Given there is a valid "rum_operation" in the system + And new "UpdateRUMOperation" request + And request contains "rum_operation_id" parameter from "rum_operation.data.id" + And body with value {"data": {"id": "{{ rum_operation.data.id }}", "type": "operations", "attributes": {"name": "{{ rum_operation.data.attributes.name }}", "display_name": "BDD operation updated", "tags": ["team:rum-backend"], "journey_rum": {"rum_steps": [{"type": "start", "nodes": [{"query": "@type:action @action.type:click"}]}, {"type": "stop", "nodes": [{"query": "@type:view"}]}]}}}} When the request is sent Then the response status is 200 OK + And the response "data.attributes.display_name" is equal to "BDD operation updated" diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index 294d6dfb418..cfe9a62ad51 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -2553,12 +2553,30 @@ "CreateRUMOperation": { "tag": "RUM Operations", "undo": { + "operationId": "DeleteRUMOperation", + "parameters": [ + { + "name": "rum_operation_id", + "source": "data.id" + } + ], "type": "unsafe" } }, "CreateRUMOperationStrongLink": { "tag": "RUM Operations", "undo": { + "operationId": "DeleteRUMOperationStrongLink", + "parameters": [ + { + "name": "rum_operation_id", + "source": "data.attributes.operation_id" + }, + { + "name": "feature_id", + "source": "data.attributes.feature_id" + } + ], "type": "unsafe" } }, diff --git a/src/test/resources/generated-test/test-runner-data/manifest.json b/src/test/resources/generated-test/test-runner-data/manifest.json index 2a7e931a3b2..56da9e7ef52 100644 --- a/src/test/resources/generated-test/test-runner-data/manifest.json +++ b/src/test/resources/generated-test/test-runner-data/manifest.json @@ -10542,6 +10542,48 @@ "scenario": "Update a RUM application with Product Scales returns \"OK\" response", "version": "v2" }, + { + "feature": "RUM Config", + "feature_file": "../../com/datadog/api/client/v2/api/rum_config.feature", + "file": "v2/rum-config/get-the-rum-configuration-returns-ok-response.json", + "scenario": "Get the RUM configuration returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Config", + "feature_file": "../../com/datadog/api/client/v2/api/rum_config.feature", + "file": "v2/rum-config/update-the-rum-configuration-returns-ok-response.json", + "scenario": "Update the RUM configuration returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Insights", + "feature_file": "../../com/datadog/api/client/v2/api/rum_insights.feature", + "file": "v2/rum-insights/query-aggregated-long-tasks-returns-bad-request-response.json", + "scenario": "Query aggregated long tasks returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "RUM Insights", + "feature_file": "../../com/datadog/api/client/v2/api/rum_insights.feature", + "file": "v2/rum-insights/query-aggregated-long-tasks-returns-successful-response-response.json", + "scenario": "Query aggregated long tasks returns \"Successful response\" response", + "version": "v2" + }, + { + "feature": "RUM Insights", + "feature_file": "../../com/datadog/api/client/v2/api/rum_insights.feature", + "file": "v2/rum-insights/query-aggregated-waterfall-returns-bad-request-response.json", + "scenario": "Query aggregated waterfall returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "RUM Insights", + "feature_file": "../../com/datadog/api/client/v2/api/rum_insights.feature", + "file": "v2/rum-insights/query-aggregated-waterfall-returns-successful-response-response.json", + "scenario": "Query aggregated waterfall returns \"Successful response\" response", + "version": "v2" + }, { "feature": "RUM Managed Archives", "feature_file": "../../com/datadog/api/client/v2/api/rum_managed_archives.feature", @@ -10668,6 +10710,181 @@ "scenario": "Update a RUM-based metric returns \"OK\" response", "version": "v2" }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/create-a-rum-operation-link-returns-bad-request-response.json", + "scenario": "Create a RUM operation link returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/create-a-rum-operation-link-returns-conflict-a-link-between-this-operation-and-journey-already-exists-response.json", + "scenario": "Create a RUM operation link returns \"Conflict. A link between this operation and journey already exists.\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/create-a-rum-operation-link-returns-created-response.json", + "scenario": "Create a RUM operation link returns \"Created\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/create-a-rum-operation-link-returns-not-found-the-referenced-operation-id-does-not-exist-response.json", + "scenario": "Create a RUM operation link returns \"Not Found. The referenced `operation_id` does not exist.\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/create-a-rum-operation-returns-bad-request-response.json", + "scenario": "Create a RUM operation returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/create-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json", + "scenario": "Create a RUM operation returns \"Conflict. An operation with this name already exists.\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/create-a-rum-operation-returns-ok-response.json", + "scenario": "Create a RUM operation returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/delete-a-rum-operation-link-returns-no-content-response.json", + "scenario": "Delete a RUM operation link returns \"No Content\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/delete-a-rum-operation-link-returns-not-found-response.json", + "scenario": "Delete a RUM operation link returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/delete-a-rum-operation-returns-no-content-response.json", + "scenario": "Delete a RUM operation returns \"No Content\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/delete-a-rum-operation-returns-not-found-response.json", + "scenario": "Delete a RUM operation returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/get-a-rum-operation-by-name-returns-not-found-response.json", + "scenario": "Get a RUM operation by name returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/get-a-rum-operation-by-name-returns-ok-response.json", + "scenario": "Get a RUM operation by name returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/get-a-rum-operation-returns-not-found-response.json", + "scenario": "Get a RUM operation returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/get-a-rum-operation-returns-ok-response.json", + "scenario": "Get a RUM operation returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/list-rum-operation-links-returns-bad-request-response.json", + "scenario": "List RUM operation links returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/list-rum-operation-links-returns-ok-response.json", + "scenario": "List RUM operation links returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/search-rum-operations-returns-bad-request-response.json", + "scenario": "Search RUM operations returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/search-rum-operations-returns-ok-response.json", + "scenario": "Search RUM operations returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/update-a-rum-operation-link-returns-not-found-response.json", + "scenario": "Update a RUM operation link returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/update-a-rum-operation-link-returns-ok-response.json", + "scenario": "Update a RUM operation link returns \"OK\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/update-a-rum-operation-returns-bad-request-response.json", + "scenario": "Update a RUM operation returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/update-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json", + "scenario": "Update a RUM operation returns \"Conflict. An operation with this name already exists.\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/update-a-rum-operation-returns-not-found-response.json", + "scenario": "Update a RUM operation returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "RUM Operations", + "feature_file": "../../com/datadog/api/client/v2/api/rum_operations.feature", + "file": "v2/rum-operations/update-a-rum-operation-returns-ok-response.json", + "scenario": "Update a RUM operation returns \"OK\" response", + "version": "v2" + }, { "feature": "RUM Recovery", "feature_file": "../../com/datadog/api/client/v2/api/rum_recovery.feature", diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-config/get-the-rum-configuration-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-config/get-the-rum-configuration-returns-ok-response.json new file mode 100644 index 00000000000..49dcbbe24e8 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-config/get-the-rum-configuration-returns-ok-response.json @@ -0,0 +1,18 @@ +{ + "api": "RUMConfig", + "expected_status": 200, + "feature": "RUM Config", + "id": "v2/RUM Config/Get the RUM configuration returns \"OK\" response", + "operation_id": "GetRumConfig", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config" + }, + "scenario": "Get the RUM configuration returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-config/update-the-rum-configuration-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-config/update-the-rum-configuration-returns-ok-response.json new file mode 100644 index 00000000000..35a9d03648b --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-config/update-the-rum-configuration-returns-ok-response.json @@ -0,0 +1,33 @@ +{ + "api": "RUMConfig", + "expected_status": 200, + "feature": "RUM Config", + "id": "v2/RUM Config/Update the RUM configuration returns \"OK\" response", + "operation_id": "UpdateRumConfig", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RumConfigUpdateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "enforced_application_tags": false + }, + "type": "rum_config" + } + } + }, + "content_type": "application/json", + "method": "PATCH", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config" + }, + "scenario": "Update the RUM configuration returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-bad-request-response.json new file mode 100644 index 00000000000..dbc59f3f71d --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-bad-request-response.json @@ -0,0 +1,28 @@ +{ + "api": "RUMInsights", + "expected_status": 400, + "feature": "RUM Insights", + "id": "v2/RUM Insights/Query aggregated long tasks returns \"Bad Request\" response", + "operation_id": "QueryAggregatedLongTasks", + "request": { + "body": { + "schema": { + "format": null, + "ref": "AggregatedLongTasksRequest", + "type": "object" + }, + "source": "inline", + "value": { + "$openapi_transformer_template": "{\"data\": {\"attributes\": {\"application_id\": \"ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b\", \"criteria\": {\"max\": 5.0, \"metric\": \"largest_contentful_paint\", \"min\": 2.5}, \"filter\": \"@session.type:user\", \"from\": {{ timestamp('now') }}, \"sample_size\": 20, \"to\": {{ timestamp('now') }}, \"view_name\": \"/account/login(/:type)\"}, \"type\": \"aggregated_long_tasks\"}}" + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/query/insight/aggregated_long_tasks" + }, + "scenario": "Query aggregated long tasks returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-successful-response-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-successful-response-response.json new file mode 100644 index 00000000000..92c4df4c1be --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-long-tasks-returns-successful-response-response.json @@ -0,0 +1,28 @@ +{ + "api": "RUMInsights", + "expected_status": 201, + "feature": "RUM Insights", + "id": "v2/RUM Insights/Query aggregated long tasks returns \"Successful response\" response", + "operation_id": "QueryAggregatedLongTasks", + "request": { + "body": { + "schema": { + "format": null, + "ref": "AggregatedLongTasksRequest", + "type": "object" + }, + "source": "inline", + "value": { + "$openapi_transformer_template": "{\"data\": {\"attributes\": {\"application_id\": \"ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b\", \"criteria\": {\"max\": 5.0, \"metric\": \"largest_contentful_paint\", \"min\": 2.5}, \"filter\": \"@session.type:user\", \"from\": {{ timestamp('now - 1h') }}, \"sample_size\": 20, \"to\": {{ timestamp('now') }}, \"view_name\": \"/account/login(/:type)\"}, \"type\": \"aggregated_long_tasks\"}}" + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/query/insight/aggregated_long_tasks" + }, + "scenario": "Query aggregated long tasks returns \"Successful response\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-bad-request-response.json new file mode 100644 index 00000000000..433febfca12 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-bad-request-response.json @@ -0,0 +1,28 @@ +{ + "api": "RUMInsights", + "expected_status": 400, + "feature": "RUM Insights", + "id": "v2/RUM Insights/Query aggregated waterfall returns \"Bad Request\" response", + "operation_id": "QueryAggregatedWaterfall", + "request": { + "body": { + "schema": { + "format": null, + "ref": "AggregatedWaterfallRequest", + "type": "object" + }, + "source": "inline", + "value": { + "$openapi_transformer_template": "{\"data\": {\"attributes\": {\"application_id\": \"ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b\", \"criteria\": {\"max\": 5.0, \"metric\": \"largest_contentful_paint\", \"min\": 2.5}, \"filter\": \"@session.type:user\", \"from\": {{ timestamp('now') }}, \"include_global_appearance\": false, \"sample_size\": 20, \"to\": {{ timestamp('now') }}, \"view_name\": \"/account/login(/:type)\"}, \"type\": \"aggregated_waterfall\"}}" + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/query/insight/aggregated_waterfall" + }, + "scenario": "Query aggregated waterfall returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-successful-response-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-successful-response-response.json new file mode 100644 index 00000000000..f648b28ee41 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-insights/query-aggregated-waterfall-returns-successful-response-response.json @@ -0,0 +1,28 @@ +{ + "api": "RUMInsights", + "expected_status": 201, + "feature": "RUM Insights", + "id": "v2/RUM Insights/Query aggregated waterfall returns \"Successful response\" response", + "operation_id": "QueryAggregatedWaterfall", + "request": { + "body": { + "schema": { + "format": null, + "ref": "AggregatedWaterfallRequest", + "type": "object" + }, + "source": "inline", + "value": { + "$openapi_transformer_template": "{\"data\": {\"attributes\": {\"application_id\": \"ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b\", \"criteria\": {\"max\": 5.0, \"metric\": \"largest_contentful_paint\", \"min\": 2.5}, \"filter\": \"@session.type:user\", \"from\": {{ timestamp('now - 1h') }}, \"include_global_appearance\": false, \"sample_size\": 20, \"to\": {{ timestamp('now') }}, \"view_name\": \"/account/login(/:type)\"}, \"type\": \"aggregated_waterfall\"}}" + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/query/insight/aggregated_waterfall" + }, + "scenario": "Query aggregated waterfall returns \"Successful response\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-bad-request-response.json new file mode 100644 index 00000000000..5ee1475670e --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-bad-request-response.json @@ -0,0 +1,33 @@ +{ + "api": "RUMOperations", + "expected_status": 400, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Create a RUM operation link returns \"Bad Request\" response", + "operation_id": "CreateRUMOperationStrongLink", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationStrongLinkCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "feature_id": "bdd-{{ unique_lower_alnum }}" + }, + "type": "strong_links" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations/strong_links" + }, + "scenario": "Create a RUM operation link returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-conflict-a-link-between-this-operation-and-journey-already-exists-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-conflict-a-link-between-this-operation-and-journey-already-exists-response.json new file mode 100644 index 00000000000..1828f250611 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-conflict-a-link-between-this-operation-and-journey-already-exists-response.json @@ -0,0 +1,36 @@ +{ + "api": "RUMOperations", + "expected_status": 409, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Create a RUM operation link returns \"Conflict. A link between this operation and journey already exists.\" response", + "operation_id": "CreateRUMOperationStrongLink", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationStrongLinkCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "feature_id": "{{ rum_operation_strong_link.data.attributes.feature_id }}", + "operation_id": "{{ rum_operation_strong_link.data.attributes.operation_id }}", + "status": "DRAFT", + "tags": [] + }, + "type": "strong_links" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations/strong_links" + }, + "scenario": "Create a RUM operation link returns \"Conflict. A link between this operation and journey already exists.\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-created-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-created-response.json new file mode 100644 index 00000000000..c3c60dca01e --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-created-response.json @@ -0,0 +1,38 @@ +{ + "api": "RUMOperations", + "expected_status": 201, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Create a RUM operation link returns \"Created\" response", + "operation_id": "CreateRUMOperationStrongLink", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationStrongLinkCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "feature_id": "bdd-{{ unique_lower_alnum }}", + "operation_id": "{{ rum_operation.data.id }}", + "status": "DRAFT", + "tags": [ + "team:rum-backend" + ] + }, + "type": "strong_links" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations/strong_links" + }, + "scenario": "Create a RUM operation link returns \"Created\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-not-found-the-referenced-operation-id-does-not-exist-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-not-found-the-referenced-operation-id-does-not-exist-response.json new file mode 100644 index 00000000000..11ce9b58214 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-link-returns-not-found-the-referenced-operation-id-does-not-exist-response.json @@ -0,0 +1,36 @@ +{ + "api": "RUMOperations", + "expected_status": 404, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Create a RUM operation link returns \"Not Found. The referenced `operation_id` does not exist.\" response", + "operation_id": "CreateRUMOperationStrongLink", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationStrongLinkCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "feature_id": "bdd-{{ unique_lower_alnum }}", + "operation_id": "00000000-0000-0000-0000-000000000000", + "status": "DRAFT", + "tags": [] + }, + "type": "strong_links" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations/strong_links" + }, + "scenario": "Create a RUM operation link returns \"Not Found. The referenced `operation_id` does not exist.\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-bad-request-response.json new file mode 100644 index 00000000000..585c55f3977 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-bad-request-response.json @@ -0,0 +1,52 @@ +{ + "api": "RUMOperations", + "expected_status": 400, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Create a RUM operation returns \"Bad Request\" response", + "operation_id": "CreateRUMOperation", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "display_name": "BDD operation", + "journey_rum": { + "rum_steps": [ + { + "composite": { + "kind": "all_of", + "predicates": [ + { + "query": "@type:action" + } + ] + }, + "type": "start" + } + ] + }, + "name": "bdd_{{ unique_lower_alnum }}", + "tags": [ + "team:rum-backend" + ] + }, + "type": "operations" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations" + }, + "scenario": "Create a RUM operation returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json new file mode 100644 index 00000000000..7a8312dcfc3 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json @@ -0,0 +1,57 @@ +{ + "api": "RUMOperations", + "expected_status": 409, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Create a RUM operation returns \"Conflict. An operation with this name already exists.\" response", + "operation_id": "CreateRUMOperation", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "display_name": "BDD operation", + "journey_rum": { + "rum_steps": [ + { + "nodes": [ + { + "query": "@type:action @action.type:click" + } + ], + "type": "start" + }, + { + "nodes": [ + { + "query": "@type:view" + } + ], + "type": "stop" + } + ] + }, + "name": "{{ rum_operation.data.attributes.name }}", + "tags": [ + "team:rum-backend" + ] + }, + "type": "operations" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations" + }, + "scenario": "Create a RUM operation returns \"Conflict. An operation with this name already exists.\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-ok-response.json new file mode 100644 index 00000000000..90738fe1c54 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/create-a-rum-operation-returns-ok-response.json @@ -0,0 +1,57 @@ +{ + "api": "RUMOperations", + "expected_status": 200, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Create a RUM operation returns \"OK\" response", + "operation_id": "CreateRUMOperation", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "display_name": "BDD operation", + "journey_rum": { + "rum_steps": [ + { + "nodes": [ + { + "query": "@type:action @action.type:click" + } + ], + "type": "start" + }, + { + "nodes": [ + { + "query": "@type:view" + } + ], + "type": "stop" + } + ] + }, + "name": "bdd_{{ unique_lower_alnum }}", + "tags": [ + "team:rum-backend" + ] + }, + "type": "operations" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations" + }, + "scenario": "Create a RUM operation returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-no-content-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-no-content-response.json new file mode 100644 index 00000000000..33383091563 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-no-content-response.json @@ -0,0 +1,51 @@ +{ + "api": "RUMOperations", + "expected_status": 204, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Delete a RUM operation link returns \"No Content\" response", + "operation_id": "DeleteRUMOperationStrongLink", + "request": { + "body": null, + "content_type": null, + "method": "DELETE", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation_strong_link.data.attributes.operation_id", + "type": "fixture" + }, + "style": null + }, + { + "explode": null, + "in": "path", + "name": "feature_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation_strong_link.data.attributes.feature_id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/strong_links/{rum_operation_id}/{feature_id}" + }, + "scenario": "Delete a RUM operation link returns \"No Content\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-not-found-response.json new file mode 100644 index 00000000000..f5c842d023e --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-link-returns-not-found-response.json @@ -0,0 +1,51 @@ +{ + "api": "RUMOperations", + "expected_status": 404, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Delete a RUM operation link returns \"Not Found\" response", + "operation_id": "DeleteRUMOperationStrongLink", + "request": { + "body": null, + "content_type": null, + "method": "DELETE", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "00000000-0000-0000-0000-000000000000" + }, + "style": null + }, + { + "explode": null, + "in": "path", + "name": "feature_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "bdd-{{ unique_lower_alnum }}" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/strong_links/{rum_operation_id}/{feature_id}" + }, + "scenario": "Delete a RUM operation link returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-no-content-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-no-content-response.json new file mode 100644 index 00000000000..236a6062f3b --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-no-content-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 204, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Delete a RUM operation returns \"No Content\" response", + "operation_id": "DeleteRUMOperation", + "request": { + "body": null, + "content_type": null, + "method": "DELETE", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Delete a RUM operation returns \"No Content\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-not-found-response.json new file mode 100644 index 00000000000..95b7677c599 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/delete-a-rum-operation-returns-not-found-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 404, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Delete a RUM operation returns \"Not Found\" response", + "operation_id": "DeleteRUMOperation", + "request": { + "body": null, + "content_type": null, + "method": "DELETE", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "00000000-0000-0000-0000-000000000000" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Delete a RUM operation returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-not-found-response.json new file mode 100644 index 00000000000..f7b271bd56e --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-not-found-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 404, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Get a RUM operation by name returns \"Not Found\" response", + "operation_id": "GetRUMOperationByName", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "name", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "bdd_missing_{{ unique_lower_alnum }}" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/by-name/{name}" + }, + "scenario": "Get a RUM operation by name returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-ok-response.json new file mode 100644 index 00000000000..4e2f8c6feed --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-by-name-returns-ok-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 200, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Get a RUM operation by name returns \"OK\" response", + "operation_id": "GetRUMOperationByName", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "name", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.attributes.name", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/by-name/{name}" + }, + "scenario": "Get a RUM operation by name returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-not-found-response.json new file mode 100644 index 00000000000..0b76580fb9f --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-not-found-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 404, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Get a RUM operation returns \"Not Found\" response", + "operation_id": "GetRUMOperation", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "00000000-0000-0000-0000-000000000000" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Get a RUM operation returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-ok-response.json new file mode 100644 index 00000000000..865b234b8ff --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/get-a-rum-operation-returns-ok-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 200, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Get a RUM operation returns \"OK\" response", + "operation_id": "GetRUMOperation", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Get a RUM operation returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-bad-request-response.json new file mode 100644 index 00000000000..b620aa2907b --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-bad-request-response.json @@ -0,0 +1,18 @@ +{ + "api": "RUMOperations", + "expected_status": 400, + "feature": "RUM Operations", + "id": "v2/RUM Operations/List RUM operation links returns \"Bad Request\" response", + "operation_id": "ListRUMOperationStrongLinks", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/operations/strong_links" + }, + "scenario": "List RUM operation links returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-ok-response.json new file mode 100644 index 00000000000..8cb759c8079 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/list-rum-operation-links-returns-ok-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 200, + "feature": "RUM Operations", + "id": "v2/RUM Operations/List RUM operation links returns \"OK\" response", + "operation_id": "ListRUMOperationStrongLinks", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "query", + "name": "operation_id", + "required": false, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/strong_links" + }, + "scenario": "List RUM operation links returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-bad-request-response.json new file mode 100644 index 00000000000..4383052d9bf --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-bad-request-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 400, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Search RUM operations returns \"Bad Request\" response", + "operation_id": "ListRUMOperations", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "query", + "name": "application_id", + "required": false, + "schema": { + "format": "uuid", + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "invalid-uuid" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/search" + }, + "scenario": "Search RUM operations returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-ok-response.json new file mode 100644 index 00000000000..c859148960c --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/search-rum-operations-returns-ok-response.json @@ -0,0 +1,35 @@ +{ + "api": "RUMOperations", + "expected_status": 200, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Search RUM operations returns \"OK\" response", + "operation_id": "ListRUMOperations", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "query", + "name": "query", + "required": false, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.attributes.name", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/search" + }, + "scenario": "Search RUM operations returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-not-found-response.json new file mode 100644 index 00000000000..b41562e4699 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-not-found-response.json @@ -0,0 +1,66 @@ +{ + "api": "RUMOperations", + "expected_status": 404, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Update a RUM operation link returns \"Not Found\" response", + "operation_id": "UpdateRUMOperationStrongLink", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationStrongLinkUpdateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "status": "REJECTED" + }, + "type": "strong_links" + } + } + }, + "content_type": "application/json", + "method": "PUT", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "00000000-0000-0000-0000-000000000000" + }, + "style": null + }, + { + "explode": null, + "in": "path", + "name": "feature_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "bdd-{{ unique_lower_alnum }}" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/strong_links/{rum_operation_id}/{feature_id}" + }, + "scenario": "Update a RUM operation link returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-ok-response.json new file mode 100644 index 00000000000..7bcc60b33e0 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-link-returns-ok-response.json @@ -0,0 +1,66 @@ +{ + "api": "RUMOperations", + "expected_status": 200, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Update a RUM operation link returns \"OK\" response", + "operation_id": "UpdateRUMOperationStrongLink", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationStrongLinkUpdateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "status": "REJECTED" + }, + "type": "strong_links" + } + } + }, + "content_type": "application/json", + "method": "PUT", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation_strong_link.data.attributes.operation_id", + "type": "fixture" + }, + "style": null + }, + { + "explode": null, + "in": "path", + "name": "feature_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation_strong_link.data.attributes.feature_id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/strong_links/{rum_operation_id}/{feature_id}" + }, + "scenario": "Update a RUM operation link returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-bad-request-response.json new file mode 100644 index 00000000000..63ef5206592 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-bad-request-response.json @@ -0,0 +1,70 @@ +{ + "api": "RUMOperations", + "expected_status": 400, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Update a RUM operation returns \"Bad Request\" response", + "operation_id": "UpdateRUMOperation", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationUpdateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "display_name": "BDD operation", + "journey_rum": { + "rum_steps": [ + { + "composite": { + "kind": "all_of", + "predicates": [ + { + "query": "@type:action" + } + ] + }, + "type": "start" + } + ] + }, + "name": "{{ rum_operation.data.attributes.name }}", + "tags": [ + "team:rum-backend" + ] + }, + "id": "{{ rum_operation.data.id }}", + "type": "operations" + } + } + }, + "content_type": "application/json", + "method": "PUT", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Update a RUM operation returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json new file mode 100644 index 00000000000..37001a2250b --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-conflict-an-operation-with-this-name-already-exists-response.json @@ -0,0 +1,75 @@ +{ + "api": "RUMOperations", + "expected_status": 409, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Update a RUM operation returns \"Conflict. An operation with this name already exists.\" response", + "operation_id": "UpdateRUMOperation", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationUpdateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "display_name": "BDD operation", + "journey_rum": { + "rum_steps": [ + { + "nodes": [ + { + "query": "@type:action @action.type:click" + } + ], + "type": "start" + }, + { + "nodes": [ + { + "query": "@type:view" + } + ], + "type": "stop" + } + ] + }, + "name": "{{ rum_operation_b.data.attributes.name }}", + "tags": [ + "team:rum-backend" + ] + }, + "id": "{{ rum_operation.data.id }}", + "type": "operations" + } + } + }, + "content_type": "application/json", + "method": "PUT", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Update a RUM operation returns \"Conflict. An operation with this name already exists.\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-not-found-response.json new file mode 100644 index 00000000000..00a0dcbdcbb --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-not-found-response.json @@ -0,0 +1,75 @@ +{ + "api": "RUMOperations", + "expected_status": 404, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Update a RUM operation returns \"Not Found\" response", + "operation_id": "UpdateRUMOperation", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationUpdateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "display_name": "BDD operation", + "journey_rum": { + "rum_steps": [ + { + "nodes": [ + { + "query": "@type:action @action.type:click" + } + ], + "type": "start" + }, + { + "nodes": [ + { + "query": "@type:view" + } + ], + "type": "stop" + } + ] + }, + "name": "bdd_{{ unique_lower_alnum }}", + "tags": [ + "team:rum-backend" + ] + }, + "id": "00000000-0000-0000-0000-000000000000", + "type": "operations" + } + } + }, + "content_type": "application/json", + "method": "PUT", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "00000000-0000-0000-0000-000000000000" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Update a RUM operation returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-ok-response.json new file mode 100644 index 00000000000..6105f889853 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-operations/update-a-rum-operation-returns-ok-response.json @@ -0,0 +1,75 @@ +{ + "api": "RUMOperations", + "expected_status": 200, + "feature": "RUM Operations", + "id": "v2/RUM Operations/Update a RUM operation returns \"OK\" response", + "operation_id": "UpdateRUMOperation", + "request": { + "body": { + "schema": { + "format": null, + "ref": "RUMOperationUpdateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "display_name": "BDD operation updated", + "journey_rum": { + "rum_steps": [ + { + "nodes": [ + { + "query": "@type:action @action.type:click" + } + ], + "type": "start" + }, + { + "nodes": [ + { + "query": "@type:view" + } + ], + "type": "stop" + } + ] + }, + "name": "{{ rum_operation.data.attributes.name }}", + "tags": [ + "team:rum-backend" + ] + }, + "id": "{{ rum_operation.data.id }}", + "type": "operations" + } + } + }, + "content_type": "application/json", + "method": "PUT", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "rum_operation_id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "rum_operation.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/operations/{rum_operation_id}" + }, + "scenario": "Update a RUM operation returns \"OK\" response", + "schema_version": 1, + "version": "v2" +}