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

Snap add test (#7064)

* add test for 3 dashes in description

* remove extraneous comment
This commit is contained in:
Alexei Znamensky 2023-08-05 04:06:57 +12:00 committed by GitHub
parent c7fa11d576
commit 4b17fd4265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View file

@ -17,3 +17,5 @@
ansible.builtin.include_tasks: test_channel.yml
- name: Include test_dangerous
ansible.builtin.include_tasks: test_dangerous.yml
- name: Include test_3dash
ansible.builtin.include_tasks: test_3dash.yml

View file

@ -0,0 +1,31 @@
---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Make sure packages are not installed (3 dashes)
community.general.snap:
name:
- bw
- shellcheck
state: absent
- name: Install package with 3 dashes in description (check)
community.general.snap:
name:
- bw
- shellcheck
state: present
check_mode: true
register: install_3dash_check
- name: Remove packages (3 dashes)
community.general.snap:
name:
- bw
- shellcheck
state: absent
- assert:
that:
- install_3dash_check is changed