Skip to content

Commit 50f4085

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[placement] cover bad content-length header"
2 parents 571f374 + 6006ccd commit 50f4085

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

nova/tests/functional/api/openstack/placement/gabbits/basic-http.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,14 @@ tests:
194194
content-type: application/json
195195
response_json_paths:
196196
$.errors[0].title: Not Found
197+
198+
- name: bad content length not int
199+
POST: /resource_providers
200+
request_headers:
201+
content-type: application/json
202+
content-length: hi mom
203+
data:
204+
uuid: ce13d7f1-9988-4dfd-8e16-ce071802eb36
205+
status: 400
206+
response_strings:
207+
- content-length header must be an integer

0 commit comments

Comments
 (0)