blob: d157c063d83d503b3279c79c14f5048c63435a56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<chapter id="run_example_uc_auto_fm">
<title>Running Example Use-cases from the Automation Framework</title>
<note>
<para>Before running the EvalKit setup the user must add the designated
devices (<literal>device1</literal> and <literal>device2</literal>) under
the <literal>lab_config</literal> folder and replace all occurrences of
<literal>fwa1021vc-1</literal> with <literal>device1</literal> and
<literal>intelc3850-1</literal> with <literal>device2</literal> under
<filename>automation_framework/unittestSuite/config/evalkit</filename>.</para>
</note>
<para>In order to run example use-cases from the Automation Framework,
offline configurations need to be added for both uCPE devices and for the
VNFs to be onboarded.</para>
<note>
<para>All tests are just examples. In order to run on user specific
devices they need to be updated accordingly. Please check the Enea NFV
Access System Test Specification manual for more details.</para>
</note>
<programlisting>> cd automation_framework/unittestSuite/
> python unittestSuite.py -u admin -p admin -H 172.24.3.109 \
-o ucpem -s EvalKit_addOfflineConfig_and_onBoardVNFs.json -d \
"Set - offline config for uCPE1 and uCPE2"
#add device1
> python unittestSuite.py -u admin -p admin -H 172.24.3.109 -n fwa_1012vc-1 \
-s EvalKit_Deploy1.json -d "Add taget1 and instantiate VNFs"
#add device2
> python unittestSuite.py -u admin -p admin -H 172.24.3.109 -n intelc3850-1 \
-s EvalKit_Deploy2.json -d "Add taget2 and instantiate VNFs"</programlisting>
<para>Once done, the device configurations need to be cleaned up:</para>
<programlisting>> python unittestSuite.py -u admin -p admin -H 172.24.3.109 -n fwa_1012vc-1 \
-s EvalKit_Cleanup1.json -d "Cleanup config on taget1"
> python unittestSuite.py -u admin -p admin -H 172.24.3.109 -n intelc3850-1 \
-s EvalKit_Cleanup2.json -d "Cleanup config on taget2"
> python unittestSuite.py -u admin -p admin -H 172.24.3.109 -o ucpem -s \
EvalKit_CleanupZTP_and_offboardVNFs.json -d \
"Cleanup offline configuration and OffBoard VNFs"</programlisting>
</chapter>
|