Comment 0 for bug 1165008

Revision history for this message
Vadim Rovachev (vrovachev) wrote : create node template without value of node param

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 }