From ba7629d1f122e64513203c3fad9139bb6e468712 Mon Sep 17 00:00:00 2001 From: Huang Cheng Date: Tue, 3 Mar 2020 09:01:58 +0000 Subject: Add the provisioning management service provider for 5G NRM CM Issue-ID: INT-1387 Signed-off-by: Huang Cheng Change-Id: I23bda3ec2a31569d4857b2f16b9a607c64abd9f0 --- test/mocks/prov-mns-provider/README.txt | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 test/mocks/prov-mns-provider/README.txt (limited to 'test/mocks/prov-mns-provider/README.txt') 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 -- cgit 1.2.3-korg