Versions Compared

Key

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

...

Test case IDDescriptionTest scenarioExpected resultStatus
T100

Fetch NS package which is distributed from SDC

NS package should exists in SDC catalog and is distributed.

POST /api/catalog/v1/nspackages

{
   "csarId": "String"
}

Response code:202
T101Search NS packagesGET /api/catalog/v1/nspackages

Response code:200

Body: NS package list


T102Search a NS package according to csarIdGET /api/catalog/v1/nspackages/{{csarId}}

Response code:200

Body: NS package


T103Delete a NS package according to csarIdDelete /api/catalog/v1/nspackages/{csarId}Response code:204
T104

Fetch Service package which is distributed from SDC

Service package should exists in SDC catalog and is distributed.

POST /api/catalog/v1/service_packages

{
   "csarId": "String"
}

Response code:202
T105Search Service packagesGET /api/catalog/v1/service_packages

Response code:200

Body: Service package list


T106Search a Service package according to csarIdGET /api/catalog/v1/service_packages/{{csarId}}

Response code:200

Body: Service package


T107Delete a Service package according to csarIdDelete /api/catalog/v1/service_packages/{csarId}Response code:204
T108Fetch VNF package from SDC

POST /api/catalog/v1/vnfpackages

{
   "csarId": "String"
}


Response code:202
OK
T109Search VNF packagesGET /api/catalog/v1/vnfpackages

Response code:200

Body: VNF package list

OK
T110Search a VNF package according to csarIdGET /api/catalog/v1/vnfpackages/{{csarId}}

Response code:200

Body: VNF package

OK
T111Delete a VNF package according to csarIdDelete /api/catalog/v1/vnfpackages/{csarId}Response code:204OK

VNF Package Management API - SOL003

...

Test caseDescriptionTest scenarioExpected resultStatus
T200Create a VNF 

POST /api/vnfpkgm/v1/vnf_packages

{
    "userDefinedData": {
        "key1": "value1"
    }
}

Response code:201OK
T201Search VNF packagesGET /api/vnfpkgm/v1/vnf_packages

Response code:200

Body: VNF package list

OK
T202Search a VNF package according to vnfPkgIdGET /api/vnfpkgm/v1/vnf_packages/{{vnfPkgId}}

Response code:200

Body: VNF package

OK
T203Update the content of VNF package for given vnfPkgIdPUT /api/vnfpkgm/v1/vnf_packages/{{vnfPkgId}}/package_contentResponse code:202OK
T204Get the content of VNF package for given vnfPkgIdGET /api/vnfpkgm/v1/vnf_packages/{{vnfPkgId}}/package_content

Response code:200

Body: content of VNF package

OK
T205Get the vnfd of VNF package for given vnfPkgIdGET /api/vnfpkgm/v1/vnf_packages/{{vnfPkgId}}1/vnfd

Response code:200

Body:  vnfd of VNF package

OK
T206Get the artifact from VNF package for given vnfPkgId & artifactPathGET /api/vnfpkgm/v1/vnf_packages/{{vnfPkgId}}/artifacts/{{artifactPath}}

Response code:200

Body: artifact

Need test again
T207Delete VNF packages according to vnfPkgIdDELETE /api/vnfpkgm/v1/vnf_packages/{{vnfPkgId}}Response code:204OK
T208Subscribe the notification related VNF package 

POST /api/vnfpkgm/v1/subscriptions

{
   "filters": {
      "notificationTypes": [
          "VnfPackageChangeNotification"
       ],
       "vnfPkgId": [
           "String"
       ]
     },
  "callbackUri": "String",
}

Response code:201OkOK
T209Get the subscriptions of VNF package GET /api/vnfpkgm/v1/subscriptions

Response code:200

Body: subscription list

OK
T210Get a subscription of VNF package according to subscriptionIdGET /api/vnfpkgm/v1/subscriptions/{{subscriptionId}}

Response code:200

Body: subscription

OK
T211Delete a subscription of VNF package according to subscriptionIdDELETE /api/vnfpkgm/v1/subscriptions/{{subscriptionId}}Response code:204OK

...