mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Update expected log in the specs
This commit is contained in:
parent
cb6f77f858
commit
5d63aea08e
2 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ describe DryRunnable do
|
|||
[@agent.memory, counts]
|
||||
}
|
||||
|
||||
expect(results[:log]).to match(/\AE, .+ ERROR -- : Exception during dry-run. SandboxedAgent does not support dry-run: /)
|
||||
expect(results[:log]).to match(/\A\[\d\d:\d\d:\d\d\] INFO -- : Dry Run failed\n\[\d\d:\d\d:\d\d\] ERROR -- : Exception during dry-run. SandboxedAgent does not support dry-run: /)
|
||||
expect(results[:events]).to eq([])
|
||||
expect(results[:memory]).to eq({})
|
||||
end
|
||||
|
@ -86,7 +86,7 @@ describe DryRunnable do
|
|||
[@agent.memory, counts]
|
||||
}
|
||||
|
||||
expect(results[:log]).to match(/\AI, .+ INFO -- : Logging\nE, .+ ERROR -- : Recording error\n/)
|
||||
expect(results[:log]).to match(/\A\[\d\d:\d\d:\d\d\] INFO -- : Dry Run started\n\[\d\d:\d\d:\d\d\] INFO -- : Logging\n\[\d\d:\d\d:\d\d\] ERROR -- : Recording error\n/)
|
||||
expect(results[:events]).to eq([{ 'test' => 'foo' }, { 'test' => 'bar' }])
|
||||
expect(results[:memory]).to eq({ 'last_status' => 'ok', 'dry_run' => true })
|
||||
end
|
||||
|
@ -101,7 +101,7 @@ describe DryRunnable do
|
|||
[@agent.memory, counts]
|
||||
}
|
||||
|
||||
expect(results[:log]).to match(/\AI, .+ INFO -- : Logging\nE, .+ ERROR -- : Recording error\n/)
|
||||
expect(results[:log]).to match(/\A\[\d\d:\d\d:\d\d\] INFO -- : Dry Run started\n\[\d\d:\d\d:\d\d\] INFO -- : Logging\n\[\d\d:\d\d:\d\d\] ERROR -- : Recording error\n/)
|
||||
expect(results[:events]).to eq([{ 'test' => 'superfoo' }, { 'test' => 'superbar' }])
|
||||
expect(results[:memory]).to eq({ 'last_status' => 'ok', 'dry_run' => true })
|
||||
end
|
||||
|
|
|
@ -406,7 +406,7 @@ describe AgentsController do
|
|||
[users(:bob).agents.count, users(:bob).events.count, users(:bob).logs.count, agent.name, agent.updated_at]
|
||||
}
|
||||
json = JSON.parse(response.body)
|
||||
expect(json['log']).to match(/^I, .* : Fetching #{Regexp.quote(url_from_event)}$/)
|
||||
expect(json['log']).to match(/^\[\d\d:\d\d:\d\d\] INFO -- : Fetching #{Regexp.quote(url_from_event)}$/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue