2013-04-17 10:37:50 |
Sergey Lukjanov |
description |
Pre-conditions:
log in and obtain token
Steps to reproduce:
create cluster without value of node param
Expected result:
HTTP return status is 400
Actual result:
HTTP return status is 500
for example:
request
POST http://url/v0.2/token/node-templates
body: {
"node_template": {
"name": "custom-user-template",
"node_type": "TT+DN",
"flavor_id": "m1.medium",
"task_tracker":
{ "heap_size": 384, "max_map_tasks": 3, "max_reduce_tasks": 1, "task_heap_size": 640 }
,
"data_node":
{ "heap_size": "" }
}
responce
{ "error_message": "Template 'custom-user-template', value missed for required param: data_node heap_size", "error": 500 } |
Invalid response returned when creating node template without value of required node process param.
Expected result:
HTTP return status is 400
and specific error message/code
Actual result:
HTTP return status is 500
## request
POST http://url/v0.2/token/node-templates
body: {
"node_template": {
"name": "custom-user-template",
"node_type": "TT+DN",
"flavor_id": "m1.medium",
"task_tracker": {
"heap_size": 384,
"max_map_tasks": 3,
"max_reduce_tasks": 1,
"task_heap_size": 640
},
"data_node": {
"heap_size": ""
}
}
}
actual response:
{ "error_message": "Template 'custom-user-template', value missed for required param: data_node heap_size", "error": 500 } |
|