Compare commits

..

21 commits

Author SHA1 Message Date
Adam Miller
9132ffaf81
Merge 9e570ca05e into 05ee6ebc2a 2023-12-06 03:40:35 +00:00
Adam Miller
9e570ca05e going to slowly chip away at sanity tests
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-05 21:40:25 -06:00
Adam Miller
0f51b599fb work around pipefails with bash subshells
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-05 17:12:16 -06:00
Adam Miller
d4c13adb85 progress ....
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-05 16:22:47 -06:00
Adam Miller
d1adc3dbbd fix the mount test
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-05 15:28:23 -06:00
Adam Miller
9300f2ef60 simplifying the mount integration tests
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-05 14:38:12 -06:00
Adam Miller
9a616f3cc0 missed one
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 21:03:19 -06:00
Adam Miller
29b6bc1c93 suse doesn't like the path on getfacl
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 20:47:01 -06:00
Adam Miller
1138e6132a fix intendation mess up
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 17:57:02 -06:00
Adam Miller
8b53cf594e test getfacl PATH'ing
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 17:35:21 -06:00
Adam Miller
7b5f96ab8d delete rogue cmd param
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 17:25:33 -06:00
Adam Miller
16aca83397 helps to invoke the module correctly
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 17:20:23 -06:00
Adam Miller
e7f7a1533a ensure /bin/bash with pipefail as per lint
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 17:10:47 -06:00
Adam Miller
5c35e7e9e3 fix ignore-2.9.txt
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 17:05:21 -06:00
Adam Miller
500104faf0 fix ignore-2.14
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 17:04:17 -06:00
Adam Miller
59de8ce827 fix authorized_key tests
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 16:55:31 -06:00
Adam Miller
a0987f1dc3 see how lint 2.16 vs 2.17 goes ...
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 16:12:45 -06:00
Adam Miller
4905841d2f fix file mode and 2.15 ignore
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 15:57:05 -06:00
Adam Miller
1a2cdc233b make sanity tests happy again
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 14:23:30 -06:00
Adam Miller
b8824370a3 enable lint in AZP
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 12:09:56 -06:00
Adam Miller
280af6e372 refactor to comply with current ansible-lint guidelines
Signed-off-by: Adam Miller <admiller@redhat.com>
2023-12-04 12:08:52 -06:00
6 changed files with 58 additions and 27 deletions

View file

@ -98,6 +98,19 @@ stages:
test: sanity test: sanity
- name: Units - name: Units
test: units test: units
- stage: Sanity_2_9
displayName: Ansible 2.9 sanity
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
nameFormat: "{0}"
testFormat: 2.9/{0}
targets:
- name: Sanity
test: sanity
- name: Units
test: units
## Docker ## Docker
- stage: Docker_devel - stage: Docker_devel
displayName: Docker devel displayName: Docker devel
@ -166,6 +179,26 @@ stages:
test: ubuntu2004 test: ubuntu2004
- name: Ubuntu 22.04 - name: Ubuntu 22.04
test: ubuntu2204 test: ubuntu2204
- stage: Docker_2_9
displayName: Docker 2.9
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
testFormat: 2.9/linux/{0}/1
targets:
- name: CentOS 6
test: centos6
- name: CentOS 7
test: centos7
- name: openSUSE 15 py2
test: opensuse15py2
- name: openSUSE 15 py3
test: opensuse15
- name: Ubuntu 16.04
test: ubuntu1604
- name: Ubuntu 18.04
test: ubuntu1804
## Remote ## Remote
- stage: Remote_devel - stage: Remote_devel
@ -229,12 +262,27 @@ stages:
test: freebsd/13.1 test: freebsd/13.1
- name: FreeBSD 12.4 - name: FreeBSD 12.4
test: freebsd/12.4 test: freebsd/12.4
- stage: Remote_2_9
displayName: Remote 2.9
dependsOn: []
jobs:
- template: templates/matrix.yml
parameters:
testFormat: 2.9/{0}/1
targets:
- name: RHEL 7.9
test: rhel/7.9
- name: RHEL 8.1
test: rhel/8.1
## Finally ## Finally
- stage: Summary - stage: Summary
condition: succeededOrFailed() condition: succeededOrFailed()
dependsOn: dependsOn:
- Sanity_2_9
- Remote_2_9
- Docker_2_9
- Sanity_2_14 - Sanity_2_14
- Remote_2_14 - Remote_2_14
- Docker_2_14 - Docker_2_14

View file

@ -87,6 +87,7 @@ None
- ansible-core 2.16 (stable) - ansible-core 2.16 (stable)
- ansible-core 2.15 (stable) - ansible-core 2.15 (stable)
- ansible-core 2.14 (stable) - ansible-core 2.14 (stable)
- ansible 2.9 (old-stable)
## Roadmap ## Roadmap

View file

@ -1,2 +0,0 @@
major_changes:
- "Dropping support for Ansible 2.9, ansible-core 2.14 will be minimum required version for this release"

View file

@ -177,7 +177,7 @@ class ActionModule(ActionBase):
# Store remote connection type # Store remote connection type
self._remote_transport = self._connection.transport self._remote_transport = self._connection.transport
use_ssh_args = _tmp_args.pop('use_ssh_args', False) use_ssh_args = _tmp_args.pop('use_ssh_args', None)
if use_ssh_args and self._connection.transport == 'ssh': if use_ssh_args and self._connection.transport == 'ssh':
ssh_args = [ ssh_args = [
@ -185,7 +185,7 @@ class ActionModule(ActionBase):
self._connection.get_option('ssh_common_args'), self._connection.get_option('ssh_common_args'),
self._connection.get_option('ssh_extra_args'), self._connection.get_option('ssh_extra_args'),
] ]
_tmp_args['_ssh_args'] = ' '.join([a for a in ssh_args if a]) _tmp_args['ssh_args'] = ' '.join([a for a in ssh_args if a])
# Handle docker connection options # Handle docker connection options
if self._remote_transport in DOCKER: if self._remote_transport in DOCKER:

View file

@ -26,13 +26,13 @@ options:
description: description:
- Path on the source host that will be synchronized to the destination. - Path on the source host that will be synchronized to the destination.
- The path can be absolute or relative. - The path can be absolute or relative.
type: path type: str
required: true required: true
dest: dest:
description: description:
- Path on the destination host that will be synchronized from the source. - Path on the destination host that will be synchronized from the source.
- The path can be absolute or relative. - The path can be absolute or relative.
type: path type: str
required: true required: true
dest_port: dest_port:
description: description:
@ -150,7 +150,7 @@ options:
- Specify additional rsync options by passing in an array. - Specify additional rsync options by passing in an array.
- Note that an empty string in C(rsync_opts) will end up transfer the current working directory. - Note that an empty string in C(rsync_opts) will end up transfer the current working directory.
type: list type: list
default: [] default:
elements: str elements: str
partial: partial:
description: description:
@ -186,23 +186,6 @@ options:
C(ansible_ssh_args), C(ansible_ssh_common_args), and C(ansible_ssh_extra_args). C(ansible_ssh_args), C(ansible_ssh_common_args), and C(ansible_ssh_extra_args).
type: bool type: bool
default: false default: false
_local_rsync_path:
description: Internal use only.
type: path
default: 'rsync'
required: false
_local_rsync_password:
description: Internal use only, never logged.
type: str
required: false
_substitute_controller:
description: Internal use only.
type: bool
default: false
_ssh_args:
description: Internal use only. See C(use_ssh_args) for ssh arg settings.
type: str
required: false
notes: notes:
- rsync must be installed on both the local and remote host. - rsync must be installed on both the local and remote host.
@ -429,8 +412,7 @@ def main():
set_remote_user=dict(type='bool', default=True), set_remote_user=dict(type='bool', default=True),
rsync_timeout=dict(type='int', default=0), rsync_timeout=dict(type='int', default=0),
rsync_opts=dict(type='list', default=[], elements='str'), rsync_opts=dict(type='list', default=[], elements='str'),
_ssh_args=dict(type='str'), ssh_args=dict(type='str'),
use_ssh_args=dict(type='bool', default=False),
ssh_connection_multiplexing=dict(type='bool', default=False), ssh_connection_multiplexing=dict(type='bool', default=False),
partial=dict(type='bool', default=False), partial=dict(type='bool', default=False),
verify_host=dict(type='bool', default=False), verify_host=dict(type='bool', default=False),
@ -472,7 +454,7 @@ def main():
owner = module.params['owner'] owner = module.params['owner']
group = module.params['group'] group = module.params['group']
rsync_opts = module.params['rsync_opts'] rsync_opts = module.params['rsync_opts']
ssh_args = module.params['_ssh_args'] ssh_args = module.params['ssh_args']
ssh_connection_multiplexing = module.params['ssh_connection_multiplexing'] ssh_connection_multiplexing = module.params['ssh_connection_multiplexing']
verify_host = module.params['verify_host'] verify_host = module.params['verify_host']
link_dest = module.params['link_dest'] link_dest = module.params['link_dest']

View file

@ -0,0 +1,2 @@
tests/utils/shippable/check_matrix.py replace-urlopen
tests/utils/shippable/timing.py shebang