Implement cap_add and cap_drop handling for docker_swarm_service (#294)

* Implement `cap_add` and `cap_drop` handling for `docker_swarm_service`

* Fix typos in changelog fragment

* Add missing `version_added` docstrings to `docker_swarm_service`

* Check api version too in `docker_swarm_service` capability tests

* Fix API version checking in tests for docker_swarm_service

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add `cap_add` and `cap_drop` to sample output for `docker_swarm_service`

* Use proper diff checking for `docker_swarm_service` capabilities

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
András Maróy
2022-02-12 07:30:44 +00:00
committed by GitHub
parent 1d062dad5c
commit 3ad49824db
4 changed files with 119 additions and 0 deletions
@@ -2,6 +2,8 @@
service_expected_output:
args: [sleep, '1800']
cap_add: null
cap_drop: null
configs: null
constraints: null
container_labels: null