mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
consul: Always fail if no service_name was provided. (#25877)
Fixes a subtile bug introduced in PR #21737
This commit is contained in:
committed by
ansibot
parent
754ef34acb
commit
bf73377394
@@ -47,6 +47,17 @@
|
||||
- basic2_result.service_id == 'service2'
|
||||
- basic2_result.service_name == 'Basic Service'
|
||||
|
||||
- name: register service without name
|
||||
consul:
|
||||
service_id: this_will_fail
|
||||
register: noname_result
|
||||
ignore_errors: True
|
||||
|
||||
- name: verify registering service without name fails
|
||||
assert:
|
||||
that:
|
||||
- noname_result | failed
|
||||
|
||||
- name: register very basic service without service_port
|
||||
consul:
|
||||
service_name: Basic Service Without Port
|
||||
|
||||
Reference in New Issue
Block a user