@@ -11,25 +11,63 @@ Feature: Product Analytics
1111 Background :
1212 Given a valid "apiKeyAuth" key in the system
1313 And an instance of "ProductAnalytics" API
14- And new "SubmitProductAnalyticsEvent" request
15- And body with value {"account" : {"id" : "account-67890" }, "application" : {"id" : "123abcde-123a-123b-1234-123456789abc" }, "event" : {"name" : "payment.processed" }, "session" : {"id" : "session-abcdef" }, "type" : "server" , "usr" : {"id" : "user-12345" }}
14+
15+ @generated @skip @team:DataDog/product-analytics-backend
16+ Scenario : Compute scalar analytics returns "Bad Request" response
17+ Given a valid "appKeyAuth" key in the system
18+ And new "QueryProductAnalyticsScalar" request
19+ And body with value {"data" : {"attributes" : {"from" : 1771232048460, "query" : {"compute" : {"aggregation" : "count" }, "query" : {"data_source" : "product_analytics" , "search" : {"query" : "@type:view" }}}, "to" : 1771836848262}, "type" : "formula_analytics_extended_request" }}
20+ When the request is sent
21+ Then the response status is 400 Bad Request
22+
23+ @generated @skip @team:DataDog/product-analytics-backend
24+ Scenario : Compute scalar analytics returns "OK" response
25+ Given a valid "appKeyAuth" key in the system
26+ And new "QueryProductAnalyticsScalar" request
27+ And body with value {"data" : {"attributes" : {"from" : 1771232048460, "query" : {"compute" : {"aggregation" : "count" }, "query" : {"data_source" : "product_analytics" , "search" : {"query" : "@type:view" }}}, "to" : 1771836848262}, "type" : "formula_analytics_extended_request" }}
28+ When the request is sent
29+ Then the response status is 200 OK
30+
31+ @generated @skip @team:DataDog/product-analytics-backend
32+ Scenario : Compute timeseries analytics returns "Bad Request" response
33+ Given a valid "appKeyAuth" key in the system
34+ And new "QueryProductAnalyticsTimeseries" request
35+ And body with value {"data" : {"attributes" : {"from" : 1771232048460, "query" : {"compute" : {"aggregation" : "count" }, "query" : {"data_source" : "product_analytics" , "search" : {"query" : "@type:view" }}}, "to" : 1771836848262}, "type" : "formula_analytics_extended_request" }}
36+ When the request is sent
37+ Then the response status is 400 Bad Request
38+
39+ @generated @skip @team:DataDog/product-analytics-backend
40+ Scenario : Compute timeseries analytics returns "OK" response
41+ Given a valid "appKeyAuth" key in the system
42+ And new "QueryProductAnalyticsTimeseries" request
43+ And body with value {"data" : {"attributes" : {"from" : 1771232048460, "query" : {"compute" : {"aggregation" : "count" }, "query" : {"data_source" : "product_analytics" , "search" : {"query" : "@type:view" }}}, "to" : 1771836848262}, "type" : "formula_analytics_extended_request" }}
44+ When the request is sent
45+ Then the response status is 200 OK
1646
1747 @generated @skip @team:DataDog/product-analytics-backend
1848 Scenario : Send server-side events returns "Bad Request" response
49+ Given new "SubmitProductAnalyticsEvent" request
50+ And body with value {"account" : {"id" : "account-67890" }, "application" : {"id" : "123abcde-123a-123b-1234-123456789abc" }, "event" : {"name" : "payment.processed" }, "session" : {"id" : "session-abcdef" }, "type" : "server" , "usr" : {"id" : "user-12345" }}
1951 When the request is sent
2052 Then the response status is 400 Bad Request
2153
2254 @generated @skip @team:DataDog/product-analytics-backend
2355 Scenario : Send server-side events returns "Payload Too Large" response
56+ Given new "SubmitProductAnalyticsEvent" request
57+ And body with value {"account" : {"id" : "account-67890" }, "application" : {"id" : "123abcde-123a-123b-1234-123456789abc" }, "event" : {"name" : "payment.processed" }, "session" : {"id" : "session-abcdef" }, "type" : "server" , "usr" : {"id" : "user-12345" }}
2458 When the request is sent
2559 Then the response status is 413 Payload Too Large
2660
2761 @generated @skip @team:DataDog/product-analytics-backend
2862 Scenario : Send server-side events returns "Request Timeout" response
63+ Given new "SubmitProductAnalyticsEvent" request
64+ And body with value {"account" : {"id" : "account-67890" }, "application" : {"id" : "123abcde-123a-123b-1234-123456789abc" }, "event" : {"name" : "payment.processed" }, "session" : {"id" : "session-abcdef" }, "type" : "server" , "usr" : {"id" : "user-12345" }}
2965 When the request is sent
3066 Then the response status is 408 Request Timeout
3167
3268 @generated @skip @team:DataDog/product-analytics-backend
3369 Scenario : Send server-side events returns "Request accepted for processing (always 202 empty JSON)." response
70+ Given new "SubmitProductAnalyticsEvent" request
71+ And body with value {"account" : {"id" : "account-67890" }, "application" : {"id" : "123abcde-123a-123b-1234-123456789abc" }, "event" : {"name" : "payment.processed" }, "session" : {"id" : "session-abcdef" }, "type" : "server" , "usr" : {"id" : "user-12345" }}
3472 When the request is sent
3573 Then the response status is 202 Request accepted for processing (always 202 empty JSON).
0 commit comments