mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
change testfiles for nxos_file_copy (#35641)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
785e888ea0
commit
dc4a41a4af
2 changed files with 16 additions and 16 deletions
|
@ -7,7 +7,7 @@
|
||||||
nxos_command: &remove_file
|
nxos_command: &remove_file
|
||||||
commands:
|
commands:
|
||||||
- terminal dont-ask
|
- terminal dont-ask
|
||||||
- delete nxos.yaml
|
- delete network-integration.cfg
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "Copy nxos.yaml to bootflash"
|
- name: "Copy network-integration.cfg to bootflash"
|
||||||
nxos_file_copy: ©_file_same_name
|
nxos_file_copy: ©_file_same_name
|
||||||
local_file: "./nxos.yaml"
|
local_file: "./network-integration.cfg"
|
||||||
file_system: "bootflash:"
|
file_system: "bootflash:"
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
username: "{{ ansible_ssh_user }}"
|
username: "{{ ansible_ssh_user }}"
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
that:
|
that:
|
||||||
- "result.changed == true"
|
- "result.changed == true"
|
||||||
|
|
||||||
- name: "Check Idempotence - Copy nxos.yaml to bootflash"
|
- name: "Check Idempotence - Copy network-integration.cfg to bootflash"
|
||||||
nxos_file_copy: *copy_file_same_name
|
nxos_file_copy: *copy_file_same_name
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -45,10 +45,10 @@
|
||||||
nxos_command: *remove_file
|
nxos_command: *remove_file
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: "Copy ios.yaml to bootflash as another name"
|
- name: "Copy inventory.networking.template to bootflash as another name"
|
||||||
nxos_file_copy: ©_file_different_name
|
nxos_file_copy: ©_file_different_name
|
||||||
local_file: "./ios.yaml"
|
local_file: "./inventory.networking.template"
|
||||||
remote_file: "nxos.yaml"
|
remote_file: "network-integration.cfg"
|
||||||
file_system: "bootflash:"
|
file_system: "bootflash:"
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
username: "{{ ansible_ssh_user }}"
|
username: "{{ ansible_ssh_user }}"
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
- assert: *true
|
- assert: *true
|
||||||
|
|
||||||
- name: "Check Idempotence - Copy ios.yaml to bootflash as another name"
|
- name: "Check Idempotence - Copy inventory.networking.template to bootflash as another name"
|
||||||
nxos_file_copy: *copy_file_different_name
|
nxos_file_copy: *copy_file_different_name
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
commands:
|
commands:
|
||||||
- command: terminal dont-ask
|
- command: terminal dont-ask
|
||||||
output: text
|
output: text
|
||||||
- command: delete nxos.yaml
|
- command: delete network-integration.cfg
|
||||||
output: text
|
output: text
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
@ -20,9 +20,9 @@
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "Copy nxos.yaml to bootflash"
|
- name: "Copy network-integration.cfg to bootflash"
|
||||||
nxos_file_copy: ©_file_same_name
|
nxos_file_copy: ©_file_same_name
|
||||||
local_file: "./nxos.yaml"
|
local_file: "./network-integration.cfg"
|
||||||
file_system: "bootflash:"
|
file_system: "bootflash:"
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
username: "{{ ansible_ssh_user }}"
|
username: "{{ ansible_ssh_user }}"
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
that:
|
that:
|
||||||
- "result.changed == true"
|
- "result.changed == true"
|
||||||
|
|
||||||
- name: "Check Idempotence - Copy nxos.yaml to bootflash"
|
- name: "Check Idempotence - Copy network-integration.cfg to bootflash"
|
||||||
nxos_file_copy: *copy_file_same_name
|
nxos_file_copy: *copy_file_same_name
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -48,10 +48,10 @@
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: "Copy ios.yaml to bootflash as another name"
|
- name: "Copy inventory.networking.template to bootflash as another name"
|
||||||
nxos_file_copy: ©_file_different_name
|
nxos_file_copy: ©_file_different_name
|
||||||
local_file: "./ios.yaml"
|
local_file: "./inventory.networking.template"
|
||||||
remote_file: "nxos.yaml"
|
remote_file: "network-integration.cfg"
|
||||||
file_system: "bootflash:"
|
file_system: "bootflash:"
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
username: "{{ ansible_ssh_user }}"
|
username: "{{ ansible_ssh_user }}"
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
- assert: *true
|
- assert: *true
|
||||||
|
|
||||||
- name: "Check Idempotence - Copy ios.yaml to bootflash as another name"
|
- name: "Check Idempotence - Copy inventory.networking.template to bootflash as another name"
|
||||||
nxos_file_copy: *copy_file_different_name
|
nxos_file_copy: *copy_file_different_name
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue