Release image version 1.12.2
[testsuite.git] / robot / testsuites / pnf-registration.robot
1 *** Settings ***
2 Documentation     Executes the PNF registration  test cases including setup and teardown
3 Test Timeout      15m
4
5 Resource         ../resources/test_templates/pnf_registration_without_SO_template.robot
6 Library         String
7
8
9
10 *** Test Cases ***
11
12 PNF Registration only DCAE part: AAI, VES, PRH, DMaaP
13      [Documentation]
14      ...  This test case creates A&AI entry for PNF without SDC model distribution and service instantiation in SO.
15      ...  Test case verify PNF Registration only in DCAE part: AAI, VES, PRH, DMaaP.
16      ...  During test case Robot adds PNF entry to A&AI that contains: correlation ID, PNF_IPv4_address and PNF_IPv6_address
17      [Tags]   pnf_registrate   ete
18      ${pnf_correlation_id}=    Generate Random String  20  [LETTERS][NUMBERS]
19      ${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
20      Log  Initial PNF entry ${PNF_entry_dict}
21      Create A&AI antry without SO and succesfully registrate PNF  ${PNF_entry_dict}
22      [Teardown]  Cleanup PNF entry in A&AI  ${PNF_entry_dict}
23
24
25
26 Instantiate PNF_macro service and succesfully registrate PNF
27      [Documentation]
28      ...  This test case creates TOSCA csar software package for PNF. Imports it as VSP package.
29      ...  Cretaes PNF resource, cretaes Macro service, attach PNF resource and distributes it.
30      ...  After sucesfull distribution, service recipe is added to SO ctalog db.
31      ...  Next service is instantied with random PNF id. VES integration event is send with this PNF ID.
32      ...  At the end of the service is checked in terms
33      ...  - service completion
34      ...  - PNF entry update about information from VES event
35      [Tags]   pnf_registrate_macro_vnf_api   ete
36      ${pnf_correlation_id}=    Generate Random String  20  [LETTERS][NUMBERS]
37      ${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
38      ${PNF_service_model}=  Set Variable  Demo_pNF_${pnf_correlation_id}
39      Instantiate PNF_macro service and succesfully registrate PNF template   ${PNF_service_model}   ${PNF_entry_dict}   ${pnf_correlation_id}
40
41
42 Instantiate PNF service (using building blocks) and succesfully registrate PNF
43      [Documentation]
44      ...  This test case creates TOSCA csar software package for PNF. Imports it as VSP package.
45      ...  Cretaes PNF resource, cretaes Macro service, attach PNF resource and distributes it.
46      ...  Next service is instantied with random PNF id. VES integration event is send with this PNF ID.
47      ...  At the end of the service is checked in terms
48      ...  - service completion
49      ...  - PNF entry update about information from VES event
50      ...  - PNF orchestration status
51      [Tags]   pnf_registrate     ete
52      ${pnf_correlation_id}=    Generate Random String  20  [LETTERS][NUMBERS]
53      ${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
54      ${PNF_service_model}=  Set Variable  Demo_pNF_${pnf_correlation_id}
55      Instantiate PNF_macro service and succesfully registrate PNF template   ${PNF_service_model}   ${PNF_entry_dict}   ${pnf_correlation_id}  building_block_flow=true