Fix JSON files linter issues in test/mocks/pnfsimulator 09/102409/3
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 26 Feb 2020 14:16:20 +0000 (15:16 +0100)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 2 Mar 2020 14:20:42 +0000 (14:20 +0000)
This is needed prior to adding job for JSON
files linting in CI.

Change-Id: Ia5fadb693a74bc307d24c9de89131efcbb133ebe
Issue-ID: INT-1451
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
18 files changed:
test/mocks/pnfsimulator/deployment/src/MANIFEST.json
test/mocks/pnfsimulator/pnfsimulator/config/config.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/notification.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/overwrite_template.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/overwritten_template.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/registration.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/search/complicated_template.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/search/simple_template.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/search/template_with_array.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/search/template_with_booleans.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/search/template_with_floats.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/search/template_with_ints.json
test/mocks/pnfsimulator/pnfsimulator/integration/src/test/resources/templates/upload_template.json
test/mocks/pnfsimulator/pnfsimulator/src/test/resources/org/onap/pnfsimulator/simulator/filesystem/test1.json
test/mocks/pnfsimulator/pnfsimulator/templates/measurement.json
test/mocks/pnfsimulator/pnfsimulator/templates/notification.json
test/mocks/pnfsimulator/pnfsimulator/templates/registration.json
test/mocks/pnfsimulator/simulator-cli/tests/resources/notification.json

index fecdda9..1065b6e 100644 (file)
@@ -1,17 +1,17 @@
 {
-    "name": "",
-    "description": "",
-    "data": [
+  "name": "",
+  "description": "",
+  "data": [
+    {
+      "file": "simulators_heat_template.yaml",
+      "type": "HEAT",
+      "isBase": "true",
+      "data": [
         {
-            "file": "simulators_heat_template.yaml",
-            "type": "HEAT",
-            "isBase": "true",
-            "data": [
-                {
-                    "file": "simulators_heat_template.env",
-                    "type": "HEAT_ENV"
-                }
-            ]
+          "file": "simulators_heat_template.env",
+          "type": "HEAT_ENV"
         }
-    ]
+      ]
+    }
+  ]
 }
index 819f7d7..af45632 100644 (file)
@@ -5,5 +5,5 @@
     "repeatCount": 2
   },
   "templateName": "notification.json",
-  "patch":{}
-}
\ No newline at end of file
+  "patch": {}
+}
index 6ef87c5..89e4a76 100644 (file)
@@ -2,7 +2,11 @@
   "field1": "value1",
   "field2": 2,
   "nested": {
-    "key1": [1, 2, 3],
+    "key1": [
+      1,
+      2,
+      3
+    ],
     "key2": "sampleValue2"
   }
-}
\ No newline at end of file
+}
index 182003d..a29b063 100644 (file)
@@ -19,7 +19,7 @@
       "measurementInterval": 180,
       "concurrentSessions": 2,
       "requestRate": "#RandomPrimitiveInteger(50,100)",
-      "meanRequestLatency":  "#RandomPrimitiveInteger(1,1000)",
+      "meanRequestLatency": "#RandomPrimitiveInteger(1,1000)",
       "cpuUsageArray": [
         {
           "cpuIdentifier": "INTEL_CORE_I7_1",
@@ -38,8 +38,7 @@
         }
       ],
       "numberOfMediaPortsInUse": 100,
-      "additionalMeasurements": [
-      ]
+      "additionalMeasurements": []
     }
   }
 }
index 5657a50..74888fb 100644 (file)
     "notificationFields": {
       "changeIdentifier": "PM_MEAS_FILES",
       "changeType": "FileReady",
-      "arrayOfNamedHashMap": [{
-        "name": "A20161221.1031-1041.bin.gz",
-        "hashMap": {
-          "fileformatType": "org.3GPP.32.435#measCollec",
-          "fileFormatVersion": "V10",
-          "location": "ftpes://192.169.0.1:22/ftp/rop/A20161224.1030-1045.bin.gz",
-          "compression": "gzip"
+      "arrayOfNamedHashMap": [
+        {
+          "name": "A20161221.1031-1041.bin.gz",
+          "hashMap": {
+            "fileformatType": "org.3GPP.32.435#measCollec",
+            "fileFormatVersion": "V10",
+            "location": "ftpes://192.169.0.1:22/ftp/rop/A20161224.1030-1045.bin.gz",
+            "compression": "gzip"
+          }
+        },
+        {
+          "name": "A20161222.1042-1102.bin.gz",
+          "hashMap": {
+            "fileFormatType": "org.3GPP.32.435#measCollec",
+            "fileFormatVersion": "V10",
+            "location": "ftpes://192.168.0.102:22/ftp/rop/A20161224.1045-1100.bin.gz",
+            "compression": "gzip"
+          }
         }
-      }, {
-        "name": "A20161222.1042-1102.bin.gz",
-        "hashMap": {
-          "fileFormatType": "org.3GPP.32.435#measCollec",
-          "fileFormatVersion": "V10",
-          "location": "ftpes://192.168.0.102:22/ftp/rop/A20161224.1045-1100.bin.gz",
-          "compression": "gzip"
-        }
-      }],
+      ],
       "notificationFieldsVersion": "2.0"
     }
-
   }
-}
\ No newline at end of file
+}
index 5a3261f..5c4dea5 100644 (file)
@@ -19,7 +19,7 @@
       "lastEpochMicrosec": 1539239592379
     },
     "pnfRegistrationFields": {
-      "pnfRegistrationFieldsVersion":"2.0",
+      "pnfRegistrationFieldsVersion": "2.0",
       "serialNumber": "6061ZW3",
       "vendorName": "Nokia",
       "oamV4IpAddress": "val3",
@@ -30,4 +30,4 @@
       "unitType": "val8"
     }
   }
-}
\ No newline at end of file
+}
index bdba8ae..ca9641e 100644 (file)
@@ -1,15 +1,17 @@
 {
-    "commonEventHeader": {
-      "domain": "notification",
-      "eventName": "#RandomString(20)",
-      "version": "4.0.1"
-    },
-    "notificationFields": {
-      "arrayOfNamedHashMap": [{
+  "commonEventHeader": {
+    "domain": "notification",
+    "eventName": "#RandomString(20)",
+    "version": "4.0.1"
+  },
+  "notificationFields": {
+    "arrayOfNamedHashMap": [
+      {
         "name": "A20161221.1031-1041.bin.gz",
         "hashMap": {
           "fileformatType": "org.3GPP.32.435#measCollec"
         }
-      }]
-    }
-}
\ No newline at end of file
+      }
+    ]
+  }
+}