Currently Standard Test Interface [1] does not specify how the managed hosts should be called in the playbook. Standard Test Roles implement name localhost which is a bit unfortunate as this value is handled in special way by ansible:
localhost
This is causing implementation problems (e.g. for delegate_to when some code needs to be executed on the testing system / control host) plus this is confusing for users (tests will usually be run on a host which is different from the test runner).
delegate_to
[1] https://fedoraproject.org/wiki/CI/Standard_Test_Interface
@pingou @stefw hi, does anybody of you remember why this choice was made in the standard?
@pingou, @stefw, any hint here?
I think we imagined that we would use an Ansible group of hosts called "subjects" to refer to the host/container to test on. The fact that it's also "localhost" was just meant to be an ease of use thing. See standard-inventory-qcow2.
Metadata Update from @psss: - Issue tagged with: Standard Test Interface
Login to comment on this ticket.