-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathsupported.yaml
25 lines (24 loc) · 1018 Bytes
/
supported.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_SERVICE_ADDR}
method: oteldemo.CurrencyService.GetSupportedCurrencies
specs:
- name: It has a span called "CurrencyService/GetSupportedCurrencies"
selector: span[tracetest.span.type="rpc" name="CurrencyService/GetSupportedCurrencies"
rpc.system="grpc" rpc.method="GetSupportedCurrencies" rpc.service="oteldemo.CurrencyService"]
assertions:
- attr:name = "CurrencyService/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"