diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 23d3b7fb9b8..2ead5fee7d6 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -249789,12 +249789,6 @@ paths: schema: $ref: "#/components/schemas/JSONAPIErrorResponse" description: Not Found. One or more mappings requested for removal do not exist. - "409": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Conflict. One or more mappings requested for creation already exist. "429": $ref: "#/components/responses/TooManyRequestsResponse" summary: Bulk create and remove teams ownership mappings diff --git a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java index 0e6d90edeca..afe10599e75 100644 --- a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java +++ b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.java @@ -9,7 +9,6 @@ import com.datadog.api.client.v2.model.TeamsOwnershipMappingResponse; import com.datadog.api.client.v2.model.TeamsOwnershipMappingType; import com.datadog.api.client.v2.model.TeamsOwnershipMatchType; -import java.util.UUID; public class Example { public static void main(String[] args) { @@ -22,14 +21,13 @@ public static void main(String[] args) { new TeamsOwnershipMappingCreateRequest() .data( new TeamsOwnershipMappingCreateData() + .type(TeamsOwnershipMappingType.TEAMS_OWNERSHIP_MAPPINGS) .attributes( new TeamsOwnershipMappingCreateDataAttributes() - .applicationId(UUID.fromString("11111111-2222-3333-4444-555555555555")) - .matchType(TeamsOwnershipMatchType.EXACT) - .service("web-checkout") .teamHandle("team-rum") - .viewName("/checkout")) - .type(TeamsOwnershipMappingType.TEAMS_OWNERSHIP_MAPPINGS)); + .viewName("/checkout-examplerumteamsownership") + .service("web-checkout-examplerumteamsownership") + .matchType(TeamsOwnershipMatchType.EXACT))); try { TeamsOwnershipMappingResponse result = apiInstance.createTeamsOwnershipMapping(body); diff --git a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping_1881412984.java b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping_1881412984.java deleted file mode 100644 index 9a01f07a01a..00000000000 --- a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping_1881412984.java +++ /dev/null @@ -1,42 +0,0 @@ -// Create teams ownership mapping returns "Created" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.RumTeamsOwnershipApi; -import com.datadog.api.client.v2.model.TeamsOwnershipMappingCreateData; -import com.datadog.api.client.v2.model.TeamsOwnershipMappingCreateDataAttributes; -import com.datadog.api.client.v2.model.TeamsOwnershipMappingCreateRequest; -import com.datadog.api.client.v2.model.TeamsOwnershipMappingResponse; -import com.datadog.api.client.v2.model.TeamsOwnershipMappingType; -import com.datadog.api.client.v2.model.TeamsOwnershipMatchType; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient); - - TeamsOwnershipMappingCreateRequest body = - new TeamsOwnershipMappingCreateRequest() - .data( - new TeamsOwnershipMappingCreateData() - .type(TeamsOwnershipMappingType.TEAMS_OWNERSHIP_MAPPINGS) - .attributes( - new TeamsOwnershipMappingCreateDataAttributes() - .teamHandle("team-rum") - .viewName("/checkout-examplerumteamsownership") - .service("web-checkout-examplerumteamsownership") - .matchType(TeamsOwnershipMatchType.EXACT))); - - try { - TeamsOwnershipMappingResponse result = apiInstance.createTeamsOwnershipMapping(body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RumTeamsOwnershipApi#createTeamsOwnershipMapping"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.java b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.java index 6731bf850a7..a60c35cff2c 100644 --- a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.java +++ b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.java @@ -17,6 +17,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + defaultClient.setUnstableOperationEnabled("v2.createTeamsOwnershipMappingsBatch", true); RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient); TeamsOwnershipMappingBatchRequest body = diff --git a/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.java b/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.java index b8c4d2f17d4..45150551164 100644 --- a/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.java +++ b/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.java @@ -8,6 +8,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + defaultClient.setUnstableOperationEnabled("v2.deleteTeamsOwnershipMapping", true); RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient); // there is a valid "teams_ownership_mapping" in the system diff --git a/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.java b/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.java index 10555591c77..ddc7e131d23 100644 --- a/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.java +++ b/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.java @@ -9,6 +9,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + defaultClient.setUnstableOperationEnabled("v2.getTeamsOwnershipMapping", true); RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient); // there is a valid "teams_ownership_mapping" in the system diff --git a/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.java b/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.java index 238e0cd23ec..4236f9ac586 100644 --- a/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.java +++ b/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.java @@ -11,6 +11,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + defaultClient.setUnstableOperationEnabled("v2.listTeamsOwnershipMappings", true); RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient); // there is a valid "teams_ownership_mapping" in the system diff --git a/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.java b/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.java index 5136d449398..5626c38624b 100644 --- a/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.java +++ b/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.java @@ -11,6 +11,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + defaultClient.setUnstableOperationEnabled("v2.listTeamsOwnershipRules", true); RumTeamsOwnershipApi apiInstance = new RumTeamsOwnershipApi(defaultClient); // there is a valid "teams_ownership_mapping" in the system diff --git a/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java b/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java index 3deb7d4b203..a4653069231 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumTeamsOwnershipApi.java @@ -254,7 +254,6 @@ public TeamsOwnershipMappingBatchResponse createTeamsOwnershipMappingsBatch( * 400 Bad Request. One or more operations failed validation, so none of the operations were applied. Errors are returned in the JSON:API atomic operations error format rather than the standard error response. - * 403 Not Authorized - * 404 Not Found. One or more mappings requested for removal do not exist. - - * 409 Conflict. One or more mappings requested for creation already exist. - * 429 Too many requests - * */ diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature index 39c2dce95f3..bfaadd84eaf 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/rum_teams_ownership.feature @@ -9,81 +9,54 @@ Feature: Rum Teams Ownership And a valid "appKeyAuth" key in the system And an instance of "RumTeamsOwnership" API - @skip @team:ddoghq/rum-backend - Scenario: Bulk create and remove teams ownership mappings returns "Bad Request" response - Given new "CreateTeamsOwnershipMappingsBatch" request - And body with value {"atomic:operations":[{"op":"add","data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout","service":"web-checkout","application_id":"invalid-uuid","match_type":"exact"}}}]} - When the request is sent - Then the response status is 400 Bad Request - - @skip @team:ddoghq/rum-backend + @skip-java @skip-python @team:ddoghq/rum-backend Scenario: Bulk create and remove teams ownership mappings returns "Bad Request. One or more operations failed validation, so none of the operations were applied." response Given operation "CreateTeamsOwnershipMappingsBatch" enabled And new "CreateTeamsOwnershipMappingsBatch" request - And body with value {"atomic:operations": [{"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}, "op": "add", "ref": {"id": "{{ unique }}", "type": "teams_ownership_mappings"}}]} + And body with value {"atomic:operations": [{"op": "add", "data": {"type": "teams_ownership_mappings", "attributes": {"team_handle": "team-rum", "view_name": "/checkout", "service": "web-checkout", "application_id": "invalid-uuid", "match_type": "exact"}}}]} When the request is sent Then the response status is 400 Bad Request. One or more operations failed validation, so none of the operations were applied. - @generated @skip @team:ddoghq/rum-backend - Scenario: Bulk create and remove teams ownership mappings returns "Conflict. One or more mappings requested for creation already exist." response - Given operation "CreateTeamsOwnershipMappingsBatch" enabled - And new "CreateTeamsOwnershipMappingsBatch" request - And body with value {"atomic:operations": [{"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}, "op": "add", "ref": {"id": "456", "type": "teams_ownership_mappings"}}]} - When the request is sent - Then the response status is 409 Conflict. One or more mappings requested for creation already exist. - - @generated @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Bulk create and remove teams ownership mappings returns "Not Found. One or more mappings requested for removal do not exist." response Given operation "CreateTeamsOwnershipMappingsBatch" enabled And new "CreateTeamsOwnershipMappingsBatch" request - And body with value {"atomic:operations": [{"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}, "op": "add", "ref": {"id": "456", "type": "teams_ownership_mappings"}}]} + And body with value {"atomic:operations": [{"op": "remove", "ref": {"type": "teams_ownership_mappings", "id": "999999999"}}]} When the request is sent Then the response status is 404 Not Found. One or more mappings requested for removal do not exist. - @skip @team:ddoghq/rum-backend + @skip-java @team:ddoghq/rum-backend Scenario: Bulk create and remove teams ownership mappings returns "OK" response - Given new "CreateTeamsOwnershipMappingsBatch" request - And body with value {"atomic:operations":[{"op":"add","data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout-{{ unique_lower_alnum }}","service":"web-checkout-{{ unique_lower_alnum }}","match_type":"exact"}}}]} + Given operation "CreateTeamsOwnershipMappingsBatch" enabled + And new "CreateTeamsOwnershipMappingsBatch" request + And body with value {"atomic:operations": [{"op": "add", "data": {"type": "teams_ownership_mappings", "attributes": {"team_handle": "team-rum", "view_name": "/checkout-{{ unique_lower_alnum }}", "service": "web-checkout-{{ unique_lower_alnum }}", "match_type": "exact"}}}]} When the request is sent Then the response status is 200 OK And the response "atomic:results[0].data.type" is equal to "teams_ownership_mappings" And the response "atomic:results[0].data.attributes.team_handle" is equal to "team-rum" And the response "atomic:results[0].data.attributes.match_type" is equal to "exact" - @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Bulk create teams ownership mappings without a service or application ID returns "Bad Request" response - Given new "CreateTeamsOwnershipMappingsBatch" request - And body with value {"atomic:operations":[{"op":"add","data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout-{{ unique_lower_alnum }}","match_type":"exact"}}}]} + Given operation "CreateTeamsOwnershipMappingsBatch" enabled + And new "CreateTeamsOwnershipMappingsBatch" request + And body with value {"atomic:operations": [{"op": "add", "data": {"type": "teams_ownership_mappings", "attributes": {"team_handle": "team-rum", "view_name": "/checkout-{{ unique_lower_alnum }}", "match_type": "exact"}}}]} When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:ddoghq/rum-backend + @skip-java @skip-python @team:ddoghq/rum-backend Scenario: Create a teams ownership mapping returns "Bad Request" response Given operation "CreateTeamsOwnershipMapping" enabled And new "CreateTeamsOwnershipMapping" request - And body with value {"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}} + And body with value {"data": {"type": "teams_ownership_mappings", "attributes": {"team_handle": "team-rum", "view_name": "/checkout", "service": "web-checkout", "application_id": "invalid-uuid", "match_type": "exact"}}} 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 teams ownership mapping returns "Created" response Given operation "CreateTeamsOwnershipMapping" enabled And new "CreateTeamsOwnershipMapping" request - And body with value {"data": {"attributes": {"application_id": "11111111-2222-3333-4444-555555555555", "match_type": "exact", "service": "web-checkout", "team_handle": "team-rum", "view_name": "/checkout"}, "type": "teams_ownership_mappings"}} - When the request is sent - Then the response status is 201 Created - - @skip @team:ddoghq/rum-backend - Scenario: Create teams ownership mapping returns "Bad Request" response - Given new "CreateTeamsOwnershipMapping" request - And body with value {"data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout","service":"web-checkout","application_id":"invalid-uuid","match_type":"exact"}}} - When the request is sent - Then the response status is 400 Bad Request - - @skip @team:ddoghq/rum-backend - Scenario: Create teams ownership mapping returns "Created" response - Given new "CreateTeamsOwnershipMapping" request - And body with value {"data":{"type":"teams_ownership_mappings","attributes":{"team_handle":"team-rum","view_name":"/checkout-{{ unique_lower_alnum }}","service":"web-checkout-{{ unique_lower_alnum }}","match_type":"exact"}}} + And body with value {"data": {"type": "teams_ownership_mappings", "attributes": {"team_handle": "team-rum", "view_name": "/checkout-{{ unique_lower_alnum }}", "service": "web-checkout-{{ unique_lower_alnum }}", "match_type": "exact"}}} When the request is sent Then the response status is 201 Created And the response "data.type" is equal to "teams_ownership_mappings" @@ -92,31 +65,35 @@ Feature: Rum Teams Ownership And the response "data.attributes.service" is equal to "web-checkout-{{ unique_lower_alnum }}" And the response "data.attributes.match_type" is equal to "exact" - @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Delete a teams ownership mapping returns "No Content" response - Given there is a valid "teams_ownership_mapping" in the system + Given operation "DeleteTeamsOwnershipMapping" enabled + And there is a valid "teams_ownership_mapping" in the system And new "DeleteTeamsOwnershipMapping" request And request contains "id" parameter from "teams_ownership_mapping.data.id" When the request is sent Then the response status is 204 No Content - @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Delete a teams ownership mapping returns "Not Found" response - Given new "DeleteTeamsOwnershipMapping" request - And request contains "id" parameter with value "{{ unique }}" + Given operation "DeleteTeamsOwnershipMapping" enabled + And new "DeleteTeamsOwnershipMapping" request + And request contains "id" parameter with value "999999999" When the request is sent Then the response status is 404 Not Found - @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Get a teams ownership mapping returns "Not Found" response - Given new "GetTeamsOwnershipMapping" request - And request contains "id" parameter with value "{{ unique }}" + Given operation "GetTeamsOwnershipMapping" enabled + And new "GetTeamsOwnershipMapping" request + And request contains "id" parameter with value "999999999" When the request is sent Then the response status is 404 Not Found - @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: Get a teams ownership mapping returns "OK" response - Given there is a valid "teams_ownership_mapping" in the system + Given operation "GetTeamsOwnershipMapping" enabled + And there is a valid "teams_ownership_mapping" in the system And new "GetTeamsOwnershipMapping" request And request contains "id" parameter from "teams_ownership_mapping.data.id" When the request is sent @@ -127,16 +104,18 @@ Feature: Rum Teams Ownership And the response "data.attributes.view_name" is equal to "{{ teams_ownership_mapping.data.attributes.view_name }}" And the response "data.attributes.match_type" is equal to "exact" - @generated @skip @team:ddoghq/rum-backend + @skip-go @skip-python @team:ddoghq/rum-backend Scenario: List teams ownership mappings returns "Bad Request" response Given operation "ListTeamsOwnershipMappings" enabled And new "ListTeamsOwnershipMappings" request + And request contains "filter[application_id]" parameter with value ["invalid-uuid"] When the request is sent Then the response status is 400 Bad Request - @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: List teams ownership mappings returns "OK" response - Given there is a valid "teams_ownership_mapping" in the system + Given operation "ListTeamsOwnershipMappings" enabled + And there is a valid "teams_ownership_mapping" in the system And new "ListTeamsOwnershipMappings" request And request contains "filter[view_name]" parameter with value ["{{ teams_ownership_mapping.data.attributes.view_name }}"] When the request is sent @@ -148,16 +127,18 @@ Feature: Rum Teams Ownership And the response "data[0].attributes.service" is equal to "{{ teams_ownership_mapping.data.attributes.service }}" And the response "data[0].attributes.match_type" is equal to "exact" - @generated @skip @team:ddoghq/rum-backend + @skip-go @skip-python @team:ddoghq/rum-backend Scenario: List teams ownership rules returns "Bad Request" response Given operation "ListTeamsOwnershipRules" enabled And new "ListTeamsOwnershipRules" request + And request contains "filter[application_id]" parameter with value ["invalid-uuid"] When the request is sent Then the response status is 400 Bad Request - @skip @team:ddoghq/rum-backend + @team:ddoghq/rum-backend Scenario: List teams ownership rules returns "OK" response - Given there is a valid "teams_ownership_mapping" in the system + Given operation "ListTeamsOwnershipRules" enabled + And there is a valid "teams_ownership_mapping" in the system And new "ListTeamsOwnershipRules" request And request contains "filter[view_name]" parameter with value ["{{ teams_ownership_mapping.data.attributes.view_name }}"] When the request is sent 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..81e2aec0416 100644 --- a/src/test/resources/generated-test/test-runner-data/manifest.json +++ b/src/test/resources/generated-test/test-runner-data/manifest.json @@ -10850,6 +10850,104 @@ "scenario": "Update a RUM retention filter returns \"Updated\" response", "version": "v2" }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-bad-request-one-or-more-operations-failed-validation-so-none-of-the-operations-were-applied-response.json", + "scenario": "Bulk create and remove teams ownership mappings returns \"Bad Request. One or more operations failed validation, so none of the operations were applied.\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-not-found-one-or-more-mappings-requested-for-removal-do-not-exist-response.json", + "scenario": "Bulk create and remove teams ownership mappings returns \"Not Found. One or more mappings requested for removal do not exist.\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-ok-response.json", + "scenario": "Bulk create and remove teams ownership mappings returns \"OK\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/bulk-create-teams-ownership-mappings-without-a-service-or-application-id-returns-bad-request-response.json", + "scenario": "Bulk create teams ownership mappings without a service or application ID returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-bad-request-response.json", + "scenario": "Create a teams ownership mapping returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-created-response.json", + "scenario": "Create a teams ownership mapping returns \"Created\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-no-content-response.json", + "scenario": "Delete a teams ownership mapping returns \"No Content\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-not-found-response.json", + "scenario": "Delete a teams ownership mapping returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-not-found-response.json", + "scenario": "Get a teams ownership mapping returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-ok-response.json", + "scenario": "Get a teams ownership mapping returns \"OK\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/list-teams-ownership-mappings-returns-bad-request-response.json", + "scenario": "List teams ownership mappings returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/list-teams-ownership-mappings-returns-ok-response.json", + "scenario": "List teams ownership mappings returns \"OK\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/list-teams-ownership-rules-returns-bad-request-response.json", + "scenario": "List teams ownership rules returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "feature_file": "../../com/datadog/api/client/v2/api/rum_teams_ownership.feature", + "file": "v2/rum-teams-ownership/list-teams-ownership-rules-returns-ok-response.json", + "scenario": "List teams ownership rules returns \"OK\" response", + "version": "v2" + }, { "feature": "Scorecards", "feature_file": "../../com/datadog/api/client/v2/api/scorecards.feature", diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-bad-request-one-or-more-operations-failed-validation-so-none-of-the-operations-were-applied-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-bad-request-one-or-more-operations-failed-validation-so-none-of-the-operations-were-applied-response.json new file mode 100644 index 00000000000..22560b6bff1 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-bad-request-one-or-more-operations-failed-validation-so-none-of-the-operations-were-applied-response.json @@ -0,0 +1,42 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 400, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Bulk create and remove teams ownership mappings returns \"Bad Request. One or more operations failed validation, so none of the operations were applied.\" response", + "operation_id": "CreateTeamsOwnershipMappingsBatch", + "request": { + "body": { + "schema": { + "format": null, + "ref": "TeamsOwnershipMappingBatchRequest", + "type": "object" + }, + "source": "inline", + "value": { + "atomic:operations": [ + { + "data": { + "attributes": { + "application_id": "invalid-uuid", + "match_type": "exact", + "service": "web-checkout", + "team_handle": "team-rum", + "view_name": "/checkout" + }, + "type": "teams_ownership_mappings" + }, + "op": "add" + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config/teams-ownership/mappings/operations" + }, + "scenario": "Bulk create and remove teams ownership mappings returns \"Bad Request. One or more operations failed validation, so none of the operations were applied.\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-not-found-one-or-more-mappings-requested-for-removal-do-not-exist-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-not-found-one-or-more-mappings-requested-for-removal-do-not-exist-response.json new file mode 100644 index 00000000000..349d49c08aa --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-not-found-one-or-more-mappings-requested-for-removal-do-not-exist-response.json @@ -0,0 +1,36 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 404, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Bulk create and remove teams ownership mappings returns \"Not Found. One or more mappings requested for removal do not exist.\" response", + "operation_id": "CreateTeamsOwnershipMappingsBatch", + "request": { + "body": { + "schema": { + "format": null, + "ref": "TeamsOwnershipMappingBatchRequest", + "type": "object" + }, + "source": "inline", + "value": { + "atomic:operations": [ + { + "op": "remove", + "ref": { + "id": "999999999", + "type": "teams_ownership_mappings" + } + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config/teams-ownership/mappings/operations" + }, + "scenario": "Bulk create and remove teams ownership mappings returns \"Not Found. One or more mappings requested for removal do not exist.\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-ok-response.json new file mode 100644 index 00000000000..e2e4f34e8d9 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-and-remove-teams-ownership-mappings-returns-ok-response.json @@ -0,0 +1,41 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 200, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Bulk create and remove teams ownership mappings returns \"OK\" response", + "operation_id": "CreateTeamsOwnershipMappingsBatch", + "request": { + "body": { + "schema": { + "format": null, + "ref": "TeamsOwnershipMappingBatchRequest", + "type": "object" + }, + "source": "inline", + "value": { + "atomic:operations": [ + { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-{{ unique_lower_alnum }}", + "team_handle": "team-rum", + "view_name": "/checkout-{{ unique_lower_alnum }}" + }, + "type": "teams_ownership_mappings" + }, + "op": "add" + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config/teams-ownership/mappings/operations" + }, + "scenario": "Bulk create and remove teams ownership mappings returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-teams-ownership-mappings-without-a-service-or-application-id-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-teams-ownership-mappings-without-a-service-or-application-id-returns-bad-request-response.json new file mode 100644 index 00000000000..c9591426147 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/bulk-create-teams-ownership-mappings-without-a-service-or-application-id-returns-bad-request-response.json @@ -0,0 +1,40 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 400, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Bulk create teams ownership mappings without a service or application ID returns \"Bad Request\" response", + "operation_id": "CreateTeamsOwnershipMappingsBatch", + "request": { + "body": { + "schema": { + "format": null, + "ref": "TeamsOwnershipMappingBatchRequest", + "type": "object" + }, + "source": "inline", + "value": { + "atomic:operations": [ + { + "data": { + "attributes": { + "match_type": "exact", + "team_handle": "team-rum", + "view_name": "/checkout-{{ unique_lower_alnum }}" + }, + "type": "teams_ownership_mappings" + }, + "op": "add" + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config/teams-ownership/mappings/operations" + }, + "scenario": "Bulk create teams ownership mappings without a service or application ID returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-bad-request-response.json new file mode 100644 index 00000000000..b3250dd41f3 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-bad-request-response.json @@ -0,0 +1,37 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 400, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Create a teams ownership mapping returns \"Bad Request\" response", + "operation_id": "CreateTeamsOwnershipMapping", + "request": { + "body": { + "schema": { + "format": null, + "ref": "TeamsOwnershipMappingCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "application_id": "invalid-uuid", + "match_type": "exact", + "service": "web-checkout", + "team_handle": "team-rum", + "view_name": "/checkout" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config/teams-ownership/mappings" + }, + "scenario": "Create a teams ownership mapping returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-created-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-created-response.json new file mode 100644 index 00000000000..f3f31754c6b --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/create-a-teams-ownership-mapping-returns-created-response.json @@ -0,0 +1,36 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 201, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Create a teams ownership mapping returns \"Created\" response", + "operation_id": "CreateTeamsOwnershipMapping", + "request": { + "body": { + "schema": { + "format": null, + "ref": "TeamsOwnershipMappingCreateRequest", + "type": "object" + }, + "source": "inline", + "value": { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-{{ unique_lower_alnum }}", + "team_handle": "team-rum", + "view_name": "/checkout-{{ unique_lower_alnum }}" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/rum/config/teams-ownership/mappings" + }, + "scenario": "Create a teams ownership mapping returns \"Created\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-no-content-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-no-content-response.json new file mode 100644 index 00000000000..a92708e51ce --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-no-content-response.json @@ -0,0 +1,35 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 204, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Delete a teams ownership mapping returns \"No Content\" response", + "operation_id": "DeleteTeamsOwnershipMapping", + "request": { + "body": null, + "content_type": null, + "method": "DELETE", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "teams_ownership_mapping.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/mappings/{id}" + }, + "scenario": "Delete a teams ownership mapping returns \"No Content\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-not-found-response.json new file mode 100644 index 00000000000..c375243cd7a --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/delete-a-teams-ownership-mapping-returns-not-found-response.json @@ -0,0 +1,35 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 404, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Delete a teams ownership mapping returns \"Not Found\" response", + "operation_id": "DeleteTeamsOwnershipMapping", + "request": { + "body": null, + "content_type": null, + "method": "DELETE", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "999999999" + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/mappings/{id}" + }, + "scenario": "Delete a teams ownership mapping returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-not-found-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-not-found-response.json new file mode 100644 index 00000000000..6d5030f043b --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-not-found-response.json @@ -0,0 +1,35 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 404, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Get a teams ownership mapping returns \"Not Found\" response", + "operation_id": "GetTeamsOwnershipMapping", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "type": "literal", + "value": "999999999" + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/mappings/{id}" + }, + "scenario": "Get a teams ownership mapping returns \"Not Found\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-ok-response.json new file mode 100644 index 00000000000..50e6b175c09 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/get-a-teams-ownership-mapping-returns-ok-response.json @@ -0,0 +1,35 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 200, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/Get a teams ownership mapping returns \"OK\" response", + "operation_id": "GetTeamsOwnershipMapping", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "path", + "name": "id", + "required": true, + "schema": { + "format": null, + "ref": null, + "type": "string" + }, + "source": { + "path": "teams_ownership_mapping.data.id", + "type": "fixture" + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/mappings/{id}" + }, + "scenario": "Get a teams ownership mapping returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-mappings-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-mappings-returns-bad-request-response.json new file mode 100644 index 00000000000..c77d58e3e3b --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-mappings-returns-bad-request-response.json @@ -0,0 +1,42 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 400, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/List teams ownership mappings returns \"Bad Request\" response", + "operation_id": "ListTeamsOwnershipMappings", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "query", + "name": "filter[application_id]", + "required": false, + "schema": { + "format": null, + "items": { + "format": "uuid", + "ref": null, + "type": "string" + }, + "ref": null, + "type": "array" + }, + "source": { + "type": "literal", + "value": [ + "invalid-uuid" + ] + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/mappings" + }, + "scenario": "List teams ownership mappings returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-mappings-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-mappings-returns-ok-response.json new file mode 100644 index 00000000000..11bd683f534 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-mappings-returns-ok-response.json @@ -0,0 +1,42 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 200, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/List teams ownership mappings returns \"OK\" response", + "operation_id": "ListTeamsOwnershipMappings", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "query", + "name": "filter[view_name]", + "required": false, + "schema": { + "format": null, + "items": { + "format": null, + "ref": null, + "type": "string" + }, + "ref": null, + "type": "array" + }, + "source": { + "type": "literal", + "value": [ + "{{ teams_ownership_mapping.data.attributes.view_name }}" + ] + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/mappings" + }, + "scenario": "List teams ownership mappings returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-rules-returns-bad-request-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-rules-returns-bad-request-response.json new file mode 100644 index 00000000000..e86730440e7 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-rules-returns-bad-request-response.json @@ -0,0 +1,42 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 400, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/List teams ownership rules returns \"Bad Request\" response", + "operation_id": "ListTeamsOwnershipRules", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "query", + "name": "filter[application_id]", + "required": false, + "schema": { + "format": null, + "items": { + "format": "uuid", + "ref": null, + "type": "string" + }, + "ref": null, + "type": "array" + }, + "source": { + "type": "literal", + "value": [ + "invalid-uuid" + ] + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/rules" + }, + "scenario": "List teams ownership rules returns \"Bad Request\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-rules-returns-ok-response.json b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-rules-returns-ok-response.json new file mode 100644 index 00000000000..19b857abba2 --- /dev/null +++ b/src/test/resources/generated-test/test-runner-data/v2/rum-teams-ownership/list-teams-ownership-rules-returns-ok-response.json @@ -0,0 +1,42 @@ +{ + "api": "RumTeamsOwnership", + "expected_status": 200, + "feature": "Rum Teams Ownership", + "id": "v2/Rum Teams Ownership/List teams ownership rules returns \"OK\" response", + "operation_id": "ListTeamsOwnershipRules", + "request": { + "body": null, + "content_type": null, + "method": "GET", + "pagination": false, + "parameters": [ + { + "explode": null, + "in": "query", + "name": "filter[view_name]", + "required": false, + "schema": { + "format": null, + "items": { + "format": null, + "ref": null, + "type": "string" + }, + "ref": null, + "type": "array" + }, + "source": { + "type": "literal", + "value": [ + "{{ teams_ownership_mapping.data.attributes.view_name }}" + ] + }, + "style": null + } + ], + "path": "/api/v2/rum/config/teams-ownership/rules" + }, + "scenario": "List teams ownership rules returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/src/test/resources/generated-test/test-server-data/manifest.json b/src/test/resources/generated-test/test-server-data/manifest.json index 710fadb6b85..2f6f2213a1b 100644 --- a/src/test/resources/generated-test/test-server-data/manifest.json +++ b/src/test/resources/generated-test/test-server-data/manifest.json @@ -500,6 +500,11 @@ "file": "v2/rum-retention-filters.json", "version": "v2" }, + { + "feature": "Rum Teams Ownership", + "file": "v2/rum-teams-ownership.json", + "version": "v2" + }, { "feature": "Scorecards", "file": "v2/scorecards.json", diff --git a/src/test/resources/generated-test/test-server-data/v2/rum-teams-ownership.json b/src/test/resources/generated-test/test-server-data/v2/rum-teams-ownership.json new file mode 100644 index 00000000000..8b78beff1c6 --- /dev/null +++ b/src/test/resources/generated-test/test-server-data/v2/rum-teams-ownership.json @@ -0,0 +1,795 @@ +{ + "feature": "Rum Teams Ownership", + "recordings": [ + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:13.069Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "atomic:operations": [ + { + "data": { + "attributes": { + "application_id": "invalid-uuid", + "match_type": "exact", + "service": "web-checkout", + "team_handle": "team-rum", + "view_name": "/checkout" + }, + "type": "teams_ownership_mappings" + }, + "op": "add" + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings/operations", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"attribute \\\"application_id\\\" must be a valid UUID, got \\\"invalid-uuid\\\"\"}]}" + }, + "headers": { + "content-type": "application/json" + }, + "reason": "Bad Request", + "status": 400 + } + } + ], + "scenario": "Bulk create and remove teams ownership mappings returns \"Bad Request. One or more operations failed validation, so none of the operations were applied.\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:15.035Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "atomic:operations": [ + { + "op": "remove", + "ref": { + "id": "999999999", + "type": "teams_ownership_mappings" + } + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings/operations", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"could not delete IDs (not found): 999999999\"}]}" + }, + "headers": { + "content-type": "application/json" + }, + "reason": "Not Found", + "status": 404 + } + } + ], + "scenario": "Bulk create and remove teams ownership mappings returns \"Not Found. One or more mappings requested for removal do not exist.\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:15.121Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "atomic:operations": [ + { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-testbulkcreateandremoveteamsownershipmappingsreturnsokresponse1795691055", + "team_handle": "team-rum", + "view_name": "/checkout-testbulkcreateandremoveteamsownershipmappingsreturnsokresponse1795691055" + }, + "type": "teams_ownership_mappings" + }, + "op": "add" + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings/operations", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"atomic:results\":[{\"data\":{\"type\":\"teams_ownership_mappings\",\"id\":\"1054914\",\"attributes\":{\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testbulkcreateandremoveteamsownershipmappingsreturnsokresponse1795691055\",\"service\":\"web-checkout-testbulkcreateandremoveteamsownershipmappingsreturnsokresponse1795691055\",\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"org_id\":321813,\"created_at\":\"2026-11-26T11:04:15.164616Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\"}}}]}" + }, + "headers": { + "content-type": "application/json" + }, + "reason": "OK", + "status": 200 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054914", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "" + }, + "headers": {}, + "reason": "No Content", + "status": 204 + } + } + ], + "scenario": "Bulk create and remove teams ownership mappings returns \"OK\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:15.685Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "atomic:operations": [ + { + "data": { + "attributes": { + "match_type": "exact", + "team_handle": "team-rum", + "view_name": "/checkout-testbulkcreateteamsownershipmappingswithoutaserviceorapplicationidreturnsbadrequestrespons1795691055" + }, + "type": "teams_ownership_mappings" + }, + "op": "add" + } + ] + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings/operations", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"either application_id or service needs to be specified\"}]}" + }, + "headers": { + "content-type": "application/json" + }, + "reason": "Bad Request", + "status": 400 + } + } + ], + "scenario": "Bulk create teams ownership mappings without a service or application ID returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:15.731Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "data": { + "attributes": { + "application_id": "invalid-uuid", + "match_type": "exact", + "service": "web-checkout", + "team_handle": "team-rum", + "view_name": "/checkout" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"invalid application_id \\\"invalid-uuid\\\": must be a valid UUID\"}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Bad Request", + "status": 400 + } + } + ], + "scenario": "Create a teams ownership mapping returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:15.778Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-testcreateateamsownershipmappingreturnscreatedresponse1795691055", + "team_handle": "team-rum", + "view_name": "/checkout-testcreateateamsownershipmappingreturnscreatedresponse1795691055" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":{\"id\":\"1054915\",\"type\":\"teams_ownership_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-11-26T11:04:15.815481Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\",\"org_id\":321813,\"service\":\"web-checkout-testcreateateamsownershipmappingreturnscreatedresponse1795691055\",\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testcreateateamsownershipmappingreturnscreatedresponse1795691055\"}}}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Created", + "status": 201 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054915", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "" + }, + "headers": {}, + "reason": "No Content", + "status": 204 + } + } + ], + "scenario": "Create a teams ownership mapping returns \"Created\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:16.318Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-testdeleteateamsownershipmappingreturnsnocontentresponse1795691056", + "team_handle": "team-rum", + "view_name": "/checkout-testdeleteateamsownershipmappingreturnsnocontentresponse1795691056" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":{\"id\":\"1054916\",\"type\":\"teams_ownership_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-11-26T11:04:16.354769Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\",\"org_id\":321813,\"service\":\"web-checkout-testdeleteateamsownershipmappingreturnsnocontentresponse1795691056\",\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testdeleteateamsownershipmappingreturnsnocontentresponse1795691056\"}}}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Created", + "status": 201 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054916", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "" + }, + "headers": {}, + "reason": "No Content", + "status": 204 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054916", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"teams ownership mapping not found\"}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Not Found", + "status": 404 + } + } + ], + "scenario": "Delete a teams ownership mapping returns \"No Content\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:16.919Z", + "interactions": [ + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/999999999", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"teams ownership mapping not found\"}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Not Found", + "status": 404 + } + } + ], + "scenario": "Delete a teams ownership mapping returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:16.965Z", + "interactions": [ + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "GET", + "path": "/api/v2/rum/config/teams-ownership/mappings/999999999", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\",\"detail\":\"teams ownership mapping not found\"}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Not Found", + "status": 404 + } + } + ], + "scenario": "Get a teams ownership mapping returns \"Not Found\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:17.017Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-testgetateamsownershipmappingreturnsokresponse1795691057", + "team_handle": "team-rum", + "view_name": "/checkout-testgetateamsownershipmappingreturnsokresponse1795691057" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":{\"id\":\"1054917\",\"type\":\"teams_ownership_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-11-26T11:04:17.066472Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\",\"org_id\":321813,\"service\":\"web-checkout-testgetateamsownershipmappingreturnsokresponse1795691057\",\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testgetateamsownershipmappingreturnsokresponse1795691057\"}}}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Created", + "status": 201 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "GET", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054917", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":{\"id\":\"1054917\",\"type\":\"teams_ownership_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-11-26T11:04:17.066472Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\",\"org_id\":321813,\"service\":\"web-checkout-testgetateamsownershipmappingreturnsokresponse1795691057\",\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testgetateamsownershipmappingreturnsokresponse1795691057\"}}}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "OK", + "status": 200 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054917", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "" + }, + "headers": {}, + "reason": "No Content", + "status": 204 + } + } + ], + "scenario": "Get a teams ownership mapping returns \"OK\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:17.576Z", + "interactions": [ + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "GET", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [ + [ + "filter[application_id]", + "invalid-uuid" + ] + ] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"invalid application_id \\\"invalid-uuid\\\": must be a valid UUID\"}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Bad Request", + "status": 400 + } + } + ], + "scenario": "List teams ownership mappings returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:17.627Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-testlistteamsownershipmappingsreturnsokresponse1795691057", + "team_handle": "team-rum", + "view_name": "/checkout-testlistteamsownershipmappingsreturnsokresponse1795691057" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":{\"id\":\"1054918\",\"type\":\"teams_ownership_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-11-26T11:04:17.664683Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\",\"org_id\":321813,\"service\":\"web-checkout-testlistteamsownershipmappingsreturnsokresponse1795691057\",\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testlistteamsownershipmappingsreturnsokresponse1795691057\"}}}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Created", + "status": 201 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "GET", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [ + [ + "filter[view_name]", + "/checkout-testlistteamsownershipmappingsreturnsokresponse1795691057" + ] + ] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":[{\"id\":\"1054918\",\"type\":\"teams_ownership_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-11-26T11:04:17.664683Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\",\"org_id\":321813,\"service\":\"web-checkout-testlistteamsownershipmappingsreturnsokresponse1795691057\",\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testlistteamsownershipmappingsreturnsokresponse1795691057\"}}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "OK", + "status": 200 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054918", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "" + }, + "headers": {}, + "reason": "No Content", + "status": 204 + } + } + ], + "scenario": "List teams ownership mappings returns \"OK\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:18.173Z", + "interactions": [ + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "GET", + "path": "/api/v2/rum/config/teams-ownership/rules", + "query": [ + [ + "filter[application_id]", + "invalid-uuid" + ] + ] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"invalid application_id \\\"invalid-uuid\\\": must be a valid UUID\"}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Bad Request", + "status": 400 + } + } + ], + "scenario": "List teams ownership rules returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Rum Teams Ownership", + "frozen_at": "2026-11-26T11:04:18.226Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "data": { + "attributes": { + "match_type": "exact", + "service": "web-checkout-testlistteamsownershiprulesreturnsokresponse1795691058", + "team_handle": "team-rum", + "view_name": "/checkout-testlistteamsownershiprulesreturnsokresponse1795691058" + }, + "type": "teams_ownership_mappings" + } + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/rum/config/teams-ownership/mappings", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":{\"id\":\"1054919\",\"type\":\"teams_ownership_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"2026-11-26T11:04:18.263072Z\",\"created_by\":\"028000b7-d90f-4d20-b4a9-6ff4a83b7950\",\"match_type\":\"exact\",\"org_id\":321813,\"service\":\"web-checkout-testlistteamsownershiprulesreturnsokresponse1795691058\",\"team_handle\":\"team-rum\",\"view_name\":\"/checkout-testlistteamsownershiprulesreturnsokresponse1795691058\"}}}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "Created", + "status": 201 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "GET", + "path": "/api/v2/rum/config/teams-ownership/rules", + "query": [ + [ + "filter[view_name]", + "/checkout-testlistteamsownershiprulesreturnsokresponse1795691058" + ] + ] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":[{\"id\":\"996f62e426e5a87d4bad9349129e648c20309a81a42cef29621c2a22e828b7b4\",\"type\":\"teams_ownership_grouped_mappings\",\"attributes\":{\"application_id\":\"00000000-0000-0000-0000-000000000000\",\"match_type\":\"exact\",\"service\":\"web-checkout-testlistteamsownershiprulesreturnsokresponse1795691058\",\"teams\":[{\"team_handle\":\"team-rum\",\"mapping_id\":\"1054919\"}],\"view_name\":\"/checkout-testlistteamsownershiprulesreturnsokresponse1795691058\"}}]}" + }, + "headers": { + "content-type": "application/vnd.api+json" + }, + "reason": "OK", + "status": 200 + } + }, + { + "request": { + "body": { + "type": "empty", + "value": null + }, + "content_type": "", + "method": "DELETE", + "path": "/api/v2/rum/config/teams-ownership/mappings/1054919", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "" + }, + "headers": {}, + "reason": "No Content", + "status": 204 + } + } + ], + "scenario": "List teams ownership rules returns \"OK\" response", + "version": "v2" + } + ], + "schema_version": 1, + "version": "v2" +}