Extend PnF registrate test cases for GR API
[testsuite.git] / robot / testsuites / pnf-registration.robot
index 6c4b4e7..14cefb3 100644 (file)
@@ -4,7 +4,7 @@ Test Timeout      10m
 
 Resource         ../resources/test_templates/pnf_registration_without_SO_template.robot
 Library                String
-    
+
 
 
 *** Test Cases ***
@@ -23,7 +23,7 @@ PNF Registration only DCAE part: AAI, VES, PRH, DMaaP
 
 
 
-Design, create, instantiate PNF/macro service and succesfully registrate PNF
+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.
@@ -31,8 +31,25 @@ Design, create, instantiate PNF/macro service and succesfully registrate PNF
      ...  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 form VES event
-     [Tags]   pnf_registrate
+     ...  - PNF entry update about information from VES event
+     [Tags]   pnf_registrate   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}
+
+
+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_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
-     Design, create, instantiate PNF/macro service and succesfully registrate PNF template   Demo_pNF   ${PNF_entry_dict}   ${pnf_correlation_id}
\ No newline at end of file
+     ${PNF_service_model}=  Set Variable  Demo_pNF_${pnf_correlation_id}
+     Instantiate PNF service (using building blocks) and succesfully registrate PNF template   ${PNF_service_model}   ${PNF_entry_dict}   ${pnf_correlation_id}  true
\ No newline at end of file