Skip to content

Commit

Permalink
Add check for failure with locked inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
LegenJCdary authored and cinek810 committed Feb 4, 2022
1 parent adf83b3 commit f5f4148
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/02-checkrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ check_output_fail 'ansible-deploy run -t task_exec_bin_true -s prod_ERR -i testI

# misc
check_output_fail 'ansible-deploy run -t task_empty -s testing -i testInfra' '\[ERROR\]: No playbooks found for requested task'

#Artificially generate lock
check_run_ok "ansible-deploy lock -s locked -i testInfra"
check_output_fail 'ansible-deploy run -t task_exec_bin_true -s locked -i testInfra' "is using this infrastructure, please try again later."

0 comments on commit f5f4148

Please # to comment.