Make module prefer interval (if set) over min/max

Fix linting issues for True vs true

Fix up unit test related errors
This commit is contained in:
John Westcott IV
2020-03-26 10:57:32 -04:00
committed by beeankha
parent b9b62e3771
commit 914ea54925
3 changed files with 26 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ def test_job_wait_successful(run_module, admin_user):
assert result.pop('started', '')[:10] == str(job.started)[:10]
assert result == {
"status": "successful",
"success": True,
"changed": False,
"elapsed": str(job.elapsed),
"id": job.id
}
@@ -36,10 +36,10 @@ def test_job_wait_failed(run_module, admin_user):
assert result == {
"status": "failed",
"failed": True,
"success": False,
"changed": False,
"elapsed": str(job.elapsed),
"id": job.id,
"msg": "Job with id=1 failed, error: Job failed."
"msg": "Job with id 1 failed"
}
@@ -50,7 +50,6 @@ def test_job_wait_not_found(run_module, admin_user):
), admin_user)
result.pop('invocation', None)
assert result == {
"changed": False,
"failed": True,
"msg": "Unable to wait, no job_id 42 found: The requested object could not be found."
"msg": "Unable to wait on job 42; that ID does not exist in Tower."
}