mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add seed parameter to random_mac filter (#51841)
This commit is contained in:
@@ -242,6 +242,12 @@
|
||||
- "'00:00:00:00:00' | random_mac is match('^00:00:00:00:00:[a-f0-9][a-f0-9]$')"
|
||||
- "'00:00:00' | random_mac != '00:00:00' | random_mac"
|
||||
|
||||
- name: Verify random_mac filter with seed
|
||||
assert:
|
||||
that:
|
||||
- "'00:00:00' | random_mac(seed='test') == '00:00:00' | random_mac(seed='test')"
|
||||
- "'00:00:00' | random_mac(seed='test') != '00:00:00' | random_mac(seed='another_test')"
|
||||
|
||||
- name: Verify that union can be chained
|
||||
vars:
|
||||
unions: '{{ [1,2,3]|union([4,5])|union([6,7]) }}'
|
||||
|
||||
Reference in New Issue
Block a user