inventory-test job should fail upon returning empty inventory
Context
When inventory-test
job is run and it returns an empty list of inventory (example), it should fail the job since it's an indication that something is set incorrectly.
If set up properly, it should return an output with all the inventory that looks like this.
Current behaviour
When ansible-inventory
command returns an empty inventory, the test job succeeds.
Expected behaviour
When ansible-inventory
command returns an empty inventory, the test job should fail.