Merge "WSME version >=0.7 correctly returns a 405"

This commit is contained in:
Jenkins 2015-06-04 04:26:03 +00:00 committed by Gerrit Code Review
commit 75b007460b
3 changed files with 7 additions and 13 deletions

View File

@ -11,13 +11,7 @@ tests:
response_strings:
- "[]"
# TODO(chdent) because of the way _lookup is used in the
# AlarmsController pecan is unable to correctly create a 405
# when it receives a PUT to /v2/alarms. This is partially
# fixable in Ceilometer by raising an exception in _lookup if
# alarm_id is not present, but no Allow header will be created.
- name: try to PUT an alarm
xfail: true
desc: what does PUT do
url: /v2/alarms
method: PUT

View File

@ -24,18 +24,18 @@ tests:
status: 406
- name: meters list bad method
desc: https://bugs.launchpad.net/ceilometer/+bug/1426476
xfail: true
url: /v2/meters
method: POST
status: 405
response_headers:
allow: GET
- name: try to delete meters
desc: https://bugs.launchpad.net/ceilometer/+bug/1426476
xfail: true
url: /v2/meters
method: DELETE
status: 405 # actual response is 404, at least we can't delete
status: 405
response_headers:
allow: GET
# Generic HTTP health explorations of single meter.

View File

@ -125,11 +125,11 @@ tests:
status: 406
- name: bad method
desc: https://bugs.launchpad.net/ceilometer/+bug/1426476
xfail: true
url: /v2/samples
method: POST
status: 405
response_headers:
allow: GET
# Work with just one sample.