network/tests/tasks/assert_bond_options.yml
Wen Liang 910ddd20a9 test: Rewrite tests_bond_options.yml in the new testing format
The new testing format is more concise and easier to debug when test
failure happens.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
2024-02-14 20:20:49 -07:00

19 lines
617 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
---
- name: "** TEST check bond settings"
command: cat
/sys/class/net/{{ controller_device }}/bonding/'{{ item.key }}'
register: result
until: "'{{ item.value }}' in result.stdout"
loop: "{{ bond_options_to_assert }}"
changed_when: false
- name: Include the task 'assert_IPv4_present.yml'
include_tasks: assert_IPv4_present.yml
vars:
interface: "{{ controller_device }}"
address: '192.0.2'
- name: Include the task 'assert_IPv6_present.yml'
include_tasks: assert_IPv6_present.yml
vars:
interface: "{{ controller_device }}"
address: '2001'