Felix Fontein
2a0fb7d3ed
Refactor docker_image line extraction code. ( #62 )
2020-12-28 15:16:35 +01:00
Felix Fontein
a11f24c3a9
Fix docker_api connection: do not initialize client too early ( #63 )
...
* Fix docker_api connection: do not initialize client too early
* Make sure connection plugin tests are also run with Ansible 2.9 and 2.10.
2020-12-27 16:13:40 +01:00
Felix Fontein
5eef093e99
Check output of load_image and react upon. ( #55 )
2020-12-27 15:04:38 +01:00
Felix Fontein
1277942a4e
Deprecate current behavior when specifying all with other port mappings. ( #60 )
2020-12-26 18:20:52 +01:00
Felix Fontein
117f132213
docker_image: always push, also when tagging is not necessary ( #53 )
...
* Always push, also when tagging is not necessary.
* Add tests.
* Fix tests.
2020-12-26 18:20:28 +01:00
Felix Fontein
d40c2409d3
docker_image: allow to specify build platform ( #54 )
...
* Allow to specify build platform.
* Add basic tests.
2020-12-25 19:01:37 +01:00
Felix Fontein
5fa53e2eeb
Improve tests: don't install daemon when running inside a container ( #56 )
...
* If running inside a container, only install docker CLI, not docker daemon.
ci_complete
* Fix OpenSUSE.
2020-12-23 13:36:40 +01:00
Felix Fontein
a1a7692e74
Remove Shippable badge.
2020-12-18 17:24:14 +01:00
John R Barker
c549e7a1cd
AZP Coverage support for Ansible 2.9 ( #51 )
...
Pull in latest changes from shippable-migration-tool
ci_complete ci_coverage
2020-12-16 11:42:20 +00:00
Felix Fontein
8bd33b06c4
docker_api connection plugin ( #40 )
...
* Add basic docker_api connection test.
* Split AnsibleDockerClient into module-independent and module-specific part.
* Mention new connection plugin.
* Fix tests.
* Add first version of docker_api connection plugin.
* Linting.
* Fix references.
* Improve connection tests.
* Fix put_file for all Python versions.
* Fix fetch_file.
* Linting.
* Update plugins/connection/docker_api.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
* Move potential common code to module_utils / plugin_utils.
* Move socket_handler to plugin_utils.
* Fix typo.
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-12-15 20:07:55 +00:00
Felix Fontein
ebafa17b02
[WIP] Fix CI ( #50 )
...
* Centralize location of images for runme.sh tests.
* Switch images.
* Fix sanity.
* Fix image names.
* Fix tag chaos.
* One more.
2020-12-15 13:57:38 +01:00
Felix Fontein
fe2d52ff29
Fix AZP tests, add current_container_facts module ( #48 )
...
* Add new facts module for determining whether the module is running inside a container or not.
* Add containers to main network.
* Fix running tests locally with newer docker.
* Simplify setup_openssl to only install cryptography.
* Add alias in network.
* Make sure to upgrade cryptography to something more sensible on Ubuntu 16.04.
* Don't jump through hoops for bridge.
* Try to use other IPv4 nets.
* Improve module docs.
2020-12-13 08:06:16 +00:00
Felix Fontein
4cc4766ddb
Next expected release is 1.1.0.
2020-12-11 21:28:15 +01:00
Felix Fontein
7dd28ecdfe
Release 1.0.1.
2020-12-11 21:27:28 +01:00
Felix Fontein
2bf46c2eb2
Fix docker_image test. ( #47 )
...
ci_complete
2020-12-11 21:12:48 +01:00
Felix Fontein
ab9fb3f604
Prepare 1.0.1 release.
2020-12-11 20:41:04 +01:00
John Barker
04c0b726ea
AZP: Install ansible-test for coverage
2020-12-11 15:35:08 +00:00
John R Barker
4287618d3a
AZP: fedora32 doesn't exist on Ansible 2.9
2020-12-11 13:55:04 +00:00
John R Barker
3955955b37
Remove PATH hack ( #44 )
...
* Remove PATH hack
azure-pipelines-test-container:1.7.1 contains a proper fix for ensuring
PATH contains the location of pip installed binaries so we can remove
the hack.
* Correct RHEL groups
2020-12-11 13:54:14 +00:00
John R Barker
af05acdc3b
README.md: Correct AZP Badge link
2020-12-11 13:19:01 +00:00
John R Barker
3de2cb6982
Correct stage name
2020-12-10 19:28:53 +00:00
John Barker
7e63c3ae4d
Initial Azure Pipelines
2020-12-10 18:08:22 +00:00
Felix Fontein
518e99411a
Fix capabilities validation for device_requests. ( #43 )
2020-12-08 13:31:17 +01:00
Felix Fontein
65ab240e2b
Try to make connection test work with coverage ( #39 )
...
* Try to make connection test work with coverage.
ci_coverage
* Don't run test inside containers.
ci_coverage
* Empty commit to run without coverage.
2020-11-24 17:29:02 +01:00
Felix Fontein
219c6b3a85
Improve and fix tests ( #36 )
...
* Parameterize test images.
* Use different images, similar to ansible/ansible#72698 .
2020-11-23 21:48:46 +01:00
Felix Fontein
1fa2c3b77d
By default, no longer do cleanup of setup_docker. ( #38 )
...
Cleanup means purging the docker daemon. This was necessary when the
docker tests were run as part of ansible/ansible and community.general
CI, but in the community.docker CI the problematic runs are on their
own CI node.
ci_complete
2020-11-22 22:18:48 +01:00
Felix Fontein
c0bd1becea
Add docker connection tests ( #37 )
...
* Add docker connection tests.
* Make it easier to switch image.
2020-11-22 22:03:16 +01:00
Felix Fontein
68952f9d1d
Bump version.
2020-11-17 08:05:31 +01:00
Felix Fontein
517eba3fdd
Release 1.0.0.
2020-11-17 08:05:06 +01:00
Felix Fontein
9b0a3a02eb
Prepare 1.0.0 release.
2020-11-17 07:49:53 +01:00
Felix Fontein
bc0e0c3049
Adjust version_added, re-place tests. ( #34 )
2020-11-15 17:21:50 +01:00
Raghu Siddarth Udiyar
ea8c107625
Add docker build output to task result ( #805 )
...
The build output is only added during failures, but its useful to
have this available during normal task execution as well.
2020-11-15 16:57:05 +01:00
Felix Fontein
18ef0bae0b
Added file I forgot to add to community.general. ( #33 )
2020-11-14 18:14:23 +01:00
Aram Akhavan
22ba76b4e9
Add a warning when ansible_key label is not found on a secret. ( #31 )
...
* add a warning when ansible_label is not found on a secret. addresses #30
* Update changelogs/fragments/31-docker-secret.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-11-09 08:31:55 +01:00
Felix Fontein
e691ad72ab
Remove ignore.txt entries ( #29 )
...
* Remove some ignore.txt entries.
* Prepare for validate-plugins.
2020-11-06 06:18:41 +01:00
Felix Fontein
1156db420d
Add collection-side support for the docker action group. ( #17 )
2020-11-01 17:04:48 +01:00
Felix Fontein
6fba818d87
Bump version number.
2020-10-30 07:18:08 +01:00
Felix Fontein
6b8801e15f
Release 0.1.0.
2020-10-30 07:17:55 +01:00
Felix Fontein
e4415eae28
Add version_added for device_requests.
2020-10-30 07:06:52 +01:00
Felix Fontein
5dba331bc7
Adjust deprecations ( #1 )
...
* First batch of c.g 2.0.0 deprecations.
* Remove use_tls and force from docker_image.
* More removals.
* Change community.general 3.0.0 deprecations to community.docker 2.0.0.
* Fix sanity.
* Fixing some bugs.
* Add PR URL to fragment.
ci_complete
ci_coverage
* Improve docs, remove superfluous code.
2020-10-30 07:05:51 +01:00
Felix Fontein
400c484a54
Remove version_added from community.general, and add changelog fragments since community.general 1.2.0.
2020-10-30 07:05:51 +01:00
Felix Fontein
81948c7470
Prepare release: improve documentation, add release summary ( #3 )
...
* Add release summary for 0.1.0.
* Update README.
2020-10-30 07:05:51 +01:00
Felix Fontein
f4210b31dc
Run unit tests for all Python versions in one CI node. ( #2 )
2020-10-30 07:05:51 +01:00
Felix Fontein
6555a5a0de
Initial cleanup.
2020-10-30 07:05:51 +01:00
John R Barker
42315baa74
Initial commit
2020-10-30 07:05:51 +01:00
Felix Fontein
a8835f5bf5
docker_container: add device_requests option ( #1119 )
...
* docker_container: add device_requests option.
* Fix copy'n'paste mistake.
* Fix failure test.
* Added example.
* Adjust tense.
2020-10-30 07:05:51 +01:00
Felix Fontein
914374b279
Improve docker test setups ( #1161 )
...
* Improve readability.
* Move common code to new file.
2020-10-30 07:05:51 +01:00
Felix Fontein
25e898068a
docker_login: fix internal config file storage to handle credentials for more than one registry ( #1118 )
...
* docker_login: fix internal config file storage to handle credentials for more than one registry
* Improve setup for docker registry.
* Add second registry frontend. Add tests for #1118 .
* Fix cleanup.
2020-10-30 07:05:51 +01:00
Felix Fontein
765f31a673
Run tests with macOS 10.15. ( #971 )
...
* Run tests with macOS 10.15.
* Restrict to macOS CI runs for now until they pass.
* Skip tests on macOS that are skipped on OSX.
* Disable consul test for macOS.
* Disable chroot connection tests for macOS.
* Add setup_gnutar role from https://github.com/ansible/ansible/pull/71841 .
* Use setup_gnutar for yarn and npm tests.
* Revert "Restrict to macOS CI runs for now until they pass."
This reverts commit d945d0399f1727a5fe5942089c74d6662bd2b045.
* hashi_vault lookup tests seem to be always unstable, disabling for now.
* Use homebrew module instead of command.
2020-10-30 07:05:51 +01:00
Felix Fontein
79784d2c82
Improve plugin sanity ( #966 )
...
* callback_type -> type.
* Mark authors as unknown.
* Add author field forgotten in #627 .
* Fix author entries.
* Add author field forgotten in #127 .
* Fix some types.
2020-10-30 07:05:51 +01:00