This file is indexed.

/usr/lib/python3/dist-packages/gnocchi/tests/functional/gabbits/metric-granularity.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
fixtures:
    - ConfigFixture

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

tests:
    - name: create archive policy
      desc: for later use
      POST: /v1/archive_policy
      request_headers:
        # User admin
        authorization: "basic YWRtaW46"
      data:
          name: cookies
          definition:
              - granularity: 1 second
      status: 201

    - name: create valid metric
      POST: /v1/metric
      data:
          archive_policy_name: cookies
      status: 201

    - name: push measurements to metric
      POST: /v1/metric/$RESPONSE['$.id']/measures
      data:
          - timestamp: "2015-03-06T14:33:57"
            value: 43.1
          - timestamp: "2015-03-06T14:34:12"
            value: 12
      status: 202

    - name: get metric list
      GET: /v1/metric
      status: 200

    - name: get measurements invalid granularity
      GET: /v1/metric/$RESPONSE['$[0].id']/measures?granularity=42
      status: 404
      response_strings:
        - Aggregation method 'mean' at granularity '42.0' for metric $RESPONSE['$[0].id'] does not exist

    - name: get measurements granularity
      GET: /v1/metric/$HISTORY['get metric list'].$RESPONSE['$[0].id']/measures?granularity=1
      status: 200
      poll:
          count: 50
          delay: .1
      response_json_paths:
          $:
            - ["2015-03-06T14:33:57+00:00", 1.0, 43.1]
            - ["2015-03-06T14:34:12+00:00", 1.0, 12.0]