Skip to content

Commit a0e14cf

Browse files
committed
Fixes #38613 - Adjust to report macro changes
Introduced in theforeman/foreman@1776349
1 parent 3b187f5 commit a0e14cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/unit/job_invocation_report_template_test.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class Jail < Safemode::Jail
2828
describe 'task reporting' do
2929
let(:fake_outputs) do
3030
[
31-
{ 'output_type' => 'stderr', 'output' => "error" },
32-
{ 'output_type' => 'stdout', 'output' => "output" },
33-
{ 'output_type' => 'debug', 'output' => "debug" },
31+
{ 'output_type' => 'stderr', 'output' => "error\n" },
32+
{ 'output_type' => 'stdout', 'output' => "output\n" },
33+
{ 'output_type' => 'debug', 'output' => "debug\n" },
3434
]
3535
end
3636
let(:fake_task) { FakeTask.new(result: 'success', action_continuous_output: fake_outputs, :ended_at => Time.new(2020, 12, 1, 0, 0, 0).utc) }
@@ -50,9 +50,9 @@ class Jail < Safemode::Jail
5050
row = rows.first
5151
assert_equal host.name, row['Host']
5252
assert_equal 'success', row['Result']
53-
assert_equal 'error', row['stderr']
54-
assert_equal 'output', row['stdout']
55-
assert_equal 'debug', row['debug']
53+
assert_equal "error\n", row['stderr']
54+
assert_equal "output\n", row['stdout']
55+
assert_equal "debug\n", row['debug']
5656
assert_kind_of Time, Time.zone.parse(row['Finished']), 'Parsing of time column failed'
5757
end
5858
end

0 commit comments

Comments
 (0)