From dc4a41a4afd3660bb62c60e9993f63c0aad8e4f0 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Fri, 2 Feb 2018 18:24:53 +0530 Subject: [PATCH] change testfiles for nxos_file_copy (#35641) Signed-off-by: Trishna Guha --- .../targets/nxos_file_copy/tests/cli/sanity.yaml | 16 ++++++++-------- .../nxos_file_copy/tests/nxapi/sanity.yaml | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml b/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml index 1b6c03a371..c7269d7d1c 100644 --- a/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml +++ b/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml @@ -7,7 +7,7 @@ nxos_command: &remove_file commands: - terminal dont-ask - - delete nxos.yaml + - delete network-integration.cfg provider: "{{ cli }}" ignore_errors: yes @@ -18,9 +18,9 @@ provider: "{{ cli }}" - block: - - name: "Copy nxos.yaml to bootflash" + - name: "Copy network-integration.cfg to bootflash" nxos_file_copy: ©_file_same_name - local_file: "./nxos.yaml" + local_file: "./network-integration.cfg" file_system: "bootflash:" provider: "{{ cli }}" username: "{{ ansible_ssh_user }}" @@ -33,7 +33,7 @@ that: - "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 register: result @@ -45,10 +45,10 @@ nxos_command: *remove_file 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 - local_file: "./ios.yaml" - remote_file: "nxos.yaml" + local_file: "./inventory.networking.template" + remote_file: "network-integration.cfg" file_system: "bootflash:" provider: "{{ cli }}" username: "{{ ansible_ssh_user }}" @@ -59,7 +59,7 @@ - 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 register: result diff --git a/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml b/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml index 2f4aa98552..24846d752e 100644 --- a/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml +++ b/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml @@ -8,7 +8,7 @@ commands: - command: terminal dont-ask output: text - - command: delete nxos.yaml + - command: delete network-integration.cfg output: text provider: "{{ nxapi }}" ignore_errors: yes @@ -20,9 +20,9 @@ provider: "{{ nxapi }}" - block: - - name: "Copy nxos.yaml to bootflash" + - name: "Copy network-integration.cfg to bootflash" nxos_file_copy: ©_file_same_name - local_file: "./nxos.yaml" + local_file: "./network-integration.cfg" file_system: "bootflash:" provider: "{{ nxapi }}" username: "{{ ansible_ssh_user }}" @@ -35,7 +35,7 @@ that: - "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 register: result @@ -48,10 +48,10 @@ register: result 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 - local_file: "./ios.yaml" - remote_file: "nxos.yaml" + local_file: "./inventory.networking.template" + remote_file: "network-integration.cfg" file_system: "bootflash:" provider: "{{ nxapi }}" username: "{{ ansible_ssh_user }}" @@ -62,7 +62,7 @@ - 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 register: result