github.com/kubeshop/testkube@v1.17.23/contrib/executor/tracetest/pkg/testing/tracetest-test-script.yaml (about)

     1  type: Test
     2  spec:
     3    id: R5NITR14g
     4    name: Pokeshop - List
     5    description: Get a Pokemon
     6    trigger:
     7      type: http
     8      httpRequest:
     9        url: http://demo-api:8081/pokemon?take=20&skip=0
    10        method: GET
    11        headers:
    12          - key: Content-Type
    13            value: application/json
    14    specs:
    15      - selector: span[tracetest.span.type="http"]
    16        assertions:
    17          - attr:http.method = "GET"
    18      - selector: span[tracetest.span.type="database"]
    19        assertions:
    20          - attr:db.name = "postgres"