Versions Compared

Key

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

...

Test Case IDT01
Test Case Name

Anchor

d-5G-PNFPnP-IntegrationTestCases-

CreateanddistributeservicewhichcontainsPNF

d-5G-PNFPnP-IntegrationTestCases-

CreateanddistributeservicewhichcontainsPNF
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
ReleaseCasablanca
Preconditions
  1. Users with roles: Designer, Tester, Governance Rep, Ops, Admin should be available
Testing StepsStepExpected Result
  1. Login to ONAP portal as a designer user
  2. Navigate to SDC application
  3. Click on ADD + button and select  Add PNF
  4. In HOME > Create new resource > General page fill all mandatory fields and press Create button in right top corner
  5. Next press Certify button. Put comment message in Certification confirmation pop-up and press OK button
  6. Navigate to SDC tab / HOME menu
  7. Click on ADD + button and select  Add Service
  8. 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
  9. Go to Composition in left menu
  10. In search box find crated PNF using its name
  11. Drag ad drop it to main view
  12. Next press Submit for Testing button, fill Message field and press OK button
  13. Re-login as a a tester user
  14. Navigate to SDC tab / HOME menu
  15. From main view select Service submitted for testing
  16. Press Start Testing button in left top corner and next Accept button.
  17. Put comment message in Certification confirmation pop-up and press OK button
  18. Re-login as a a governance user
  19. Navigate to SDC tab / HOME menu
  20. From main view select previously created Service
  21. Press Approve button in left top corner and put comment message in Certification confirmation pop-up and press OK button
  22. Re-login as a l as a ops user
  23. Navigate to SDC tab / HOME menu
  24. From main view select previously created Service
  25. Press Distribute button in left top corner
  26. Press Monitor button in left top corner and verify distribution status, use refresh button
  27. Login to rancher node.
  28. 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
  29. Login to mysql db

    Code Block
    collapsetrue
    root@mariadb:/# mysql -uroot -ppassword
  30. Use catalogdb database
  31. Add service rescipe for distrinuted 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>' );
  32. Re-login as a a demo user
  33. VID Navigate to  application
  34. 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 with fields that must be filled out is open
  8. Create/Update saved successfully message is present in left top corner
  9. Composition main view is open
  10. PNF is visible
  11. PNF is added to service
  12. Submitted For Testing Submitted successfully for testing message is present in left top corner
  13. User is re-logged
  14. SDC application is open and newly created Service is visible in main view
  15. Page with Service configuration is open
  16. Start Testing Tested successfully message is present in left top corner
  17. Accept Accepted successfully message is present in left top corner
  18. User is re-logged
  19. SDC application is open and newly created Service is visible in main view
  20. Page with Service configuration is open
  21. Approve Approved successfully message is present in left top corner
  22. User is re-logged
  23. SDC application is open and newly created Service is visible in main view
  24. Page with Service configuration is open
  25. Distribute Distribute successfully message is present in left top corner
  26. Monitor main view is opened with information about distribution
  27. User is looged to rancher node
  28. User is looged to mariadb pod
  29. User is looged to mysql
  30. Catalogdb is selected
  31. 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 |
    +----+--------------------+-------------+----------------+----------------------------------------------------------+-------------------+----------------+-------------------------+---------------------+--------------------------------------+


  32. User is re-logged
  33. VID application is open
  34. 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

...