summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-09-10 15:25:16 +0800
committerxu ran <xuranyjy@chinamobile.com>2019-09-10 07:46:08 +0000
commitbf21900f3e8e48b14ed82fa48a098effd9652594 (patch)
treefd1146b49ac7d4ec0609d8b5fb1e4747df3da4ea /usecaseui-portal
parent84cbc5952d84789ca612602794c37b7205c83ac1 (diff)
feat: add local mock data for the onboard page
Change-Id: Ie1edacb4e20712e4af03d9bff0a4f0dc53911331 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal')
-rw-r--r--usecaseui-portal/src/app/mock/json/nsd_content.json5
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_createNetworkServiceData.json44
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_createPnfData.json34
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_createVnfData.json67
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_deleteNsdPackage.json5
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_deletePnfPackage.json5
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_deleteVnfPackage.json5
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_jobs_progress.json5
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_sdc-ns-packages.json58
-rw-r--r--usecaseui-portal/src/app/mock/json/uui-lcm_sdc-vf-packages.json26
10 files changed, 254 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/mock/json/nsd_content.json b/usecaseui-portal/src/app/mock/json/nsd_content.json
new file mode 100644
index 00000000..3281d222
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/nsd_content.json
@@ -0,0 +1,5 @@
+{
+ "status": "200",
+ "statusDescription": "success",
+ "errorCode": "1"
+}
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_createNetworkServiceData.json b/usecaseui-portal/src/app/mock/json/uui-lcm_createNetworkServiceData.json
new file mode 100644
index 00000000..65291751
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_createNetworkServiceData.json
@@ -0,0 +1,44 @@
+{
+ "id": "001",
+ "nsdId": "string",
+ "nsdName": "string",
+ "nsdVersion": "string",
+ "nsdDesigner": "string",
+ "nsdInvariantId": "string",
+ "vnfPkgIds": [
+ "string"
+ ],
+ "pnfdInfoIds": [
+ "string"
+ ],
+ "nestedNsdInfoIds": [
+ "string"
+ ],
+ "nsdOnboardingState": "CREATED",
+ "onboardingFailureDetails": {
+ "type": "string",
+ "title": 0,
+ "detail": "string",
+ "instance": "string",
+ "additional_attributes": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ }
+ },
+ "nsdOperationalState": "ENABLED",
+ "nsdUsageState": "IN_USE",
+ "userDefinedData": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ },
+ "_links": {
+ "self": {
+ "href": "string"
+ },
+ "nsd_content": {
+ "href": "string"
+ }
+ }
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_createPnfData.json b/usecaseui-portal/src/app/mock/json/uui-lcm_createPnfData.json
new file mode 100644
index 00000000..90538058
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_createPnfData.json
@@ -0,0 +1,34 @@
+{
+ "id": "003",
+ "pnfdId": "string",
+ "pnfdName": "string",
+ "pnfdVersion": "string",
+ "pnfdProvider": "string",
+ "pnfdInvariantId": "string",
+ "pnfdOnboardingState": "CREATED",
+ "onboardingFailureDetails": {
+ "type": "string",
+ "title": 0,
+ "detail": "string",
+ "instance": "string",
+ "additional_attributes": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ }
+ },
+ "pnfdUsageState": "IN_USE",
+ "userDefinedData": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ },
+ "_links": {
+ "self": {
+ "href": "string"
+ },
+ "nsd_content": {
+ "href": "string"
+ }
+ }
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_createVnfData.json b/usecaseui-portal/src/app/mock/json/uui-lcm_createVnfData.json
new file mode 100644
index 00000000..4dc24217
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_createVnfData.json
@@ -0,0 +1,67 @@
+{
+ "id": "002",
+ "vnfdId": "string",
+ "vnfProvider": "string",
+ "vnfProductName": "string",
+ "vnfSoftwareVersion": "string",
+ "vnfdVersion": "string",
+ "checksum": {
+ "algorithm": "string",
+ "hash": "string"
+ },
+ "softwareImages": [
+ {
+ "id": "string",
+ "name": "string",
+ "provider": "string",
+ "version": "string",
+ "checksum": {
+ "algorithm": "string",
+ "hash": "string"
+ },
+ "containerFormat": "AKI",
+ "diskFormat": "AKI",
+ "createdAt": "2018-10-18T07:07:02.734Z",
+ "minDisk": 0,
+ "minRam": 0,
+ "size": 0,
+ "userMetadata": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ },
+ "imagePath": "string"
+ }
+ ],
+ "additionalArtifacts": [
+ {
+ "artifactPath": "string",
+ "checksum": {
+ "algorithm": "string",
+ "hash": "string"
+ },
+ "metadata": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ }
+ }
+ ],
+ "onboardingState": "CREATED",
+ "operationalState": "ENABLED",
+ "usageState": "IN_USE",
+ "userDefinedData": {
+ "additionalProp1": "string",
+ "additionalProp2": "string",
+ "additionalProp3": "string"
+ },
+ "_links": {
+ "self": {
+ "href": "string"
+ },
+ "nsd_content": {
+ "href": "string"
+ }
+ }
+ }
+ \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_deleteNsdPackage.json b/usecaseui-portal/src/app/mock/json/uui-lcm_deleteNsdPackage.json
new file mode 100644
index 00000000..41c06ec5
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_deleteNsdPackage.json
@@ -0,0 +1,5 @@
+{
+ "status": "200",
+ "statusDescription": "success",
+ "errorCode": "1"
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_deletePnfPackage.json b/usecaseui-portal/src/app/mock/json/uui-lcm_deletePnfPackage.json
new file mode 100644
index 00000000..41c06ec5
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_deletePnfPackage.json
@@ -0,0 +1,5 @@
+{
+ "status": "200",
+ "statusDescription": "success",
+ "errorCode": "1"
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_deleteVnfPackage.json b/usecaseui-portal/src/app/mock/json/uui-lcm_deleteVnfPackage.json
new file mode 100644
index 00000000..41c06ec5
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_deleteVnfPackage.json
@@ -0,0 +1,5 @@
+{
+ "status": "200",
+ "statusDescription": "success",
+ "errorCode": "1"
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_jobs_progress.json b/usecaseui-portal/src/app/mock/json/uui-lcm_jobs_progress.json
new file mode 100644
index 00000000..1f60b445
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_jobs_progress.json
@@ -0,0 +1,5 @@
+{
+ "responseDescriptor":{
+ "progress": "99"
+ }
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_sdc-ns-packages.json b/usecaseui-portal/src/app/mock/json/uui-lcm_sdc-ns-packages.json
new file mode 100644
index 00000000..29f12d5b
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_sdc-ns-packages.json
@@ -0,0 +1,58 @@
+[
+ {
+ "uuid": "u01",
+ "invariantUUID": "01",
+ "name": "sdc",
+ "version": "v01",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_ns"
+ },
+ {
+ "uuid": "u02",
+ "invariantUUID": "02",
+ "name": "sdc",
+ "version": "v02",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_ns"
+ },
+ {
+ "uuid": "u03",
+ "invariantUUID": "03",
+ "name": "sdc",
+ "version": "v03",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_ns"
+ },
+ {
+ "uuid": "u03",
+ "invariantUUID": "04",
+ "name": "sdc",
+ "version": "v03",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_ns"
+ },
+ {
+ "uuid": "u03",
+ "invariantUUID": "05",
+ "name": "sdc",
+ "version": "v03",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_ns"
+ },
+ {
+ "uuid": "u03",
+ "invariantUUID": "06",
+ "name": "sdc",
+ "version": "v03",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_ns"
+ },
+ {
+ "uuid": "u03",
+ "invariantUUID": "03",
+ "name": "sdc",
+ "version": "v03",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_ns"
+ }
+] \ No newline at end of file
diff --git a/usecaseui-portal/src/app/mock/json/uui-lcm_sdc-vf-packages.json b/usecaseui-portal/src/app/mock/json/uui-lcm_sdc-vf-packages.json
new file mode 100644
index 00000000..428bc0ff
--- /dev/null
+++ b/usecaseui-portal/src/app/mock/json/uui-lcm_sdc-vf-packages.json
@@ -0,0 +1,26 @@
+[
+ {
+ "uuid": "vnf01",
+ "invariantUUID": "01",
+ "name": "sdc",
+ "version": "v01",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_vnf"
+ },
+ {
+ "uuid": "vnf02",
+ "invariantUUID": "02",
+ "name": "sdc",
+ "version": "v02",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_vnf"
+ },
+ {
+ "uuid": "vnf03",
+ "invariantUUID": "03",
+ "name": "sdc",
+ "version": "v03",
+ "toscaModelURL": "ssURL",
+ "category": "sdc_vnf"
+ }
+] \ No newline at end of file