mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +00:00
fix: improve unknown certificate error in load_balancer_service (#570)
##### SUMMARY Closes #563 ##### ISSUE TYPE - Bugfix Pull Request ##### COMPONENT NAME load_balancer_service
This commit is contained in:
parent
d9f49144bc
commit
fe3bfa9020
3 changed files with 28 additions and 10 deletions
|
|
@ -76,6 +76,25 @@
|
|||
- result is failed
|
||||
- 'result.msg == "resource (load_balancer) does not exist: not-existing"'
|
||||
|
||||
- name: Test create with not existing certificate
|
||||
hetzner.hcloud.load_balancer_service:
|
||||
load_balancer: "{{ hcloud_load_balancer_name }}"
|
||||
listen_port: 443
|
||||
destination_port: 80
|
||||
protocol: https
|
||||
http:
|
||||
redirect_http: true
|
||||
certificates:
|
||||
- not-existing
|
||||
state: present
|
||||
ignore_errors: true
|
||||
register: result
|
||||
- name: Verify create with not existing certificate
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is failed
|
||||
- 'result.msg == "resource (certificate) does not exist: not-existing"'
|
||||
|
||||
- name: Test update
|
||||
hetzner.hcloud.load_balancer_service:
|
||||
load_balancer: "{{ hcloud_load_balancer_name }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue