This file is indexed.

/usr/lib/python2.7/dist-packages/aodh/tests/functional/gabbi/gabbits-live/alarms.yaml is in python-aodh 2.0.0-0ubuntu1.

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
defaults:
    request_headers:
        x-auth-token: $ENVIRON['AODH_SERVICE_TOKEN']

tests:
    - name: list alarms none
      desc: Lists alarms, none yet exist
      url: /v2/alarms
      method: GET
      response_strings:
          - "[]"

    - name: try to PUT an alarm
      desc: what does PUT do
      url: /v2/alarms
      method: PUT
      request_headers:
          content-type: application/json
      data:
          name: added_alarm_defaults2
          type: threshold
          threshold_rule:
              meter_name: ameter
              threshold: 300.0
      status: 405
      response_headers:
          allow: GET, POST

    - name: createAlarm
      desc: Creates an alarm.
      url: /v2/alarms
      method: POST
      request_headers:
          content-type: application/json
      data:
          name: added_alarm_defaults
          type: threshold
          threshold_rule:
              meter_name: ameter
              threshold: 300.0
      status: 201
      response_headers:
          location: /$SCHEME://$NETLOC/v2/alarms/
          content-type: application/json; charset=UTF-8
      response_json_paths:
          $.severity: low
          $.threshold_rule.threshold: 300.0
          $.threshold_rule.comparison_operator: eq

    - name: showAlarm
      desc: Shows information for a specified alarm.
      url: /v2/alarms/$RESPONSE['$.alarm_id']
      method: GET
      response_json_paths:
          $.severity: low
          $.alarm_id: $RESPONSE['$.alarm_id']
          $.threshold_rule.threshold: 300.0
          $.threshold_rule.comparison_operator: eq
      response_headers:
          content-type: application/json; charset=UTF-8

    - name: updateAlarm
      desc: Updates a specified alarm.
      url: /v2/alarms/$RESPONSE['$.alarm_id']
      method: PUT
      request_headers:
          content-type: application/json
      data:
          name: added_alarm_defaults
          type: threshold
          severity: moderate
          threshold_rule:
              meter_name: ameter
              threshold: 200.0
    # TODO(chdent): why do we have a response, why not status: 204?
    # status: 204
      response_json_paths:
          $.threshold_rule.threshold: 200.0
          $.severity: moderate
          $.state: insufficient data

    - name: showAlarmHistory
      desc: Assembles the history for a specified alarm.
      url: /v2/alarms/$RESPONSE['$.alarm_id']/history?q.field=type&q.op=eq&q.value=rule%20change
      method: GET
      response_json_paths:
          $[0].type: rule change

    - name: updateAlarmState
      desc: Sets the state of a specified alarm.
      url: /v2/alarms/$RESPONSE['$[0].alarm_id']/state
      request_headers:
          content-type: application/json
      data: '"alarm"'
      method: PUT
    # TODO(chdent): really? Of what possible use is this?
      response_json_paths:
          $: alarm

    # Get a list of alarms so we can extract an id for the next test
    - name: list alarms for data
      desc: Lists alarms, only one
      url: /v2/alarms
      method: GET
      response_json_paths:
          $[0].name: added_alarm_defaults

    - name: showAlarmState
      desc: Gets the state of a specified alarm.
      url: /v2/alarms/$RESPONSE['$[0].alarm_id']/state
      method: GET
      response_headers:
          content-type: application/json; charset=UTF-8
      response_json_paths:
          $: alarm

    - name: list alarms one
      desc: Lists alarms, only one
      url: /v2/alarms
      method: GET
      response_json_paths:
          $[0].name: added_alarm_defaults

    - name: deleteAlarm
      desc: Deletes a specified alarm.
      url: /v2/alarms/$RESPONSE['$[0].alarm_id']
      method: DELETE
      status: 204

    - name: list alarms none end
      desc: Lists alarms, none now exist
      url: /v2/alarms
      method: GET
      response_strings:
          - "[]"