summaryrefslogtreecommitdiff
path: root/test/tracetesting/currency/supported.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/currency/supported.yaml
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'test/tracetesting/currency/supported.yaml')
-rw-r--r--test/tracetesting/currency/supported.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tracetesting/currency/supported.yaml b/test/tracetesting/currency/supported.yaml
new file mode 100644
index 0000000..9959e49
--- /dev/null
+++ b/test/tracetesting/currency/supported.yaml
@@ -0,0 +1,25 @@
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+
+type: Test
+spec:
+ id: currency-supported
+ name: 'Currency: Supported'
+ description: Get all supported currencies
+ trigger:
+ type: grpc
+ grpc:
+ protobufFile: ../../../pb/demo.proto
+ address: ${var:CURRENCY_ADDR}
+ method: oteldemo.CurrencyService.GetSupportedCurrencies
+ specs:
+ - name: It has a span called "Currency/GetSupportedCurrencies"
+ selector: span[tracetest.span.type="rpc" name="Currency/GetSupportedCurrencies"
+ rpc.system="grpc" rpc.method="GetSupportedCurrencies" rpc.service="oteldemo.CurrencyService"]
+ assertions:
+ - attr:name = "Currency/GetSupportedCurrencies"
+ - name: It returns the expected currency codes
+ selector: span[tracetest.span.type="general" name="Tracetest trigger"]
+ assertions:
+ - attr:tracetest.response.body | json_path '$.currencyCodes[0]' = "ZAR"
+ - attr:tracetest.response.body | json_path '$.currencyCodes[32]' = "MYR"