summaryrefslogtreecommitdiffstats
path: root/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml')
-rw-r--r--doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml166
1 files changed, 166 insertions, 0 deletions
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 &lt;enable/disable&gt;</programlisting><emphasis
650 role="bold">Note:</emphasis> DPDK use cannot be disabled if DPDK 650 role="bold">Note:</emphasis> DPDK use cannot be disabled if DPDK
651 interfaces are configured. The task will fail in this case.</para> 651 interfaces are configured. The task will fail in this case.</para>
652 </section> 652 </section>
653
654 <section id="cs_upload">
655 <title>Custom Scripts - Upload a Custom Script to the uCPE
656 Manager</title>
657
658 <para><emphasis role="bold">Description:</emphasis> Upload a Custom
659 Script to the uCPE Manager. For details please refer to:</para>
660
661 <itemizedlist>
662 <listitem>
663 <para><filename>&lt;AF-TH-install-dir&gt;/playbooks/uploadCustomScript.yml</filename>.</para>
664 </listitem>
665
666 <listitem>
667 <para><filename>&lt;AF-TH-install-dir&gt;/automation_framework/customScripts/upload.py</filename>.</para>
668 </listitem>
669 </itemizedlist>
670
671 <para><emphasis role="bold">Precondition:</emphasis></para>
672
673 <para><literal>lab_config/customScripts</literal> must contain a Custom
674 Script file.</para>
675
676 <para><emphasis role="bold">Action:</emphasis> Run the
677 <filename>uploadCustomScript.yml</filename> Ansible Playbook with the
678 <literal>&lt;scriptName&gt;</literal> and
679 <literal>&lt;phase&gt;</literal> as extra-vars: <programlisting>ansible-playbook playbooks/uploadCustomScript.yml -e "scriptName=&lt;scriptName&gt; \
680phase=
681&lt;always-after-startup/once-after-startup/always-before-startup/once-before-startup&gt;"</programlisting></para>
682
683 <para><emphasis role="bold">Result:</emphasis> Output of the test case
684 run using the Test Harness:</para>
685
686 <programlisting># Upload Custom Script task result
687DEBUG: "{{ scriptName }} was uploaded to uCPE Manager!"</programlisting>
688 </section>
689
690 <section id="cs_upload_device">
691 <title>Custom Scripts - Upload a Custom Script from the uCPE Manager to
692 a Device</title>
693
694 <para><emphasis role="bold">Description:</emphasis> Upload a Custom
695 Script from the uCPE Manager to a Device. For details please refer
696 to:</para>
697
698 <itemizedlist>
699 <listitem>
700 <para><filename>&lt;AF-TH-install-dir&gt;/playbooks/uploadCustomScriptOnDevice.yml</filename>.</para>
701 </listitem>
702
703 <listitem>
704 <para><filename>&lt;AF-TH-install-dir&gt;/automation_framework/customScripts/uploadOnDevice.py</filename>.</para>
705 </listitem>
706 </itemizedlist>
707
708 <para><emphasis role="bold">Preconditions:</emphasis></para>
709
710 <itemizedlist>
711 <listitem>
712 <para>A device must have been previously added and connected to the
713 uCPE Manager instance.</para>
714 </listitem>
715
716 <listitem>
717 <para>A Custom Script must have been previously added to the uCPE
718 Manager instance.</para>
719 </listitem>
720 </itemizedlist>
721
722 <para><emphasis role="bold">Action:</emphasis> Run the
723 <filename>uploadCustomScriptOnDevice.yml</filename> Ansible Playbook
724 with the <literal>&lt;scriptName&gt;</literal>,
725 <literal>&lt;phase&gt;</literal> and
726 <literal>&lt;deviceName&gt;</literal> as extra-vars: <programlisting>ansible-playbook playbooks/uploadCustomScriptOnDevice.yml -e "scriptName=&lt;scriptName&gt; \
727phase=
728&lt;always-after-startup/once-after-startup/always-before-startup/once-before-startup&gt; \
729device=&lt;deviceName&gt;"</programlisting></para>
730
731 <para><emphasis role="bold">Result:</emphasis> Output of the test case
732 run using the Test Harness:</para>
733
734 <programlisting># Upload Custom Script on Device task result
735DEBUG: "{{ scriptName }} was uploaded to {{ device }}!"</programlisting>
736 </section>
737
738 <section id="cs_remove">
739 <title>Custom Scripts - Remove a Custom Script from the uCPE
740 Manager</title>
741
742 <para><emphasis role="bold">Description:</emphasis> Remove a Custom
743 Script from the uCPE Manager. For details please refer to:</para>
744
745 <itemizedlist>
746 <listitem>
747 <para><filename>&lt;AF-TH-install-dir&gt;/playbooks/removeCustomScript.yml</filename>.</para>
748 </listitem>
749
750 <listitem>
751 <para><filename>&lt;AF-TH-install-dir&gt;/automation_framework/customScripts/delete.py</filename>.</para>
752 </listitem>
753 </itemizedlist>
754
755 <para><emphasis role="bold">Precondition:</emphasis></para>
756
757 <para>A Custom Script must have been previously added to the uCPE
758 Manager.</para>
759
760 <para><emphasis role="bold">Action:</emphasis> Run the
761 <filename>removeCustomScript.yml</filename> Ansible Playbook with the
762 <literal>&lt;scriptName&gt;</literal> and
763 <literal>&lt;phase&gt;</literal> as extra-vars: <programlisting>ansible-playbook playbooks/removeCustomScript.yml -e "scriptName=&lt;scriptName&gt; \
764phase=
765&lt;always-after-startup/once-after-startup/always-before-startup/once-before-startup&gt;"</programlisting></para>
766
767 <para><emphasis role="bold">Result:</emphasis> Output of the test case
768 run using the Test Harness:</para>
769
770 <programlisting># Remove Custom Script in phase from uCPE Manager task result
771DEBUG: "{{ scriptName }} from phase {{ phase }} was removed from uCPE Manager!"</programlisting>
772 </section>
773
774 <section id="cs_remove_device">
775 <title>Custom Scripts - Remove a Custom Script from a Device</title>
776
777 <para><emphasis role="bold">Description:</emphasis> Remove a Custom
778 Script from a Device. For details please refer to:</para>
779
780 <itemizedlist>
781 <listitem>
782 <para><filename>&lt;AF-TH-install-dir&gt;/playbooks/removeCustomScriptOnDevice.yml</filename>.</para>
783 </listitem>
784
785 <listitem>
786 <para><filename>&lt;AF-TH-install-dir&gt;/automation_framework/customScripts/deleteOnDevice.py</filename>.</para>
787 </listitem>
788 </itemizedlist>
789
790 <para><emphasis role="bold">Preconditions:</emphasis></para>
791
792 <itemizedlist>
793 <listitem>
794 <para>A device must have been previously added and connected to the
795 uCPE Manager instance.</para>
796 </listitem>
797
798 <listitem>
799 <para>A Custom Script must have been previously added to the
800 Device.</para>
801 </listitem>
802 </itemizedlist>
803
804 <para><emphasis role="bold">Action:</emphasis> Run the
805 <filename>removeCustomScriptOnDevice.yml</filename> Ansible Playbook
806 with the <literal>&lt;scriptName&gt;</literal>,
807 <literal>&lt;phase&gt;</literal> and and
808 <literal>&lt;deviceName&gt;</literal> as extra-vars: <programlisting>ansible-playbook playbooks/removeCustomScriptOnDevice.yml -e "scriptName=&lt;scriptName&gt; \
809phase=
810&lt;always-after-startup/once-after-startup/always-before-startup/once-before-startup&gt; \
811device=&lt;deviceName&gt;"</programlisting></para>
812
813 <para><emphasis role="bold">Result:</emphasis> Output of the test case
814 run using the Test Harness:</para>
815
816 <programlisting># Remove Custom Script in phase from Device task result
817DEBUG: "{{ scriptName }} from phase {{ phase }} was removed from {{ device }}!"</programlisting>
818 </section>
653 </section> 819 </section>
654 820
655 <section id="vnf_deploy_lifecycle"> 821 <section id="vnf_deploy_lifecycle">