diff options
| author | GomathiselviS <gomathiselvi@gmail.com> | 2022-04-20 23:56:19 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 03:56:19 +0000 | 
| commit | 3677b7834a8cb735db9b7004563e74bc1ca74961 (patch) | |
| tree | 4c5017646e608c3d751c487606571d4cc3ae9b71 /tests | |
| parent | 507955aeda83492dab7f2d5f9b695f7bd4043e35 (diff) | |
| download | vyos.vyos-3677b7834a8cb735db9b7004563e74bc1ca74961.tar.gz vyos.vyos-3677b7834a8cb735db9b7004563e74bc1ca74961.zip | |
change default subset to min (#252)
vyos_facts: change default subset to min
Signed-off-by: GomathiselviS gomathiselvi@gmail.com
SUMMARY
Fixes #231
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION
Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml b/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml index ede7ca2d..a7c3a11d 100644 --- a/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml +++ b/tests/integration/targets/vyos_facts/tests/cli/basic_facts.yaml @@ -53,3 +53,20 @@        - result.changed == false        - "{{ result['ansible_facts']['available_network_resources'] | symmetric_difference(result['ansible_facts']['ansible_net_gather_network_resources']) |length\            \ == 0 }}" + +- name: test getting default facts +  register: result +  vyos.vyos.vyos_facts: + +- assert: +    that: +      - result.changed == false +      - "'default' in result.ansible_facts.ansible_net_gather_subset" +      - "'config' not in result.ansible_facts.ansible_net_gather_subset" +      - result.ansible_facts.ansible_net_hostname is defined +      - result.ansible_facts.ansible_net_model is defined +      - result.ansible_facts.ansible_net_python_version is defined +      - result.ansible_facts.ansible_net_serialnum is defined +      - result.ansible_facts.ansible_net_system is defined +      - result.ansible_facts.ansible_net_version is defined +      - result.ansible_facts.ansible_network_resources == {} | 
