Skip to content

Commit

Permalink
add results test to test_executors
Browse files Browse the repository at this point in the history
  • Loading branch information
seanharrison committed Sep 11, 2020
1 parent d3e3bc2 commit 424da34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions postq/tests/test_executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ async def test_shell_executor():
{'task': {'name': 'a'}, 'result': {'status': 'error'}},
# Task with cmd that works
{
'task': {'name': 'a', 'params': {'command': 'ls'}},
'result': {'status': 'success'},
'task': {'name': 'a', 'params': {'command': 'echo hi'}},
'result': {'status': 'success', 'results': 'hi\n'},
},
# Task with cmd that errors
{
Expand Down Expand Up @@ -77,9 +77,9 @@ async def test_docker_executor():
{
'task': {
'name': 'a',
'params': {'command': 'ls', 'image': 'debian:buster-slim'},
'params': {'command': 'echo hi', 'image': 'debian:buster-slim'},
},
'result': {'status': 'success'},
'result': {'status': 'success', 'results': 'hi\r\n'},
},
# Task with cmd that errors (exit 1 creates an error condition)
{
Expand Down

0 comments on commit 424da34

Please sign in to comment.