[PR #5926/810f3b50 backport][stable-6] Add enabled parameter to flatpak_remote (#6095)

Add `enabled` parameter to `flatpak_remote` (#5926)

(cherry picked from commit 810f3b50fc)

Co-authored-by: Yannick Ihmels <yannick@ihmels.org>
This commit is contained in:
patchback[bot] 2023-02-25 23:16:07 +01:00 committed by GitHub
commit bc64c4035e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 226 additions and 1 deletions

View file

@ -48,6 +48,64 @@
msg: "Trying to update the URL of an existing flatpak remote shall not do anything"
# enabled=false
- name: Test deactivation - {{ method }}
flatpak_remote:
name: flatpak-test
enabled: false
method: "{{ method }}"
register: deactivation_result
- name: Verify deactivation test result - {{ method }}
assert:
that:
- deactivation_result is changed
msg: "enable=false shall disable flatpak remote when enabled"
- name: Test idempotency of deactivation - {{ method }}
flatpak_remote:
name: flatpak-test
enabled: false
method: "{{ method }}"
register: double_deactivation_result
- name: Verify idempotency of deactivation test result - {{ method }}
assert:
that:
- double_deactivation_result is not changed
msg: "enabled=false shall not do anything when flatpak remote is already disabled"
# enabled=false
- name: Test activation - {{ method }}
flatpak_remote:
name: flatpak-test
enabled: true
method: "{{ method }}"
register: activation_result
- name: Verify activation test result - {{ method }}
assert:
that:
- activation_result is changed
msg: "enable=true shall enable flatpak remote when disabled"
- name: Test idempotency of activation - {{ method }}
flatpak_remote:
name: flatpak-test
enabled: true
method: "{{ method }}"
register: double_activation_result
- name: Verify idempotency of activation test result - {{ method }}
assert:
that:
- double_activation_result is not changed
msg: "enabled=true shall not do anything when flatpak remote is already enabled"
# state=absent
- name: Test removal - {{ method }}