Skip to content

Commit

Permalink
sit-test-cases: Modify test-info.yml to define all shares
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
  • Loading branch information
anoopcs9 committed Aug 13, 2024
1 parent aa41cdb commit 681a83b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
dest: /root/test-info.yml
vars:
public_interfaces: "{{ (config.be.variant == 'mgr') | ternary(node_network_public_interfaces, ctdb_network_public_interfaces) }}"

Check warning on line 33 in playbooks/ansible/roles/test.sit-test-cases/tasks/prepare/main.yml

View workflow job for this annotation

GitHub Actions / yamllint

33:121 [line-length] line too long (133 > 120 characters)
sharenames: "{{ samba_shares | map(attribute='name') | list }}"

- name: Create a symlink for test-info.yml file
file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ users:
backend: {{ config.be.name }}

shares:
{%- for share in sharenames +%}
{{ share }}-{{ config.be.name }}-{{ config.be.variant }}:
{%- for share in samba_shares +%}
{%- if config.be.methods is defined +%}
{%- for method in config.be.methods +%}
{{ share.name }}-{{ config.be.name }}-{{ config.be.variant}}-{{ method }}:
backend:
name: {{ config.be.name }}
variant: {{ config.be.variant}}
path: {{ config.paths.mount }}/backends/{{ share }}
path: {{ config.paths.mount }}/backends/{{ share.name }}
{%- endfor +%}
{%- else +%}
{{ share.name }}-{{ config.be.name }}-{{ config.be.variant }}:
backend:
name: {{ config.be.name }}
variant: {{ config.be.variant}}
path: {{ config.paths.mount }}/backends/{{ share.name }}
{%- endif +%}
{%- endfor +%}

0 comments on commit 681a83b

Please sign in to comment.