1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[PR #8237/45c2e0f8 backport][stable-8] use smaller snap, add disabled to aliases (#8284)

use smaller snap, add disabled to aliases (#8237)

* use smaller snap, add disabled to aliases

* rollback tag disabled in aliases

* comment out the test_dangerous as it takes too long

* comment out the test_dangerous as it takes too long

* Update tests/integration/targets/snap/tasks/main.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 45c2e0f8d0)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2024-04-26 21:09:48 +02:00 committed by GitHub
parent 8fea58c51b
commit df38c95524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 27 deletions

View file

@ -13,10 +13,9 @@
block:
- name: Include test
ansible.builtin.include_tasks: test.yml
# TODO: Find better package to install from a channel - microk8s installation takes multiple minutes, and even removal takes one minute!
# - name: Include test_channel
# ansible.builtin.include_tasks: test_channel.yml
# TODO: Find bettter package to download and install from sources - cider 1.6.0 takes over 35 seconds to install
- name: Include test_channel
ansible.builtin.include_tasks: test_channel.yml
# TODO: Find better package to download and install from sources - cider 1.6.0 takes over 35 seconds to install
# - name: Include test_dangerous
# ansible.builtin.include_tasks: test_dangerous.yml
- name: Include test_3dash

View file

@ -5,47 +5,44 @@
# NOTE This is currently disabled for performance reasons!
- name: Make sure package is not installed (microk8s)
- name: Make sure package is not installed (wisdom)
community.general.snap:
name: microk8s
name: wisdom
state: absent
# Test for https://github.com/ansible-collections/community.general/issues/1606
- name: Install package (microk8s)
- name: Install package (wisdom)
community.general.snap:
name: microk8s
classic: true
name: wisdom
state: present
register: install_microk8s
register: install_wisdom
- name: Install package with channel (microk8s)
- name: Install package with channel (wisdom)
community.general.snap:
name: microk8s
classic: true
channel: 1.20/stable
name: wisdom
state: present
register: install_microk8s_chan
channel: latest/edge
register: install_wisdom_chan
- name: Install package with channel (microk8s) again
- name: Install package with channel (wisdom) again
community.general.snap:
name: microk8s
classic: true
channel: 1.20/stable
name: wisdom
state: present
register: install_microk8s_chan_again
channel: latest/edge
register: install_wisdom_chan_again
- name: Remove package (microk8s)
- name: Remove package (wisdom)
community.general.snap:
name: microk8s
name: wisdom
state: absent
register: remove_microk8s
register: remove_wisdom
- assert:
that:
- install_microk8s is changed
- install_microk8s_chan is changed
- install_microk8s_chan_again is not changed
- remove_microk8s is changed
- install_wisdom is changed
- install_wisdom_chan is changed
- install_wisdom_chan_again is not changed
- remove_wisdom is changed
- name: Install package (shellcheck)
community.general.snap: