Use summary field for sending task summary
Currently Astute uses 'custom' field for sending task summary and it's wrong, because Nailgun searching for 'summary' field. Change-Id: Ieb01161d92f82768cbc5057b5dbb501fcf53a74f
This commit is contained in:
parent
1871fc7965
commit
aca2bf3cd1
|
@ -62,7 +62,7 @@ module Astute
|
|||
node_status.merge!(
|
||||
'deployment_graph_task_name' => task.name,
|
||||
'task_status' => task.status.to_s,
|
||||
'custom' => @task_engine.summary
|
||||
'summary' => @task_engine.summary
|
||||
) if task
|
||||
|
||||
node_status.merge!(
|
||||
|
|
|
@ -99,7 +99,7 @@ describe Astute::TaskNode do
|
|||
'progress' => 0,
|
||||
'deployment_graph_task_name' => 'openstack-haproxy-mysqld',
|
||||
'task_status' => 'running',
|
||||
'custom' => {}
|
||||
'summary' => {}
|
||||
}])
|
||||
task_node.run(task)
|
||||
end
|
||||
|
@ -325,7 +325,7 @@ describe Astute::TaskNode do
|
|||
'uid' => 'node_id',
|
||||
'status' => 'ready',
|
||||
'deployment_graph_task_name' => task.name,
|
||||
'custom' => {},
|
||||
'summary' => {},
|
||||
'task_status' => 'successful',
|
||||
'progress' => 100}]
|
||||
})
|
||||
|
@ -354,7 +354,7 @@ describe Astute::TaskNode do
|
|||
'uid' => 'node_id',
|
||||
'deployment_graph_task_name' => task.name,
|
||||
'status' => 'ready',
|
||||
'custom' => {},
|
||||
'summary' => {},
|
||||
'task_status' => 'skipped',
|
||||
'progress' => 100}]
|
||||
})
|
||||
|
@ -372,7 +372,7 @@ describe Astute::TaskNode do
|
|||
'nodes' => [{
|
||||
'uid' => 'node_id',
|
||||
'deployment_graph_task_name' => task.name,
|
||||
'custom' => {},
|
||||
'summary' => {},
|
||||
'task_status' => 'skipped',
|
||||
'progress' => 50}]
|
||||
})
|
||||
|
@ -394,7 +394,7 @@ describe Astute::TaskNode do
|
|||
'uid' => 'node_id',
|
||||
'status' => 'error',
|
||||
'deployment_graph_task_name' => task.name,
|
||||
'custom' => {},
|
||||
'summary' => {},
|
||||
'task_status' => 'failed',
|
||||
'error_type' => 'deploy',
|
||||
'error_msg' => "Task #{task.name} failed on node node_id",
|
||||
|
@ -414,7 +414,7 @@ describe Astute::TaskNode do
|
|||
'nodes' => [{
|
||||
'uid' => 'node_id',
|
||||
'deployment_graph_task_name' => task.name,
|
||||
'custom' => {},
|
||||
'summary' => {},
|
||||
'task_status' => 'successful',
|
||||
'progress' => 50}]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue