mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
4fe08441be
* Warn on tests used as filters * Update docs, add aliases for tests that fit more gramatically with test syntax * Fix rst formatting * Add successful filter, alias of success * Remove renamed_deprecation, it was overkill * Make directory alias for is_dir * Update tests to use proper jinja test syntax * Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax * Add conversion script, porting guide updates, and changelog updates * Update newly added uses of tests as filters * No underscore variable * Convert recent tests as filter changes to win_stat * Fix some changes related to rebasing a few integration tests * Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name * Add test for tests_as_filters_warning * Update tests as filters in newly added/modified tests * Address recent changes to several integration tests * Address recent changes in cs_vpc
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
- name: MISSING-HOSTKEY | checkout ssh://git@github.com repo without accept_hostkey (expected fail)
|
|
git:
|
|
repo: '{{ repo_format2 }}'
|
|
dest: '{{ checkout_dir }}'
|
|
ssh_opts: '-o UserKnownHostsFile={{ output_dir }}/known_hosts'
|
|
register: git_result
|
|
ignore_errors: true
|
|
|
|
- assert:
|
|
that:
|
|
- git_result is failed
|
|
|
|
- name: MISSING-HOSTKEY | checkout git@github.com repo with accept_hostkey (expected pass)
|
|
git:
|
|
repo: '{{ repo_format2 }}'
|
|
dest: '{{ checkout_dir }}'
|
|
accept_hostkey: true
|
|
key_file: '{{ github_ssh_private_key }}'
|
|
ssh_opts: '-o UserKnownHostsFile={{ output_dir }}/known_hosts'
|
|
register: git_result
|
|
when: github_ssh_private_key is defined
|
|
|
|
- assert:
|
|
that:
|
|
- git_result is changed
|
|
when: github_ssh_private_key is defined
|
|
|
|
- name: MISSING-HOSTKEY | clear checkout_dir
|
|
file:
|
|
state: absent
|
|
path: '{{ checkout_dir }}'
|
|
when: github_ssh_private_key is defined
|
|
|
|
- name: MISSING-HOSTKEY | checkout ssh://git@github.com repo with accept_hostkey (expected pass)
|
|
git:
|
|
repo: '{{ repo_format3 }}'
|
|
dest: '{{ checkout_dir }}'
|
|
version: 'master'
|
|
accept_hostkey: false # should already have been accepted
|
|
key_file: '{{ github_ssh_private_key }}'
|
|
ssh_opts: '-o UserKnownHostsFile={{ output_dir }}/known_hosts'
|
|
register: git_result
|
|
when: github_ssh_private_key is defined
|
|
|
|
- assert:
|
|
that:
|
|
- git_result is changed
|
|
when: github_ssh_private_key is defined
|