This file is indexed.

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

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

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

    - name: create resource
      POST: /v1/resource/generic
      data:
        id: foobar
      status: 201

    - name: create metric with a resource id
      POST: /v1/metric
      data:
        resource_id: foobar
        archive_policy_name: medium
        name: cpu
      status: 201
      response_json_paths:
          $.archive_policy_name: medium
          $.resource_id: 2fbfbb20-8d56-5e1e-afb9-b3007da11fdf
          $.creator: foobar
          $.name: cpu

    - name: create metric with a resource id and an already existing name
      POST: /v1/metric
      data:
        resource_id: foobar
        archive_policy_name: medium
        name: cpu
      status: 400
      response_json_paths:
          $.description.cause: Named metric already exists
          $.description.detail: cpu

    - name: create metric with a resource id but no name
      POST: /v1/metric
      data:
        resource_id: foobar
        archive_policy_name: medium
      status: 400
      response_json_paths:
          $.description.cause: Attribute value error
          $.description.detail: name
          $.description.reason: Name cannot be null if resource_id is not null