|
| 1 | +@endpoint(rum-audience-management) @endpoint(rum-audience-management-v2) |
| 2 | +Feature: Rum Audience Management |
| 3 | + Auto-generated tag Rum Audience Management |
| 4 | + |
| 5 | + Background: |
| 6 | + Given a valid "apiKeyAuth" key in the system |
| 7 | + And a valid "appKeyAuth" key in the system |
| 8 | + And an instance of "RumAudienceManagement" API |
| 9 | + |
| 10 | + @generated @skip @team:DataDog/audience-management-backend |
| 11 | + Scenario: Create connection returns "Connection created successfully" response |
| 12 | + Given operation "CreateConnection" enabled |
| 13 | + And new "CreateConnection" request |
| 14 | + And request contains "entity" parameter from "REPLACE.ME" |
| 15 | + And body with value {"data": {"attributes": {"fields": [{"description": "Customer subscription tier from `CRM`", "display_name": "Customer Tier", "id": "customer_tier", "source_name": "subscription_tier", "type": "string"}, {"description": "Customer lifetime value in `USD`", "display_name": "Lifetime Value", "id": "lifetime_value", "source_name": "ltv", "type": "number"}], "join_attribute": "user_email", "join_type": "email", "metadata": null, "type": "ref_table"}, "id": "crm-integration", "type": "connection_id"}} |
| 16 | + When the request is sent |
| 17 | + Then the response status is 201 Connection created successfully |
| 18 | + |
| 19 | + @generated @skip @team:DataDog/audience-management-backend |
| 20 | + Scenario: Delete connection returns "Connection deleted successfully" response |
| 21 | + Given operation "DeleteConnection" enabled |
| 22 | + And new "DeleteConnection" request |
| 23 | + And request contains "id" parameter from "REPLACE.ME" |
| 24 | + And request contains "entity" parameter from "REPLACE.ME" |
| 25 | + When the request is sent |
| 26 | + Then the response status is 204 Connection deleted successfully |
| 27 | + |
| 28 | + @generated @skip @team:DataDog/audience-management-backend |
| 29 | + Scenario: Get account facet info returns "Successful response with facet information" response |
| 30 | + Given operation "GetAccountFacetInfo" enabled |
| 31 | + And new "GetAccountFacetInfo" request |
| 32 | + And body with value {"data": {"attributes": {"facet_id": "first_browser_name", "limit": 10, "search": {"query": "user_org_id:5001 AND first_country_code:US"}, "term_search": {"value": "Chrome"}}, "id": "facet_info_request", "type": "users_facet_info_request"}} |
| 33 | + When the request is sent |
| 34 | + Then the response status is 200 Successful response with facet information |
| 35 | + |
| 36 | + @generated @skip @team:DataDog/audience-management-backend |
| 37 | + Scenario: Get mapping returns "Successful response with entity mapping configuration" response |
| 38 | + Given operation "GetMapping" enabled |
| 39 | + And new "GetMapping" request |
| 40 | + And request contains "entity" parameter from "REPLACE.ME" |
| 41 | + When the request is sent |
| 42 | + Then the response status is 200 Successful response with entity mapping configuration |
| 43 | + |
| 44 | + @generated @skip @team:DataDog/audience-management-backend |
| 45 | + Scenario: Get user facet info returns "Successful response with facet information" response |
| 46 | + Given operation "GetUserFacetInfo" enabled |
| 47 | + And new "GetUserFacetInfo" request |
| 48 | + And body with value {"data": {"attributes": {"facet_id": "first_browser_name", "limit": 10, "search": {"query": "user_org_id:5001 AND first_country_code:US"}, "term_search": {"value": "Chrome"}}, "id": "facet_info_request", "type": "users_facet_info_request"}} |
| 49 | + When the request is sent |
| 50 | + Then the response status is 200 Successful response with facet information |
| 51 | + |
| 52 | + @generated @skip @team:DataDog/audience-management-backend |
| 53 | + Scenario: List connections returns "Successful response with list of connections" response |
| 54 | + Given operation "ListConnections" enabled |
| 55 | + And new "ListConnections" request |
| 56 | + And request contains "entity" parameter from "REPLACE.ME" |
| 57 | + When the request is sent |
| 58 | + Then the response status is 200 Successful response with list of connections |
| 59 | + |
| 60 | + @generated @skip @team:DataDog/audience-management-backend |
| 61 | + Scenario: Query accounts returns "Successful response with account data" response |
| 62 | + Given operation "QueryAccounts" enabled |
| 63 | + And new "QueryAccounts" request |
| 64 | + And body with value {"data": {"attributes": {"limit": 20, "query": "plan_type:enterprise AND user_count:>100 AND subscription_status:active", "select_columns": ["account_id", "account_name", "user_count", "plan_type", "subscription_status", "created_at", "mrr", "industry"], "sort": {"field": "user_count", "order": "DESC"}, "wildcard_search_term": "tech"}, "id": "query_account_request", "type": "query_account_request"}} |
| 65 | + When the request is sent |
| 66 | + Then the response status is 200 Successful response with account data |
| 67 | + |
| 68 | + @generated @skip @team:DataDog/audience-management-backend |
| 69 | + Scenario: Query event filtered users returns "Successful response with filtered user data" response |
| 70 | + Given operation "QueryEventFilteredUsers" enabled |
| 71 | + And new "QueryEventFilteredUsers" request |
| 72 | + And body with value {"data": {"attributes": {"event_query": {"query": "@type:view AND @view.loading_time:>3000 AND @application.name:ecommerce-platform", "time_frame": {"end": 1761309676, "start": 1760100076}}, "include_row_count": true, "limit": 25, "query": "user_org_id:5001 AND first_country_code:US AND first_browser_name:Chrome", "select_columns": ["user_id", "user_email", "first_country_code", "first_browser_name", "events_count", "session_count", "error_count", "avg_loading_time"]}, "id": "query_event_filtered_users_request", "type": "query_event_filtered_users_request"}} |
| 73 | + When the request is sent |
| 74 | + Then the response status is 200 Successful response with filtered user data |
| 75 | + |
| 76 | + @generated @skip @team:DataDog/audience-management-backend |
| 77 | + Scenario: Query users returns "Successful response with user data" response |
| 78 | + Given operation "QueryUsers" enabled |
| 79 | + And new "QueryUsers" request |
| 80 | + And body with value {"data": {"attributes": {"limit": 25, "query": "user_email:*@techcorp.com AND first_country_code:US AND first_browser_name:Chrome", "select_columns": ["user_id", "user_email", "user_name", "user_org_id", "first_country_code", "first_browser_name", "first_device_type", "last_seen"], "sort": {"field": "first_seen", "order": "DESC"}, "wildcard_search_term": "john"}, "id": "query_users_request", "type": "query_users_request"}} |
| 81 | + When the request is sent |
| 82 | + Then the response status is 200 Successful response with user data |
| 83 | + |
| 84 | + @generated @skip @team:DataDog/audience-management-backend |
| 85 | + Scenario: Update connection returns "Connection updated successfully" response |
| 86 | + Given operation "UpdateConnection" enabled |
| 87 | + And new "UpdateConnection" request |
| 88 | + And request contains "entity" parameter from "REPLACE.ME" |
| 89 | + And body with value {"data": {"attributes": {"fields_to_add": [{"description": "Net Promoter Score from customer surveys", "display_name": "NPS Score", "groups": ["Satisfaction", "Metrics"], "id": "nps_score", "source_name": "net_promoter_score", "type": "number"}], "fields_to_delete": ["old_revenue_field"], "fields_to_update": [{"field_id": "lifetime_value", "updated_display_name": "Customer Lifetime Value (`USD`)", "updated_groups": ["Financial", "Metrics"]}]}, "id": "crm-integration", "type": "connection_id"}} |
| 90 | + When the request is sent |
| 91 | + Then the response status is 200 Connection updated successfully |
0 commit comments