github.com/go-graphite/carbonapi@v0.17.0/cmd/mockbackend/testcases/bad_requests/bad_requests.yaml (about)

     1  version: "v1"
     2  test:
     3      apps:
     4          - name: "carbonapi"
     5            binary: "./carbonapi"
     6            args:
     7                - "-config"
     8                - "./cmd/mockbackend/carbonapi_singlebackend.yaml"
     9                - "-exact-config"
    10      queries:
    11              - endpoint: "http://127.0.0.1:8081"
    12                delay: 1
    13                type: "GET"
    14                URL: "/render?format=json&target=groupByNode(metric[123], 0, '4')"
    15                expectedResponse:
    16                    httpCode: 400
    17                    contentType: "text/plain; charset=utf-8"
    18  
    19              - endpoint: "http://127.0.0.1:8081"
    20                type: "GET"
    21                URL: "/render?format=json&target=applyByNode(metric[123], 2, 'transform')"
    22                expectedResponse:
    23                    httpCode: 400
    24                    contentType: "text/plain; charset=utf-8"
    25  
    26  listeners:
    27          - address: ":9070"
    28            expressions:
    29                       "metric[123]":
    30                           pathExpression: "metric[123]"
    31                           data:
    32                               - metricName: "metric1"
    33                                 values: [1.0, .NaN, 2.0, 3.0, 4.0, 6.0, 2.0, 3.0, 4.0, 1.0, 2.0, 2.0]
    34                                 step: 1
    35                                 startTime: 3
    36                               - metricName: "metric2"
    37                                 values: [2.0, .NaN, 3.0, .NaN, 5.0, 6.0]
    38                                 step: 2
    39                                 startTime: 2
    40                               - metricName: "metric3"
    41                                 values: [3.0, .NaN, 4.0, 5.0, 6.0, .NaN]
    42                                 step: 1
    43                                 startTime: 5