aboutsummaryrefslogtreecommitdiffstats
path: root/robot/testsuites/pnf-registration.robot
blob: 2f6eee404f0940fd57e631684de41e6802e9bdf1 (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
49
50
51
52
53
54
55
*** Settings ***
Documentation     Executes the PNF registration  test cases including setup and teardown
Test Timeout      15m

Resource         ../resources/test_templates/pnf_registration_without_SO_template.robot
Library         String



*** Test Cases ***

PNF Registration only DCAE part: AAI, VES, PRH, DMaaP
     [Documentation]
     ...  This test case creates A&AI entry for PNF without SDC model distribution and service instantiation in SO.
     ...  Test case verify PNF Registration only in DCAE part: AAI, VES, PRH, DMaaP.
     ...  During test case Robot adds PNF entry to A&AI that contains: correlation ID, PNF_IPv4_address and PNF_IPv6_address
     [Tags]   pnf_registrate   ete   pnf_registrate_all
     ${pnf_correlation_id}=    Generate Random String  20  [LETTERS][NUMBERS]
     ${PNF_entry_dict}=  Create Dictionary  correlation_id=${pnf_correlation_id}  PNF_IPv4_address=13.13.13.13  PNF_IPv6_address=2001:0db8:0:0:0:0:1428:57ab
     Log  Initial PNF entry ${PNF_entry_dict}
     Create A&AI antry without SO and succesfully registrate PNF  ${PNF_entry_dict}
     [Teardown]  Cleanup PNF entry in A&AI  ${PNF_entry_dict}



Instantiate PNF_macro service and succesfully registrate PNF
     [Documentation]
     ...  This test case creates TOSCA csar software package for PNF. Imports it as VSP package.
     ...  Cretaes PNF resource, cretaes Macro service, attach PNF resource and distributes it.
     ...  After sucesfull distribution, service recipe is added to SO ctalog db.
     ...  Next service is instantied with random PNF id. VES integration event is send with this PNF ID.
     ...  At the end of the service is checked in terms
     ...  - service completion
     ...  - PNF entry update about information from VES event
     [Tags]   pnf_registrate   ete   pnf_registrate_all
     ${pnf_correlation_id}=    Generate Random String  20  [LETTERS][NUMBERS]
     ${PNF_entry_dict}=  Create Dictionary  correlation_id=${pnf_correlation_id}  PNF_IPv4_address=13.13.13.13  PNF_IPv6_address=2001:0db8:0:0:0:0:1428:57ab
     ${PNF_service_model}=  Set Variable  Demo_pNF_${pnf_correlation_id}
     Instantiate PNF_macro service and succesfully registrate PNF template   ${PNF_service_model}   ${PNF_entry_dict}   ${pnf_correlation_id}


Instantiate PNF service (using building blocks) and succesfully registrate PNF
     [Documentation]
     ...  This test case creates TOSCA csar software package for PNF. Imports it as VSP package.
     ...  Cretaes PNF resource, cretaes Macro service, attach PNF resource and distributes it.
     ...  Next service is instantied with random PNF id. VES integration event is send with this PNF ID.
     ...  At the end of the service is checked in terms
     ...  - service completion
     ...  - PNF entry update about information from VES event
     ...  - PNF orchestration status
     [Tags]   pnf_registrate_gr_api   pnf_registrate_all  ete
     ${pnf_correlation_id}=    Generate Random String  20  [LETTERS][NUMBERS]
     ${PNF_entry_dict}=  Create Dictionary  correlation_id=${pnf_correlation_id}  PNF_IPv4_address=13.13.13.13  PNF_IPv6_address=2001:0db8:0:0:0:0:1428:57ab
     ${PNF_service_model}=  Set Variable  Demo_pNF_${pnf_correlation_id}
     Instantiate PNF_macro service and succesfully registrate PNF template   ${PNF_service_model}   ${PNF_entry_dict}   ${pnf_correlation_id}  building_block_flow=true