Versions Compared

Key

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

...

Test case ID1
Test case name5G NRM CM config-deploy Test
Test case descriptionTrigger the config-deploy workflow to create multiple MOIs (Management Object Instance)
ReleaseFrankfurt
Pre-conditions
  1. run the Provision MnS provider
  2. upload the corresponding blueprint
Testing Steps


Test Command 
curl -s -k -u "ccsdkapps:ccsdkapps" -H "Content-Type: application/json" -H "Accept: application/json" -X POST http://cds.onap:port/api/v1/execution-service/process -d @NRM_create.json | python -m json.tool


NRM_create.json

{

  "commonHeader": {

    "originatorId": "CurlTest",

    "requestId": "1234-5678",

    "subRequestId": "5678-9012"

  },

  "actionIdentifiers": {

    "blueprintName": "NRMblueprint",

    "blueprintVersion": "1.0.0",

    "actionName": "config-deploy",

    "mode": "sync"

  },

  "payload": {

     "config-deploy-request": {

      "config-deploy-properties":{

        "service-instance-id":"PNF_service_1",

        "pnf-id":"PNF1",

        "pnf-name":"PNF1",

        "service-model-uuid":"90e00209-779b-4732-b0f1-7d7dfa88745c",

        "pnf-customization-uuid":"e65d3f05-9558-4e58-aeb0-3a1eae1db742",

        "managed-object-instances":[{

          "className":"GNBCUCPFunction",

          "data":{

            "gNBId":"1",

            "gNBIdLength":"5",

            "gNBCUName":"gnb-01",

            "pLMNId":{

              "mcc":"001",

              "mnc":"01"

            }

            }

          },

          {

          "className":"GNBCUUPFunction",

          "data":{         

            "gNBId":"1",

            "gNBIdLength":"5",

            "pLMNId":{

              "mcc":"001",

              "mnc":"01"

            }

            }

          },

          {

          "className":"GNBDUFunction",

          "data":{         

            "gNBDUId":"1",

            "gNBDUName":"gnb-01",

            "gNBId":"1",

            "gNBIdLength":"5",

            "pLMNId":{

              "mcc":"001",

              "mnc":"01"

            }

            }

          }

          ]

      }

     }

  }

}


Response of CDS

{

    "actionIdentifiers": {

        "actionName": "config-deploy",

        "blueprintName": "NRMblueprint",

        "blueprintVersion": "1.0.0",

        "mode": "sync"

    },

    "commonHeader": {

        "flags": null,

        "originatorId": "CurlTest",

        "requestId": "1234-5678",

        "subRequestId": "5678-9012",

        "timestamp": "2020-03-13T06:11:33.218Z"

    },

    "payload": {

        "config-deploy-response": {

            "result": {

                    "/GNBCUCPFunction/f64bc1a8-28c1-4da2-81e8-b5963b4b4e70": {

                        "body": {

                            "data": {

                                "attributes": {

                                    "gNBCUName": "gnb-01",

                                    "gNBId": "1",

                                    "gNBIdLength": "5",

                                    "pLMNId": {

                                        "mcc": "001",

                                        "mnc": "01"

                                    }

                                },

                                "class": "GNBCUCPFunction",

                                "href": "/GNBCUCPFunction/f64bc1a8-28c1-4da2-81e8-b5963b4b4e70",

                                "id": "f64bc1a8-28c1-4da2-81e8-b5963b4b4e70"

                            }

                        },

                        "status": 201

                    },

                    "/GNBCUUPFunction/2a78c55a-2762-4d15-9204-037ca6fecf87": {

                        "body": {

                            "data": {

                                "attributes": {

                                    "gNBId": "1",

                                    "gNBIdLength": "5",

                                    "pLMNId": {

                                        "mcc": "001",

                                        "mnc": "01"

                                    }

                                },

                                "class": "GNBCUUPFunction",

                                "href": "/GNBCUUPFunction/2a78c55a-2762-4d15-9204-037ca6fecf87",

                                "id": "2a78c55a-2762-4d15-9204-037ca6fecf87"

                            }

                        },

                        "status": 201

                    },

                    "/GNBDUFunction/261690cc-f221-45e0-86e6-2b980cb8e808": {

                        "body": {

                            "data": {

                                "attributes": {

                                    "gNBDUId": "1",

                                    "gNBDUName": "gnb-01",

                                    "gNBId": "1",

                                    "gNBIdLength": "5",

                                    "pLMNId": {

                                        "mcc": "001",

                                        "mnc": "01"

                                    }

                                },

                                "class": "GNBDUFunction",

                                "href": "/GNBDUFunction/261690cc-f221-45e0-86e6-2b980cb8e808",

                                "id": "261690cc-f221-45e0-86e6-2b980cb8e808"

                            }

                        },

                        "status": 201

                    }

                }

            }

    },

    "status": {

        "code": 200,

        "errorMessage": null,

        "eventType": "EVENT_COMPONENT_EXECUTRD",

        "message": "success",

        "timestamp": "2020-03-13T06:11:33.331Z"

    },

"stepData": {

   “name”: “config-deploy-process”,

   “properties”: {

    “response-data”: “”,

    “status”: “success”

}

}

}


Conclusion (Pass /Fail)PASS
Test lab


Test case ID2
Test case name5G NRM CM config-get Test
Test case descriptionTrigger the config-get workflow to get multiple MOIs attributes (Management Object Instance)
ReleaseFrankfurt
Pre-conditions
  1. run the Provision MnS provider
  2. upload the corresponding blueprint
  3. already create some MOIs
Testing Steps


Test Command 
curl -s -k -u "ccsdkapps:ccsdkapps" -H "Content-Type: application/json" -H "Accept: application/json" -X POST http://cds.onap:port/api/v1/execution-service/process -d @NRM_get.json | python -m json.tool


NRM_get.json

{

  "commonHeader": {

    "originatorId": "CurlTest",

    "requestId": "1234-5678",

    "subRequestId": "5678-9012"

  },

  "actionIdentifiers": {

    "blueprintName": "NRMblueprint",

    "blueprintVersion": "1.0.0",

    "actionName": "config-get",

    "mode": "sync"

  },

  "payload": {

     "config-get-request": {

      "config-get-properties":{

        "service-instance-id":"PNF_service_1",

        "pnf-id":"PNF1",

        "pnf-name":"PNF1",

        "service-model-uuid":"90e00209-779b-4732-b0f1-7d7dfa88745c",

        "pnf-customization-uuid":"e65d3f05-9558-4e58-aeb0-3a1eae1db742",

        "managed-object-instances":[{

          "className":"GNBCUCPFunction",

          "id":"e65d3f05-9558-4e58-aeb0-3a1eae1db742",

          "scope":"BASE_ONLY",

          "filter":"GNBCUCPFunction",

          "fields":["gNBId","gNBIdLength"]

          }

          ]

      }

     }

  }

}

      


Response of CDS

{

    "actionIdentifiers": {

        "actionName": "config-get",

        "blueprintName": "NRMblueprint",

        "blueprintVersion": "1.0.0",

        "mode": "sync"

    },

    "commonHeader": {

        "flags": null,

        "originatorId": "CurlTest",

        "requestId": "1234-5678",

        "subRequestId": "5678-9012",

        "timestamp": "2020-03-13T06:13:43.166Z"

    },

    "payload": {

        "config-get-response": {

            "result": {

                "response": {

                    "/GNBCUCPFunction/e65d3f05-9558-4e58-aeb0-3a1eae1db742": {

                        "body": {

                            "data": [

                                    {

                                        "attributes": {

                                            "gNBId": "1",

                                            "gNBIdLength": "5"

                                        },

                                        "class": "GNBCUCPFunction",

                                        "href": "/GNBCUCPFunction/e65d3f05-9558-4e58-aeb0-3a1eae1db742",

                                        "id": "e65d3f05-9558-4e58-aeb0-3a1eae1db742"

                                    }

                                ]

                        },

                        "status": 200

                    }

                }

            }

        }

    },

    "status": {

        "code": 200,

        "errorMessage": null,

        "eventType": "EVENT_COMPONENT_EXECUTRD",

        "message": "success",

        "timestamp": "2020-03-13T06:11:33.331Z"

    },

"stepData": {

         “name”: “config-get-process”,

         “properties”: {

            “response-data”: “”,

            “status”: “success”

}

}

}       


Conclusion (Pass /Fail)PASS
Test lab

Reference

Discussion Materials

...