summaryrefslogtreecommitdiff
path: root/test/tracetesting/recommendation/list.yaml
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
committerSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
commit82e03978b89938219958032efb1448cc76baa181 (patch)
tree626f3e54d52ecd49be0ed3bee30abacc0453d081 /test/tracetesting/recommendation/list.yaml
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'test/tracetesting/recommendation/list.yaml')
-rw-r--r--test/tracetesting/recommendation/list.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tracetesting/recommendation/list.yaml b/test/tracetesting/recommendation/list.yaml
new file mode 100644
index 0000000..177628e
--- /dev/null
+++ b/test/tracetesting/recommendation/list.yaml
@@ -0,0 +1,25 @@
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+
+type: Test
+spec:
+ id: recommendation-list
+ name: 'Recommendation: List products'
+ description: List all products recommended to an user
+ trigger:
+ type: grpc
+ grpc:
+ protobufFile: ../../../pb/demo.proto
+ address: ${var:RECOMMENDATION_ADDR}
+ method: oteldemo.RecommendationService.ListRecommendations
+ request: |-
+ {
+ "userId": "1234",
+ "productIds": [ "OLJCESPC7Z", "66VCHSJNUP", "1YMWWN1N4O", "L9ECAV7KIM", "2ZYFJ3GM2N" ]
+ }
+ specs:
+ - name: It called ListRecommendations correctly and got 5 products
+ selector: span[tracetest.span.type="rpc" name="/oteldemo.RecommendationService/ListRecommendations" rpc.system="grpc" rpc.method="ListRecommendations" rpc.service="oteldemo.RecommendationService"]
+ assertions:
+ - attr:rpc.grpc.status_code = 0
+ - attr:app.products_recommended.count = 5