mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add test for auto_import_keys in zypper_repository (#17898)
* tests the bug found in ansible/ansible-modules-extras#3086
This commit is contained in:
parent
ea46d5548b
commit
e18bc0d6f0
1 changed files with 14 additions and 3 deletions
|
@ -3,13 +3,13 @@
|
|||
- name: ensure zypper ref works
|
||||
command: zypper -n ref
|
||||
|
||||
- name: Delete
|
||||
- name: Delete test repo
|
||||
zypper_repository:
|
||||
name: test
|
||||
state: absent
|
||||
register: zypper_result
|
||||
|
||||
- name: Add repo
|
||||
- name: Add test repo
|
||||
zypper_repository:
|
||||
name: test
|
||||
state: present
|
||||
|
@ -23,7 +23,7 @@
|
|||
that:
|
||||
- "zypper_result.changed"
|
||||
|
||||
- name: Add repo again
|
||||
- name: Add same repo again
|
||||
zypper_repository:
|
||||
name: test
|
||||
state: present
|
||||
|
@ -141,3 +141,14 @@
|
|||
|
||||
- name: ensure zypper ref still works
|
||||
command: zypper -n ref
|
||||
|
||||
- name: "Test adding a repo with custom GPG key"
|
||||
zypper_repository:
|
||||
name: "Apache_Modules"
|
||||
repo: "http://download.opensuse.org/repositories/Apache:/Modules/openSUSE_Tumbleweed/"
|
||||
priority: 100
|
||||
auto_import_keys: true
|
||||
state: "present"
|
||||
|
||||
- name: ensure zypper ref still works
|
||||
command: zypper -n ref
|
||||
|
|
Loading…
Reference in a new issue