This file is indexed.

/usr/lib/python3/dist-packages/gnocchi/tests/functional/gabbits/async.yaml is in python3-gnocchi 4.2.0-0ubuntu5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Test async processing of measures.
#

fixtures:
    - ConfigFixture

defaults:
  request_headers:
    # User foobar
    authorization: "basic Zm9vYmFyOg=="
    content-type: application/json

tests:

    - name: create archive policy
      POST: /v1/archive_policy
      request_headers:
          # User admin
          authorization: "basic YWRtaW46"
      data:
          name: moderate
          definition:
              - granularity: 1 second
      status: 201

    - name: make a generic resource
      POST: /v1/resource/generic
      data:
          id: 41937416-1644-497d-a0ed-b43d55a2b0ea
          started_at: "2015-06-06T02:02:02.000000"
          metrics:
              some.counter:
                  archive_policy_name: moderate
      status: 201

    - name: confirm no metrics yet
      GET: /v1/resource/generic/41937416-1644-497d-a0ed-b43d55a2b0ea/metric/some.counter/measures
      response_json_paths:
          $: []

    - name: post some measures
      POST: /v1/resource/generic/41937416-1644-497d-a0ed-b43d55a2b0ea/metric/some.counter/measures
      data:
          - timestamp: "2015-06-06T14:33:00"
            value: 11
          - timestamp: "2015-06-06T14:35:00"
            value: 12
      status: 202

# This requires a poll as the measures are not immediately
# aggregated.

    - name: get some measures
      GET: /v1/resource/generic/41937416-1644-497d-a0ed-b43d55a2b0ea/metric/some.counter/measures
      poll:
          count: 50
          delay: .1
      response_strings:
          - "2015"
      response_json_paths:
          $[-1][-1]: 12