Versions Compared

Key

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

...

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
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. Re-login as a a demo user
  28. VID Navigate to  application
  29. From left menu select Browse SDC Service Models
  30. Login to rancher node.
  31. Login to <dev>-so-so-mariadb-<576ccb887f-9v7q8> node. For example:

    Code Block
    kubectl exec -it dev-so-so-mariadb-576ccb887f-9v7q8 -n onap /bin/bash
  32. Login to mysql db

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

    Code Block
    insert into service_recipe values (null, 'createInstance' , '1' , 'pnf service', '/mso/async/services/CreateVcpeResCustService_simplified', null , 180, null, 2017-10-05 , '<UUID>' );
  35. Re-login as a a demo user
  36. VID Navigate to  application
  37. 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
  5. User is logged in
  6. SDC application is open
  7. Page HOME > Create new resource > General page with fields that must be filled out is open
  8. Create/Update saved successfully message is present in left top corner
  9. PNF is sucesfully Certified
  10. SDC application is open
  11. Page HOME > Create new service > General with fields that must be filled out is open
  12. Create/Update saved successfully message is present in left top corner
  13. Composition main view is open
  14. PNF is visible
  15. PNF is added to service
  16. Submitted For Testing Submitted successfully for testing message is present in left top corner
  17. User is re-logged
  18. SDC application is open and newly created Service is visible in main view
  19. Page with Service configuration is open
  20. Start Testing Tested successfully message is present in left top corner
  21. PNF is sucesfully Certified
  22. SDC application is open
  23. Page HOME > Create new service > General with fields that must be filled out is open
  24. Create/Update saved Accept Accepted successfully message is present in left top corner
  25. User is re-logged
  26. Composition main view is open
  27. PNF is visible
  28. PNF is added to service
  29. Submitted For Testing Submitted successfully for testing message is present in left top corner
  30. User is re-logged
  31. SDC application is SDC application is open and newly created Service is visible in main view
  32. Page with Service configuration is open
  33. Start Testing Tested successfully message is present in left top corner
  34. Accept Accepted Approve Approved successfully message is present in left top corner
  35. User is re-logged
  36. SDC application is open and newly created Service is visible in main view
  37. Page with Service configuration is open
  38. Distribute Distribute Approve Approved successfullymessage is present in left top corner
    Monitor main view is opened with information about distribution
  39. User is re-logged
  40. SDC application is open and newly created Service is visible in main view
  41. Page with Service configuration is open
  42. Distribute Distribute successfully message is present in left top corner
  43. Monitor main view is opened with information about distribution
  44. User is looged to rancher node
  45. User is looged to mariadb pod
  46. User is looged to mysql
  47. Catalogdb is selected
  48. Service recipe is added to service recipe table:

    Code Block
    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 |
    +----+--------------------+-------------+----------------+----------------------------------------------------------+-------------------+----------------+-------------------------+---------------------+--------------------------------------+


  49. User is re-logged
  50. VID application is open
  51. 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

...