mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
consul: add support for session TTL (#4996)
Signed-off-by: Wilfried Roset <wilfriedroset@users.noreply.github.com>
This commit is contained in:
parent
aba089369e
commit
d214f49be7
3 changed files with 28 additions and 0 deletions
|
@ -158,3 +158,15 @@
|
|||
that:
|
||||
- search_deleted is skipped # each iteration is skipped
|
||||
- search_deleted is not changed # and then unchanged
|
||||
|
||||
- name: ensure session can be created with a ttl
|
||||
consul_session:
|
||||
state: present
|
||||
name: session-with-ttl
|
||||
ttl: 180 # sec
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result['ttl'] == 180
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue