codekaizen-github / community.docker

Community Docker Collection for Ansible: modules and plugins for working with Docker
https://galaxy.ansible.com/ui/repo/published/community/docker//
GNU General Public License v3.0
0 stars 0 forks source link

Add integration tests for `docker_container_copy_out` #1

Open AndrewJDawes opened 5 days ago

AndrewJDawes commented 5 days ago

Add integration tests for the docker_container_copy_out module from the existing feature/docker_container_copy_out branch.

As a way to get started:

Note: You probably don't need to worry about having ALL integration tests in the repo pass - only the new tests that you create. Some of the other tests may not pass locally - that's OK, we'll check them against a specialized environment using GitHub actions after you push your changes up. ansible-test integration does let you pass the name of a specific test to run. It will expect the name of the folder your test/role lives in - so it should be: ansible-test integration docker_container_copy_out.

There are some other methods mentioned in the Medium article (Locally, SSH) - but you may find it easiest to run the tests using Docker containers as supported by ansible-test.

If you want to do that, I would probably recommend:

Please let me know if you have any questions!

AndrewJDawes commented 5 days ago

@logansauers - let me know if you have any questions on this! I would be happy to help (though, I am not an expert on this either so I will probably be learning with you!).