diff options
author | 2020-03-03 09:01:58 +0000 | |
---|---|---|
committer | 2020-03-24 03:37:43 +0000 | |
commit | ba7629d1f122e64513203c3fad9139bb6e468712 (patch) | |
tree | f6a87b68aa7b0edd93aa80ea15f2acb0328e785f /test/mocks/prov-mns-provider/README.txt | |
parent | ebbd0c313e44fcbc7bd176371f9b33d1ecf5c97c (diff) |
Add the provisioning management service provider for 5G NRM CM
Issue-ID: INT-1387
Signed-off-by: Huang Cheng <duke.huangcheng@huawei.com>
Change-Id: I23bda3ec2a31569d4857b2f16b9a607c64abd9f0
Diffstat (limited to 'test/mocks/prov-mns-provider/README.txt')
-rw-r--r-- | test/mocks/prov-mns-provider/README.txt | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/test/mocks/prov-mns-provider/README.txt b/test/mocks/prov-mns-provider/README.txt new file mode 100644 index 000000000..130d3b383 --- /dev/null +++ b/test/mocks/prov-mns-provider/README.txt @@ -0,0 +1,60 @@ +Python Dependence: python 3.6.x + + +1. To specify the supported NRM function in DefinedNRMFunction.json + + +2. To specify the HTTP server configuration info in ConfigInfo.json + + +3. To specify the User info in UserInfo.json + + +4. To specify the pre-set-MOI info in preSetMOI.json + + +5. To run the HTTP EMS simulator: python ProvMnSProvider.py + +Build the image by using the command: docker build . -t prov-mns-provider +Create the container and start the service by using the command: docker-compose up -d + +The default port number of ProvMnSProvider is : 8000 + +The default username&password of ProvMnSProvider is : root&root + +ProvMnSProvider provdies four RESTful APIs: + +1. Sample PUT request to Create MOI + PUT /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805 + { + "data": { + "attributes": { + "pLMNId": { + "mnc": "01", + "mcc": "001" + }, + "gNBId": "1", + "gNBIdLength": "5", + "gNBCUName": "gnb-01" + }, + "href": "/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805", + "class": "GNBCUCPFunction", + "id": "35c369d0-2681-4225-9755-daf98fd20805" + } + } + +2. Sample GET request to get MOI attributes + GET /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction&fields=gNBId&fields=gNBIdLength + +3. Sample PATCH request to modify MOI attributes + PATCH /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction + { + "data": { + "pLMNId": "xxx", + "gNBId": "1234", + "gNBIdLength": "4" + } + } + +4. Sample DELETE request to delete MOI + DELETE /ProvisioningMnS/v1500/GNBCUCPFunction/35c369d0-2681-4225-9755-daf98fd20805?scope=BASE_ONLY&filter=GNBCUCPFunction |