# Copyright The OpenTelemetry Authors # SPDX-License-Identifier: Apache-2.0 type: Test spec: id: cart-empty-cart name: 'Cart: empty cart' description: Clean shopping cart trigger: type: grpc grpc: protobufFile: ../../../pb/demo.proto address: ${env:CART_SERVICE_ADDR} method: oteldemo.CartService.EmptyCart request: |- { "userId": "1234" } specs: - name: It emptied the shopping cart with success selector: span[name="oteldemo.CartService/EmptyCart"] assertions: - attr:rpc.grpc.status_code = 0 - name: It sent cleaning message to the database selector: span[tracetest.span.type="database" name="EXPIRE" db.system="redis" db.redis.database_index="0"] assertions: - attr:db.statement = "EXPIRE 1234"