feat(tests): remove /etc/hosts testing, fix #2
All checks were successful
test / Linting (push) Successful in 9s
test / Molecule tests (default, ubuntu2004) (push) Successful in 50s
test / Molecule tests (default, debian12) (push) Successful in 56s
test / Molecule tests (default, debian11) (push) Successful in 1m8s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m5s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 1m27s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 1m33s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m22s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m9s
All checks were successful
test / Linting (push) Successful in 9s
test / Molecule tests (default, ubuntu2004) (push) Successful in 50s
test / Molecule tests (default, debian12) (push) Successful in 56s
test / Molecule tests (default, debian11) (push) Successful in 1m8s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m5s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 1m27s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 1m33s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m22s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m9s
This commit is contained in:
parent
3c1be4d599
commit
e29f9d93c4
@ -4,21 +4,6 @@
|
||||
gather_facts: true
|
||||
become: true
|
||||
tasks:
|
||||
- name: "Test: file /etc/hosts"
|
||||
block:
|
||||
- name: "Stat file /etc/hosts"
|
||||
ansible.builtin.stat:
|
||||
path: "/etc/hosts"
|
||||
register: stat_etc_hosts
|
||||
|
||||
- name: "Verify file /etc/hosts"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- stat_etc_hosts.stat.exists
|
||||
- stat_etc_hosts.stat.isreg
|
||||
- stat_etc_hosts.stat.pw_name == 'root'
|
||||
- stat_etc_hosts.stat.gr_name == 'root'
|
||||
|
||||
- name: "Test: package vim"
|
||||
block:
|
||||
- name: "Get packages facts"
|
||||
|
@ -4,25 +4,6 @@
|
||||
gather_facts: true
|
||||
become: true
|
||||
tasks:
|
||||
- name: "Test: file /etc/hosts"
|
||||
block:
|
||||
- name: "Stat file /etc/hosts"
|
||||
ansible.builtin.stat:
|
||||
path: "/etc/hosts"
|
||||
register: stat_etc_hosts
|
||||
|
||||
- name: "Verify file /etc/hosts"
|
||||
vars:
|
||||
etc_hosts_group:
|
||||
ubuntu: "adm"
|
||||
debian: "root"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- stat_etc_hosts.stat.exists
|
||||
- stat_etc_hosts.stat.isreg
|
||||
- stat_etc_hosts.stat.pw_name == 'root'
|
||||
- stat_etc_hosts.stat.gr_name == etc_hosts_group[(ansible_distribution|lower)]
|
||||
|
||||
- name: "Test: package vim"
|
||||
block:
|
||||
- name: "Get packages facts"
|
||||
|
@ -4,21 +4,6 @@
|
||||
gather_facts: true
|
||||
become: true
|
||||
tasks:
|
||||
- name: "Test: file /etc/hosts"
|
||||
block:
|
||||
- name: "Stat file /etc/hosts"
|
||||
ansible.builtin.stat:
|
||||
path: "/etc/hosts"
|
||||
register: stat_etc_hosts
|
||||
|
||||
- name: "Verify file /etc/hosts"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- stat_etc_hosts.stat.exists
|
||||
- stat_etc_hosts.stat.isreg
|
||||
- stat_etc_hosts.stat.pw_name == 'root'
|
||||
- stat_etc_hosts.stat.gr_name == 'root'
|
||||
|
||||
- name: "Test: packages mariadb-server, apache2, consul:1.13.1-1"
|
||||
block:
|
||||
- name: "Get packages facts"
|
||||
|
@ -4,25 +4,6 @@
|
||||
gather_facts: true
|
||||
become: true
|
||||
tasks:
|
||||
- name: "Test: file /etc/hosts"
|
||||
block:
|
||||
- name: "Stat file /etc/hosts"
|
||||
ansible.builtin.stat:
|
||||
path: "/etc/hosts"
|
||||
register: stat_etc_hosts
|
||||
|
||||
- name: "Verify file /etc/hosts"
|
||||
vars:
|
||||
etc_hosts_group:
|
||||
ubuntu: "adm"
|
||||
debian: "root"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- stat_etc_hosts.stat.exists
|
||||
- stat_etc_hosts.stat.isreg
|
||||
- stat_etc_hosts.stat.pw_name == 'root'
|
||||
- stat_etc_hosts.stat.gr_name == etc_hosts_group[(ansible_distribution|lower)]
|
||||
|
||||
- name: "Test: packages mariadb-server, apache2, consul:1.13.1-1"
|
||||
block:
|
||||
- name: "Get packages facts"
|
||||
|
Loading…
Reference in New Issue
Block a user