test(roles): run docker and gitea on 26.04 and check become in its smoke scenario
molecule-ubuntu2604 0.1.7 lets become from root through and ships gnupg, so docker and gitea declare resolute like the other Ubuntu roles and the accepted exception goes. The 26.04 image-smoke scenario now checks become and gnupg, so a regression fails the image's own pin pull request. Assisted-by: Claude Code
This commit is contained in:
1 parent
5f936962e0
commit
a6b8bc150d
10 files changed
+73
-28
No files matched your search
@@ -33,6 +33,7 @@
|
||||
- ufw
|
||||
- fail2ban
|
||||
- openssh-server
|
||||
- gnupg
|
||||
|
||||
- name: Query the units a role scenario relies on
|
||||
ansible.builtin.systemd:
|
||||
@@ -56,3 +57,14 @@
|
||||
- name: NET_ADMIN is granted, so the firewall tools can work
|
||||
ansible.builtin.command: iptables -S
|
||||
changed_when: false
|
||||
|
||||
- name: Run a task with become, as the role scenarios do
|
||||
ansible.builtin.command: id -u
|
||||
become: true
|
||||
changed_when: false
|
||||
register: kamino_smoke_become
|
||||
|
||||
- name: Become reaches root
|
||||
ansible.builtin.assert:
|
||||
that: kamino_smoke_become.stdout == '0'
|
||||
quiet: true
|
||||
Reference in new issue
Block a user