Skip to content

Commit

Permalink
client.prep: use new format for test-info.yml
Browse files Browse the repository at this point in the history
Use the new test-info.yml file as required by sit-test-cases.

Signed-off-by: Sachin Prabhu <[email protected]>
  • Loading branch information
spuiuk committed May 4, 2024
1 parent 4e4eaa5 commit dc171d1
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions playbooks/ansible/roles/client.prep/templates/test-info.yml.j2
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
public_interfaces:
{{ public_interfaces | to_nice_yaml | indent(2) }}
server: {{ public_interfaces[0] }}

exported_sharenames:
{{ exported_sharenames | to_nice_yaml | indent(2) }}

test_users:
users:
{%- for name in config.accounts +%}
{%- for user_name in config.accounts[name].users +%}
{%- set user = config.accounts[name].users[user_name] +%}
{%- if user.samba +%}
- username: {{ user_name }}
uid: {{ user.uid }}
password: {{ user.password }}
nodes: {{ config.nodes | dict2items | selectattr('value.accounts', 'contains', name) | map(attribute='key') | list }}
{{ user_name }}: {{ user.password }}
{%- endif +%}
{%- endfor +%}
{%- endfor +%}

test_backend: {{ test_backend }}
backend: {{ test_backend }}

shares:
{%- for share in exported_sharenames +%}
{{ share }}:
{%- endfor +%}

0 comments on commit dc171d1

Please sign in to comment.