summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/mock
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/mock')
-rw-r--r--usecaseui-portal/src/app/mock/json/slicing_instance.json22
-rw-r--r--usecaseui-portal/src/app/mock/json/slicing_subnet_context.json27
-rw-r--r--usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json14
-rw-r--r--usecaseui-portal/src/app/mock/routes.js5
4 files changed, 67 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/mock/json/slicing_instance.json b/usecaseui-portal/src/app/mock/json/slicing_instance.json
new file mode 100644
index 00000000..11c7f7bf
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/slicing_instance.json
@@ -0,0 +1,22 @@
+{
+ "result_header": {
+ "result_code": "200",
+ "result_message": "5G slicing NSI service instances result."
+ },
+ "result_body": {
+ "record_number": 2,
+ "nsi_service_instances": [
+ {
+ "service_instance_order": "1",
+ "service_instance_id": "46da8cf8-0878-48ac-bea3-f2200959411a",
+ "service_instance_name": "eMBB instancel"
+ },
+ {
+ "service_instance_order": "2",
+ "service_instance_id": "46da8cf8-0878-48bc-bea3-f2200959411a",
+ "service_instance_name": "eMBB instance2"
+ }
+ ]
+ }
+}
+
diff --git a/usecaseui-portal/src/app/mock/json/slicing_subnet_context.json b/usecaseui-portal/src/app/mock/json/slicing_subnet_context.json
new file mode 100644
index 00000000..b44d2135
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/slicing_subnet_context.json
@@ -0,0 +1,27 @@
+{
+ "result_header":{
+ "result_code":"200",
+ "result_message":"5G slicing NSSI query based on environment context result."
+ },
+ "result_body":{
+ "record_number":2,
+ "nssi_service_instances":[
+ {
+ "service_instance_order":"1",
+ "service_instance_id":"NSSI-C-001-HDBNJ-NSSMF-01-A-ZX",
+ "service_instance_name":"slicing_core_notwork",
+ "service_type":"slicing_core_notwork",
+ "environment_context":"cn",
+ "orchestration_status":"activated"
+ },
+ {
+ "service_instance_order":"2",
+ "service_instance_id":"NSSI-C-001-HDBNJ-NSSMF-01-A-ZX",
+ "service_instance_name":"slicing_core_notwork",
+ "service_type":"slicing_core_notwork",
+ "environment_context":"cn",
+ "orchestration_status":"activated"
+ }
+ ]
+ }
+}
diff --git a/usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json b/usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json
new file mode 100644
index 00000000..62e690a6
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/slicing_subnet_instance.json
@@ -0,0 +1,14 @@
+{
+ "result_header": {
+ "result_code": "200",
+ "result_message": "NSSI associated with NSI result."
+ },
+ "result_body": {
+ "an_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411a",
+ "an_suggest_nssi_name": "eMBBANinstance1",
+ "tn_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411a",
+ "tn_suggest_nssi_name": "eMBBTNinstance1",
+ "cn_suggest_nssi_id": "46da8cf8-0878-48ac-bea3-f2200959411a",
+ "cn_suggest_nssi_name": "eMBBCNinstance1"
+ }
+}
diff --git a/usecaseui-portal/src/app/mock/routes.js b/usecaseui-portal/src/app/mock/routes.js
index fe982ca5..4f91b651 100644
--- a/usecaseui-portal/src/app/mock/routes.js
+++ b/usecaseui-portal/src/app/mock/routes.js
@@ -91,10 +91,13 @@ module.exports =
"/POST/uui-lcm/vf-packages": "/POST_uui-lcm_vf-packages",
"/POST/uui-lcm/:jsonData": "/POST_uui-lcm_create",
- ///////<-------------slicing-tesk-management--------->/////
+ ///////<-------------slicing--------->/////
"/uui-slicing/nsmf/task/business/pageNo/:pageNo/pageSize/:pageSize": "/slicing_task_list",
"/uui-slicing/nsmf/task/:processingStatus/business/pageNo/:pageNo/pageSize/:pageSize": "/slicing_task_processing_status",
"/uui-slicing/nsmf/task/:taskId/auditInfo": "/slicing_task_auditInfo",
+ "/uui-slicing/nsmf/resource/nsi/instances/pageNo/:pageNo/pageSize/:pageSize": "/slicing_instance",
+ "/uui-slicing/nsmf/resource/nsi/:nsiId/nssiInstances": "/slicing_subnet_instance",
+ "/uui-slicing/nsmf/resource/nssi/:environmentContext/instances/pageNo/:pageNo/pageSize/:pageSize": "/slicing_subnet_context",
///////<-------------general interface--------->/////
"/api/*": "/$1",