Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
CreateanddistributeservicewhichcontainsPNF
CreateanddistributeservicewhichcontainsPNF

Test Case IDT01
Test Case Name

Create and distribute service which contains PNF

Description

Verification if in VID is present PNF enabled service.
Test case covers following steps from message flow in 5G - PNF Plug and Play:

  • STEP 1 RESOURCE DEFINITION
  • STEP 2 SERVICE DEFINITION
  • STEP 3 ARTIFACTS DISTRIBUTION
Release
Casablanca
Frankfurt/Guilin
Preconditions
  1. Users with roles: Designer
, Tester, Governance Rep, Ops, Admin
  1. (Carlos Santana - cs0008),  Admin (demo) should be available
Testing StepsStepExpected Result
  1. Login to ONAP portal as a designer user
  2. Navigate to SDC application
  3. Navigate to ONBOARD tab
  4. Click on

ADD + button and select  Add PNF
  • In HOME > Create new resource > General page fill all mandatory fields and press Create button in right top corner
  • Next press Certify button. Put comment message in Certification confirmation pop-up and press OK button
  • Navigate to SDC tab / HOME menu
  • Click on ADD + button and select  Add Service
  • In HOME > Create new service > General page fill all mandatory fields (change service type from defautl a'lacarte to macro) and press Create button in right top corner
  • Go to Composition in left menu
  • In search box find crated PNF using its name
  • Drag ad drop it to main view
  • Next press Submit for Testing button, fill Message field and press OK button
  • Re-login as a a tester user
  • Navigate to SDC tab / HOME menu
  • From main view select Service submitted for testing
  • Press Start Testing button in left top corner and next Accept button.
  • Put comment message in Certification confirmation pop-up and press OK button
  • Re-login as a a governance user
  • Navigate to SDC tab / HOME menu
  • From main view select previously created Service
    1. CREATE NEW VLM

    2. Fill all mandatory parameters

    3. Add License Key Groups and fill all mandatory parameters

    4. Add Entitlement Pool and fill all mandatory parameters

    5. Add  Feature Group fill all mandatory parameters and add already created Entitlement Pool and License Key Group

    6. Add License Agreement fill mandatory parameters and add already created Feature Group

    7. Press Submit button and next COMMIT & SUBMIT button
    8. Navigate to ONBOARD tab
    9. Click on CREATE NEW VSP

    10. Fill all mandatory parameters:

      1. select Vendor defined in already created VLM
      2. Name will be used in next steps
      3. in ONBOARDING PROCEDURE select Network Package
    11. Click on warning under License Agreement
    12. Fill Licensing Version, License Agreement and Feature Groups from already created VLM
    13. Cick on Overview from left menu and press SELECT FILE button.
    14. Select attached pnf.csar file from your PC
    15. Click on ADD + button and select  Add PNF
    16. In HOME > Create new resource > General page fill all mandatory fields and press Create button in right top corner
    17. Next press Certify button. Put
    Press Approve button in left top corner and put
    1. comment message in Certification confirmation pop-up and press OK button
  • Re-login as a l as a ops user
  • Page HOME > Create new resource > General page
    1. Navigate to SDC tab / HOME menu
  • From main view select previously created Service
  • Press Distribute button in left top corner
  • Press Monitor button in left top corner and verify distribution status, use refresh button
  • Login to rancher node.
  • Login to <dev>-so-so-mariadb-<576ccb887f-9v7q8> node. For example:

    Code Block
    collapsetrue
    kubectl exec -it dev-so-so-mariadb-576ccb887f-9v7q8 -n onap /bin/bash

    Login to mysql db

    Code Block
    collapsetrue
    root@mariadb:/# mysql -uroot -ppassword
  • Use catalogdb database
  • Add service rescipe for distributed service executing following command (replace UUID by UUID of created/distributed service):

    Code Block
    collapsetrue
    insert into service_recipe values (null, 'createInstance' , '1' , 'pnf service', '/mso/async/services/CreateVcpeResCustService_simplified', null , 180, null, 2017-10-05 , '<UUID>' );
  • Re-login as a a demo user
  • VID Navigate to  application
  • From left menu select Browse SDC Service Models
  • User is logged in
  • SDC application is open
    1. Click on ADD + button and select  Add Service
    2. In HOME > Create new service > General page fill all mandatory fields (change service type from defautl a'lacarte to macro) and press Create button in right top corner
    3. Go to Composition in left menu
    4. In search box find crated PNF using its name
    5. Drag ad drop it to main view
    6. Next press Submit for Testing button, fill Message field and press OK button
    7. Re-login as a a tester user
    8. Navigate to SDC tab / HOME menu
    9. From main view select Service submitted for testing
    10. Press Start Testing button in left top corner and next Accept button.
    11. Put comment message in Certification confirmation pop-up and press OK button
    12. Re-login as a a governance user
    13. Navigate to SDC tab / HOME menu
    14. From main view select previously created Service
    15. Press Approve button in left top corner and put comment message in Certification confirmation pop-up and press OK button
    16. Re-login as a l as a ops user
    17. Navigate to SDC tab / HOME menu
    18. From main view select previously created Service
    19. Press Distribute button in left top corner
    20. Press Monitor button in left top corner and verify distribution status, use refresh button
    21. Re-login as a a demo user
    22. VID Navigate to  application
    23. From left menu select Browse SDC Service Models
    1. User is logged in
    2. SDC application is open
    3. Page HOME > Create new resource > General page with fields that must be filled out is open
    4. Create/Update saved successfully message is present in left top corner
    5. PNF is sucesfully Certified
    6. SDC application is open
    7. Page HOME > Create new service > General
    Composition main
    1. with fields that must be filled out is open
    2. Create/Update saved successfully message is present in left top corner
  • PNF is sucesfully Certified
  • SDC application is open
  • Page HOME > Create new service > General with fields that must be filled out is open
  • Create/Update saved successfully message is present in left top corner
    1. Composition main view is open
    2. PNF is visible
    3. PNF is added to service
    4. Submitted For Testing Submitted successfully for testing message is present in left top corner
    5. User is re-logged
    6. SDC application is open and newly created Service is visible in main view
    7. Page with Service configuration is open
    8. Start Testing Tested successfully message is present in left top corner
    9. Accept Accepted successfully message is present in left top corner
    10. User is re-logged
    11. SDC application is open and newly created Service is visible in main view
    12. Page with Service configuration is open
    13. Approve Approved successfully message is present in left top corner
    14. User is re-logged
    15. SDC application is open and newly created Service is visible in main view
    16. Page with Service configuration is open
    17. Distribute Distribute successfully message is present in left top corner
    18. Monitor main view is opened with information about distribution
    19. User is looged to rancher node
    20. User is looged to mariadb pod
    21. User is looged to mysql
    22. Catalogdb is selected
    23. Service recipe is added to service recipe table:

    Code Block
    collapsetrue
    MariaDB [catalogdb]> insert into service_recipe values (null, 'createInstance' , '1' , 'pnf service', '/mso/async/services/CreateVcpeResCustService_simplified', null , 180, null, 2017-10-05 , '4ce6ffb8-30ed-4750-8b7e-e386eab142a4' ); MariaDB [catalogdb]> select * from service_recipe; +----+--------------------+-------------+----------------+----------------------------------------------------------+-------------------+----------------+-------------------------+---------------------+--------------------------------------+ | id | ACTION | VERSION_STR | DESCRIPTION | ORCHESTRATION_URI | SERVICE_PARAM_XSD | RECIPE_TIMEOUT | SERVICE_TIMEOUT_INTERIM | CREATION_TIMESTAMP | SERVICE_MODEL_UUID | +----+--------------------+-------------+----------------+----------------------------------------------------------+-------------------+----------------+-------------------------+---------------------+--------------------------------------+ . . . | 92 | createInstance | 1 | pnf service | /mso/async/services/CreateVcpeResCustService_simplified | NULL | 180 | NULL | 0000-00-00 00:00:00 | 4ce6ffb8-30ed-4750-8b7e-e386eab142a4 | +----+--------------------+-------------+----------------+----------------------------------------------------------+-------------------+----------------+-------------------------+---------------------+--------------------------------------+


    1. User is re-logged
    2. VID application is open
    3. in Browse SDC Service Models main view is present entry about newly created service
    Actual ResultsIn VID is present PNF enabled service.
    Conclusion (Pass/Fail)
    Testing Lab
    Tester NameKrzysztof Kuzmicki

    Anchor
    PNF Ready
    PNF Ready

    Test Case IDT02
    Test Case Name

    Waiting for PNFReady

    Description

    Verification if PNF PnP functionality within SO is waiting for PNFReady to be published by PRH.

    Test case covers following steps from message flow in 5G - PNF Plug and Play:

    • STEP 16 – SERVICE INSTANTIATION
    • STEP 18 – RESOURCE LEVEL FLOW STEP 20 – PNF A&AI ENTRY MISSING
    • STEP 21 – SUBSCRIBE
    • STEP 22 – RESOURCE LEVEL FLOW (RLF) TERMINATES
    ReleaseCasablanca
    Preconditions
    1. Created PNF and Service using Test Case T01 (Create and distribute service which contains PNF)
    2. Robot init test case has been successfully executed at rancher node - ~/oom/kubernetes/robot/demo-k8s.sh onap init
    3. Changes described in Release notes applied to SO-MARIADB.
    Testing StepsStepExpected Result
    1. Login to ONAP portal as a demo user
    2. Navigate to VID application
    3. Navigate to Browse SDC Service Models in left menu
    4. Deploy distributed SDC Service Model for PNF
    5. Fill all mandatory parameters. To "PNF (Correlation) ID" field put correlationId that will be setup in PNF simulator. Press "Confirm" button.
    6. Close " In Progress" pop-up window
    7. Login to so-so-bpmn-infra pod via rancher console:
      kubectl exec -it dev-so-so-bpmn-infra-7584f4f887-p9tmn -n onap /bin/sh
      open debug.log
      vi logs/bpmn/debug.log
    8. Verify AAI entry created by SO service using command:
      curl -X GET -k -H "accept: application/json" -H "Real-Time: true" -H "Content-Type: application/json" -H "X-FromAppId: dcae-curl" -H "x-transactionId: 9998" "https://AAI:AAI@<kubernetes noed ip address>:<aai service port>/aai/v11/network/pnfs/pnf/<correlationID>"
    1. User is logged in
    2. VID application is open
    3. Distributed SDC Service Model for PNF is present
    4. Create Service Instance -- Macro pop-up is present
    5. All fields are filled. Pop-up window " In Progress" is visible
    6. Window is closed. Service is still not instantiated. Is not visible in "  Search for Existing Service Instances" left menu
    7. In debug.log should be present following message:
      o.o.s.b.i.pnf.dmaap.PnfEventReadyDmaapClient - registering for pnf ready dmaap event for correlation id: <correlationId>
    8. Command should return JSON with empty value for IPv4 and IPv6 address
      {"pnf-name":"<correlationID>"","pnf-id":"testtest","in-maint":true,"resource-version":"1541720264047"}

    Actual Results

    Correct entry is present in AAI. Entry contains pnf-name  equal to correlationID.

    SO service is waiting for PNFReady to be published by PRH

    Conclusion (Pass/Fail)
    Testing Lab
    Tester NameKrzysztof Kuzmicki

    ...