Make the pnf registration test cases independent from robot init
[testsuite.git] / robot / testsuites / pnf-registration.robot
1 *** Settings ***
2 Documentation     Executes the PNF registration  test cases including setup and teardown
3 Test Timeout      10m
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 form VES event
35      [Tags]   pnf_registrate   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      Instantiate PNF_macro service and succesfully registrate PNF template   Demo_pNF   ${PNF_entry_dict}   ${pnf_correlation_id}