From a7bb74c6f96f1e3c390bc92e8ec83ff763fdd9ef Mon Sep 17 00:00:00 2001 From: mrpa Date: Thu, 16 Apr 2020 12:27:40 +0200 Subject: In book-enea-nfv-access-auto-fw-th-user-guide New Sections 4.1.22-4.1.25 In book-enea-nfv-access-system-test-specification New Sections 3.1.16-3.1.19. Change-Id: I494eccc7339d1159c49a0d641023a1b564a67a54 Signed-off-by: mrpa --- .../doc/sample_test_cases.xml | 166 +++++++++++++++++++++ 1 file changed, 166 insertions(+) (limited to 'doc/book-enea-nfv-access-system-test-specification') diff --git a/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml b/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml index 95d45ce..ab611a1 100644 --- a/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml +++ b/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml @@ -650,6 +650,172 @@ DEBUG: Set DPDK state to <enable/disable>Note: DPDK use cannot be disabled if DPDK interfaces are configured. The task will fail in this case. + +
+ Custom Scripts - Upload a Custom Script to the uCPE + Manager + + Description: Upload a Custom + Script to the uCPE Manager. For details please refer to: + + + + <AF-TH-install-dir>/playbooks/uploadCustomScript.yml. + + + + <AF-TH-install-dir>/automation_framework/customScripts/upload.py. + + + + Precondition: + + lab_config/customScripts must contain a Custom + Script file. + + Action: Run the + uploadCustomScript.yml Ansible Playbook with the + <scriptName> and + <phase> as extra-vars: ansible-playbook playbooks/uploadCustomScript.yml -e "scriptName=<scriptName> \ +phase= +<always-after-startup/once-after-startup/always-before-startup/once-before-startup>" + + Result: Output of the test case + run using the Test Harness: + + # Upload Custom Script task result +DEBUG: "{{ scriptName }} was uploaded to uCPE Manager!" +
+ +
+ Custom Scripts - Upload a Custom Script from the uCPE Manager to + a Device + + Description: Upload a Custom + Script from the uCPE Manager to a Device. For details please refer + to: + + + + <AF-TH-install-dir>/playbooks/uploadCustomScriptOnDevice.yml. + + + + <AF-TH-install-dir>/automation_framework/customScripts/uploadOnDevice.py. + + + + Preconditions: + + + + A device must have been previously added and connected to the + uCPE Manager instance. + + + + A Custom Script must have been previously added to the uCPE + Manager instance. + + + + Action: Run the + uploadCustomScriptOnDevice.yml Ansible Playbook + with the <scriptName>, + <phase> and + <deviceName> as extra-vars: ansible-playbook playbooks/uploadCustomScriptOnDevice.yml -e "scriptName=<scriptName> \ +phase= +<always-after-startup/once-after-startup/always-before-startup/once-before-startup> \ +device=<deviceName>" + + Result: Output of the test case + run using the Test Harness: + + # Upload Custom Script on Device task result +DEBUG: "{{ scriptName }} was uploaded to {{ device }}!" +
+ +
+ Custom Scripts - Remove a Custom Script from the uCPE + Manager + + Description: Remove a Custom + Script from the uCPE Manager. For details please refer to: + + + + <AF-TH-install-dir>/playbooks/removeCustomScript.yml. + + + + <AF-TH-install-dir>/automation_framework/customScripts/delete.py. + + + + Precondition: + + A Custom Script must have been previously added to the uCPE + Manager. + + Action: Run the + removeCustomScript.yml Ansible Playbook with the + <scriptName> and + <phase> as extra-vars: ansible-playbook playbooks/removeCustomScript.yml -e "scriptName=<scriptName> \ +phase= +<always-after-startup/once-after-startup/always-before-startup/once-before-startup>" + + Result: Output of the test case + run using the Test Harness: + + # Remove Custom Script in phase from uCPE Manager task result +DEBUG: "{{ scriptName }} from phase {{ phase }} was removed from uCPE Manager!" +
+ +
+ Custom Scripts - Remove a Custom Script from a Device + + Description: Remove a Custom + Script from a Device. For details please refer to: + + + + <AF-TH-install-dir>/playbooks/removeCustomScriptOnDevice.yml. + + + + <AF-TH-install-dir>/automation_framework/customScripts/deleteOnDevice.py. + + + + Preconditions: + + + + A device must have been previously added and connected to the + uCPE Manager instance. + + + + A Custom Script must have been previously added to the + Device. + + + + Action: Run the + removeCustomScriptOnDevice.yml Ansible Playbook + with the <scriptName>, + <phase> and and + <deviceName> as extra-vars: ansible-playbook playbooks/removeCustomScriptOnDevice.yml -e "scriptName=<scriptName> \ +phase= +<always-after-startup/once-after-startup/always-before-startup/once-before-startup> \ +device=<deviceName>" + + Result: Output of the test case + run using the Test Harness: + + # Remove Custom Script in phase from Device task result +DEBUG: "{{ scriptName }} from phase {{ phase }} was removed from {{ device }}!" +
-- cgit v1.2.3-54-g00ecf