Debian Codegraph @

ansible_collections/community/hrobot/tests/ee/roles/smoke/tasks/main.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: Check whether ipaddress is present
7 smoke_ipaddress:
8 register: result
9
10 - name: Validate result
11 ansible.builtin.assert:
12 that:
13 - result.msg == 'Everything is ok'
14
15 - name: Check ssh_key module with invalid fingerprint
16 community.hrobot.ssh_key:
17 hetzner_user: foo
18 hetzner_password: bar
19 name: baz
20 state: absent
21 fingerprint: f0:0b
22 ignore_errors: true
23 register: result
24
25 - name: Validate result
26 ansible.builtin.assert:
27 that:
28 - result is failed
29 - "result.msg == 'Fingerprint must consist of 16 8-bit hex numbers: got 2 8-bit hex numbers instead'"