mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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>
This commit is contained in:
parent
62138b288a
commit
45c2e0f8d0
2 changed files with 23 additions and 27 deletions
|
@ -13,10 +13,9 @@
|
||||||
block:
|
block:
|
||||||
- name: Include test
|
- name: Include test
|
||||||
ansible.builtin.include_tasks: test.yml
|
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
|
||||||
# - name: Include test_channel
|
ansible.builtin.include_tasks: test_channel.yml
|
||||||
# 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
|
||||||
# TODO: Find bettter package to download and install from sources - cider 1.6.0 takes over 35 seconds to install
|
|
||||||
# - name: Include test_dangerous
|
# - name: Include test_dangerous
|
||||||
# ansible.builtin.include_tasks: test_dangerous.yml
|
# ansible.builtin.include_tasks: test_dangerous.yml
|
||||||
- name: Include test_3dash
|
- name: Include test_3dash
|
||||||
|
|
|
@ -5,47 +5,44 @@
|
||||||
|
|
||||||
# NOTE This is currently disabled for performance reasons!
|
# 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:
|
community.general.snap:
|
||||||
name: microk8s
|
name: wisdom
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# Test for https://github.com/ansible-collections/community.general/issues/1606
|
# Test for https://github.com/ansible-collections/community.general/issues/1606
|
||||||
- name: Install package (microk8s)
|
- name: Install package (wisdom)
|
||||||
community.general.snap:
|
community.general.snap:
|
||||||
name: microk8s
|
name: wisdom
|
||||||
classic: true
|
|
||||||
state: present
|
state: present
|
||||||
register: install_microk8s
|
register: install_wisdom
|
||||||
|
|
||||||
- name: Install package with channel (microk8s)
|
- name: Install package with channel (wisdom)
|
||||||
community.general.snap:
|
community.general.snap:
|
||||||
name: microk8s
|
name: wisdom
|
||||||
classic: true
|
|
||||||
channel: 1.20/stable
|
|
||||||
state: present
|
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:
|
community.general.snap:
|
||||||
name: microk8s
|
name: wisdom
|
||||||
classic: true
|
|
||||||
channel: 1.20/stable
|
|
||||||
state: present
|
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:
|
community.general.snap:
|
||||||
name: microk8s
|
name: wisdom
|
||||||
state: absent
|
state: absent
|
||||||
register: remove_microk8s
|
register: remove_wisdom
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- install_microk8s is changed
|
- install_wisdom is changed
|
||||||
- install_microk8s_chan is changed
|
- install_wisdom_chan is changed
|
||||||
- install_microk8s_chan_again is not changed
|
- install_wisdom_chan_again is not changed
|
||||||
- remove_microk8s is changed
|
- remove_wisdom is changed
|
||||||
|
|
||||||
- name: Install package (shellcheck)
|
- name: Install package (shellcheck)
|
||||||
community.general.snap:
|
community.general.snap:
|
||||||
|
|
Loading…
Reference in a new issue