mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07: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
|
- name: ensure zypper ref works
|
||||||
command: zypper -n ref
|
command: zypper -n ref
|
||||||
|
|
||||||
- name: Delete
|
- name: Delete test repo
|
||||||
zypper_repository:
|
zypper_repository:
|
||||||
name: test
|
name: test
|
||||||
state: absent
|
state: absent
|
||||||
register: zypper_result
|
register: zypper_result
|
||||||
|
|
||||||
- name: Add repo
|
- name: Add test repo
|
||||||
zypper_repository:
|
zypper_repository:
|
||||||
name: test
|
name: test
|
||||||
state: present
|
state: present
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
that:
|
that:
|
||||||
- "zypper_result.changed"
|
- "zypper_result.changed"
|
||||||
|
|
||||||
- name: Add repo again
|
- name: Add same repo again
|
||||||
zypper_repository:
|
zypper_repository:
|
||||||
name: test
|
name: test
|
||||||
state: present
|
state: present
|
||||||
|
@ -141,3 +141,14 @@
|
||||||
|
|
||||||
- name: ensure zypper ref still works
|
- name: ensure zypper ref still works
|
||||||
command: zypper -n ref
|
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…
Add table
Add a link
Reference in a new issue