ara icon indicating copy to clipboard operation
ara copied to clipboard

Support for ansible-test command

Open deepakjoshishri opened this issue 3 years ago • 3 comments

This repo is awesome for getting nice visual reports for ansible-playbook runs. Loved it!!!

Here is the request:

Ansible supports testing of modules/playbooks through ansible-test command.

Here we can go ahead and run integration tests, which in turn call the playbooks itself, As this is a reporting project for ansible, and works for ansible-playbook command, can we take a look at adding support for ansible-test integration and ansible-test network-integration commands?

or if there is any other way through which I can already achieve reports for ansible-test integration and network-integration command, please guide me.

deepakjoshishri avatar Aug 21 '20 05:08 deepakjoshishri

Hey @deepakjoshishri and thanks for the issue.

This repo is awesome for getting nice visual reports for ansible-playbook runs. Loved it!!!

That's great, thanks :)

Here is the request:

Ansible supports testing of modules/playbooks through ansible-test command.

Here we can go ahead and run integration tests, which in turn call the playbooks itself, As this is a reporting project for ansible, and works for ansible-playbook command, can we take a look at adding support for ansible-test integration and ansible-test network-integration commands?

or if there is any other way through which I can already achieve reports for ansible-test integration and network-integration command, please guide me.

What kind of integration are you looking for ? I did some tests a while back with this PR, maybe it could send you in the right direction ?

I'm not sure if anything is required from ara as it's really just about enabling the callback.

dmsimard avatar Aug 21 '20 11:08 dmsimard

@deepakjoshishri, would you like to reply to my previous comment ? Thanks.

dmsimard avatar Aug 27 '20 11:08 dmsimard

Hey @deepakjoshishri and thanks for the issue.

This repo is awesome for getting nice visual reports for ansible-playbook runs. Loved it!!!

That's great, thanks :)

Here is the request:

Ansible supports testing of modules/playbooks through ansible-test command. Here we can go ahead and run integration tests, which in turn call the playbooks itself, As this is a reporting project for ansible, and works for ansible-playbook command, can we take a look at adding support for ansible-test integration and ansible-test network-integration commands? or if there is any other way through which I can already achieve reports for ansible-test integration and network-integration command, please guide me.

What kind of integration are you looking for ? I did some tests a while back with this PR, maybe it could send you in the right direction ?

I'm not sure if anything is required from ara as it's really just about enabling the callback.

@dmsimard what i am looking at is, having a report generated for integration tests by "ansible-test network-integration" command, to be more clear in the use case we are looking:

we get internal builds for the development of ansible modules, its a collection, and to test this we use ansible-test command for unit, sanity, integration, network-integration commands.

network-integration runs on all targets specified under the targets folder, each of the target internally by ansible-test is invoked by something like: "ansible-playbook target_playbook.yml -i inventory". i want all the details of ansible-test command under a single report.

Is this possible by ARA? if yes, can you guide? if not, do you know of any alternative tools to do this? ( Sorry this may not be the proper forum or place to ask) but as this has already been opened, continuing it here.

Thanks for active replies :)

deepakjoshishri avatar Sep 08 '20 05:09 deepakjoshishri