Skip to content

Commit

Permalink
Integration test fix for ios_user and ios_facts (#1034)
Browse files Browse the repository at this point in the history
* Integration test fix for ios_user

* Remove changelog

* lint fix

* fix lint for changelog fix

* facts integration test fix
  • Loading branch information
roverflow authored Feb 16, 2024
1 parent 4154232 commit 5a7f849
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
ancestor: null
releases:
1.0.0:
Expand Down
1 change: 1 addition & 0 deletions changelogs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
changelog_filename_template: ../CHANGELOG.rst
changelog_filename_version_depth: 0
changes_file: changelog.yaml
Expand Down
7 changes: 6 additions & 1 deletion tests/integration/targets/ios_facts/tests/cli/all_facts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
- result.ansible_facts.ansible_net_memtotal_mb > 1

- ansible.builtin.assert:
that: "{{ item.value.spacetotal_kb }} > {{ item.value.spacefree_kb }}"
that: "{{ my_var.value.spacetotal_kb }} > {{ my_var.value.spacefree_kb }}"
loop: "{{ lookup('dict', result.ansible_facts.ansible_net_filesystems_info, wantlist=True) }}"
loop_control:
loop_var: my_var

- ansible.builtin.set_fact:
supported_network_resources:
Expand All @@ -34,6 +36,9 @@
- lldp_global
- lldp_interfaces
- l3_interfaces
- evpn_global
- evpn_evi
- vxlan_vtep
- logging_global
- acl_interfaces
- static_routes
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/targets/ios_user/tests/cli/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@
name: ansibleuser6
hashed_password:
type: 5
value: $3$8JcDilcYgFZi.yz4ApaqkHG2.8/
value: $1$SpMm$eALjeyED.WSZs0naLNv22/
state: present

- ansible.builtin.assert:
that:
- result.changed == true
- "'username ansibleuser6 password' in result.commands[0]"
- "'username ansibleuser6 secret' in result.commands[0]"

- name: Teardown
become: true
Expand Down

0 comments on commit 5a7f849

Please sign in to comment.