This file is indexed.

/usr/lib/python3/dist-packages/gnocchi/tests/functional/gabbits/base.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
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
fixtures:
    - ConfigFixture

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

tests:

- name: get information on APIs
  desc: Root URL must return information about API versions
  GET: /
  response_headers:
      content-type: /^application\/json/
  response_json_paths:
      $.versions.[0].id: "v1.0"
      $.versions.[0].status: "CURRENT"

- name: archive policy post success
  POST: /v1/archive_policy
  request_headers:
      # User admin
      authorization: "basic YWRtaW46"
  data:
      name: test1
      definition:
          - granularity: 1 minute
            points: 20
  status: 201
  response_headers:
      content-type: /^application\/json/
      location: $SCHEME://$NETLOC/v1/archive_policy/test1
  response_json_paths:
      $.name: test1
      $.definition.[0].granularity: 0:01:00
      $.definition.[0].points: 20
      $.definition.[0].timespan: 0:20:00

- name: post archive policy no auth
  desc: this confirms that auth handling comes before data validation
  POST: /v1/archive_policy
  data:
      definition:
          - granularity: 1 second
            points: 20
  status: 403

- name: post metric with archive policy
  POST: /v1/metric
  data:
      archive_policy_name: test1
  status: 201
  response_headers:
      content-type: /application\/json/
  response_json_paths:
      $.archive_policy_name: test1

- name: retrieve metric info
  GET: $LOCATION
  status: 200
  response_json_paths:
      $.archive_policy.name: test1
      $.creator: foobar

- name: list the one metric
  GET: /v1/metric
  status: 200
  response_json_paths:
      $[0].archive_policy.name: test1

- name: post a single measure
  desc: post one measure
  POST: /v1/metric/$RESPONSE['$[0].id']/measures
  data:
      - timestamp: "2013-01-01 23:23:20"
        value: 1234.2
  status: 202

- name: Get list of resource type and URL
  desc: Resources index page should return list of type associated with a URL
  GET: /v1/resource/
  response_headers:
      content-type: /^application\/json/
  status: 200
  response_json_paths:
      $.generic: $SCHEME://$NETLOC/v1/resource/generic

- name: post generic resource
  POST: /v1/resource/generic
  data:
    id: 5b7ebe90-4ad2-4c83-ad2c-f6344884ab70
    started_at: "2014-01-03T02:02:02.000000"
    user_id: 0fbb231484614b1a80131fc22f6afc9c
    project_id: f3d41b770cc14f0bb94a1d5be9c0e3ea
  status: 201
  response_headers:
    location: $SCHEME://$NETLOC/v1/resource/generic/5b7ebe90-4ad2-4c83-ad2c-f6344884ab70
  response_json_paths:
    type: generic
    started_at: "2014-01-03T02:02:02+00:00"
    project_id: f3d41b770cc14f0bb94a1d5be9c0e3ea
    creator: foobar

- name: post generic resource bad id
  POST: /v1/resource/generic
  data:
    id: 1.2.3.4
    started_at: "2014-01-03T02:02:02.000000"
    user_id: 0fbb2314-8461-4b1a-8013-1fc22f6afc9c
    project_id: f3d41b77-0cc1-4f0b-b94a-1d5be9c0e3ea
  status: 201
  response_headers:
    location: $SCHEME://$NETLOC/v1/resource/generic/a9c729cc-d1b0-5e6b-b5ba-8b5a7f45f1fc
  response_json_paths:
    type: generic
    started_at: "2014-01-03T02:02:02+00:00"
    project_id: f3d41b77-0cc1-4f0b-b94a-1d5be9c0e3ea
    creator: foobar
    id: a9c729cc-d1b0-5e6b-b5ba-8b5a7f45f1fc
    original_resource_id: 1.2.3.4

- name: get status denied
  GET: /v1/status
  status: 403

- name: get status
  GET: /v1/status
  request_headers:
    # User admin
    authorization: "basic YWRtaW46"
  response_json_paths:
    $.storage.`len`: 2
    $.metricd.`len`: 1

- name: get status, no details
  GET: /v1/status?details=False
  request_headers:
    # User admin
    authorization: "basic YWRtaW46"
  response_json_paths:
    $.storage.`len`: 1
    $.metricd.`len`: 1