Commit a12b6184 authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Filipa Lacerda

Add a controller test verifying exposure of stages

parent b9c19f6b
......@@ -148,6 +148,12 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
get_show(id: job.id, format: :json)
end
it 'does not serialize builds in exposed stages' do
json_response.dig('pipeline', 'details', 'stages').tap do |stages|
expect(stages.map(&:keys).flatten).to eq %w[name title status path dropdown_path]
end
end
context 'when job failed' do
it 'exposes needed information' do
expect(response).to have_gitlab_http_status(:ok)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment