fix: update tests

This commit is contained in:
egarette@silique.fr 2025-12-22 09:57:57 +01:00
parent 88bdce1688
commit aa8b8b9980
11 changed files with 54 additions and 9 deletions

View file

@ -15,5 +15,5 @@ var2:
{% for val in _.var1 %}
{{ val }}
{% endfor %}
description: the value of _.var1
description: the value of "_.var1"
...

View file

@ -0,0 +1,22 @@
%YAML 1.2
---
version: 1.1
var1:
description: the variable
params:
multi_length: 3
default:
- val1
- val2
- val3
var2:
description: the variable
params:
multi_min_length: 1
multi_max_length: 4
default:
- val4
- val5
...

View file

@ -19,5 +19,5 @@ leader:
{% if _.leader == "a" %}
the value of "leader" is "a"
{% endif %}
description: if the value of "leader" is "a"
description: if the value of "_.leader" is "a"
...

View file

@ -25,5 +25,5 @@ var2:
{% if rougail.dyn1 is defined %}
{{ rougail.dyn1.var }}
{% endif %}
description: get the value of rougail.dyn1.var
description: get the value of "rougail.dyn1.var"
...

View file

@ -18,5 +18,5 @@ var2:
default:
jinja: >-
{{ rougail.dyn1.var }}
description: get the value of rougail.dyn1.var
description: get the value of "rougail.dyn1.var"
...

View file

@ -20,5 +20,5 @@ var2:
default:
jinja: >-
{{ _.dynval1.family.var }}
description: the value of var
description: the value of "_.dynval1.family.var"
...

View file

@ -0,0 +1,23 @@
%YAML 1.2
---
version: 1.1
dyn{{ identifier }}:
description: A dynamic famify for {{ identifier }}
dynamic:
- val1
- val2
var: # A dynamic variable for {{ identifier }}
var1:
description: A new variable
disabled:
variable: _.dynval1.var
when: val
var2:
description: A new variable
default:
variable: _.dyn{{ identifier }}.var
...

View file

@ -41,7 +41,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0

View file

@ -43,7 +43,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0

View file

@ -47,7 +47,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0

View file

@ -39,7 +39,7 @@ dyn{{ identifier }}:
default:
jinja: >-
{{ s1 }}-{{ s2 }}
description: join identifier 1 et identifier 2
description: join identifier 1 and identifier 2
params:
s1:
identifier: 0