summaryrefslogtreecommitdiffstats
path: root/routing/routing-impl/src/test/resources/ipv4
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-01-12 10:46:28 +0100
committerJan Srnicek <jsrnicek@cisco.com>2017-01-12 14:07:40 +0000
commit765cb29e4c12c48fca6326c434b985e655bafc1a (patch)
treea30c03a4530826ae82e7fdfd73f1d45c117026b8 /routing/routing-impl/src/test/resources/ipv4
parent7cf98fe610c2912873bdf5fe5fea353adb9d2cbf (diff)
HONEYCOMB-325 - Null pointer while routing attr not defined
Fixes multiple null pointers Change-Id: Iaa1df9a8b0a886d1835fe7cb87bcf7cf5130c6f5 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'routing/routing-impl/src/test/resources/ipv4')
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithClassifier.json (renamed from routing/routing-impl/src/test/resources/ipv4/multiHopRouteWithClassifier.json)0
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithNoRouteAttrs.json28
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithoutClassifier.json (renamed from routing/routing-impl/src/test/resources/ipv4/multiHopRouteWithoutClassifier.json)0
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteNoRouteAttrs.json14
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteWithClassifier.json (renamed from routing/routing-impl/src/test/resources/ipv4/simpleHopRouteWithClassifier.json)0
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteWithoutClassifier.json (renamed from routing/routing-impl/src/test/resources/ipv4/simpleHopRouteWithoutClassifier.json)0
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteBlackhole.json (renamed from routing/routing-impl/src/test/resources/ipv4/specialHopRouteBlackhole.json)0
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteProhibited.json (renamed from routing/routing-impl/src/test/resources/ipv4/specialHopRouteProhibited.json)0
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteReceive.json (renamed from routing/routing-impl/src/test/resources/ipv4/specialHopRouteReceive.json)0
-rw-r--r--routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteUnreachable.json (renamed from routing/routing-impl/src/test/resources/ipv4/specialHopRouteUnreachable.json)0
10 files changed, 42 insertions, 0 deletions
diff --git a/routing/routing-impl/src/test/resources/ipv4/multiHopRouteWithClassifier.json b/routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithClassifier.json
index 99c987e03..99c987e03 100644
--- a/routing/routing-impl/src/test/resources/ipv4/multiHopRouteWithClassifier.json
+++ b/routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithClassifier.json
diff --git a/routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithNoRouteAttrs.json b/routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithNoRouteAttrs.json
new file mode 100644
index 000000000..71cefa6cb
--- /dev/null
+++ b/routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithNoRouteAttrs.json
@@ -0,0 +1,28 @@
+{
+ "static-routes": {
+ "ipv4": {
+ "route": [
+ {
+ "id": 1,
+ "destination-prefix": "192.168.2.1/24",
+ "next-hop-list": {
+ "next-hop": [
+ {
+ "id": "1",
+ "address": "192.168.2.1",
+ "outgoing-interface": "iface",
+ "weight": "2"
+ },
+ {
+ "id": "2",
+ "address": "192.168.2.2",
+ "outgoing-interface": "iface",
+ "weight": "3"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/routing/routing-impl/src/test/resources/ipv4/multiHopRouteWithoutClassifier.json b/routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithoutClassifier.json
index d4d4a0693..d4d4a0693 100644
--- a/routing/routing-impl/src/test/resources/ipv4/multiHopRouteWithoutClassifier.json
+++ b/routing/routing-impl/src/test/resources/ipv4/multihop/multiHopRouteWithoutClassifier.json
diff --git a/routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteNoRouteAttrs.json b/routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteNoRouteAttrs.json
new file mode 100644
index 000000000..d987bb6b1
--- /dev/null
+++ b/routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteNoRouteAttrs.json
@@ -0,0 +1,14 @@
+{
+ "static-routes": {
+ "ipv4": {
+ "route": [
+ {
+ "id": 1,
+ "destination-prefix": "192.168.2.1/24",
+ "next-hop": "192.168.2.2",
+ "outgoing-interface": "iface"
+ }
+ ]
+ }
+ }
+}
diff --git a/routing/routing-impl/src/test/resources/ipv4/simpleHopRouteWithClassifier.json b/routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteWithClassifier.json
index d00d9a06a..d00d9a06a 100644
--- a/routing/routing-impl/src/test/resources/ipv4/simpleHopRouteWithClassifier.json
+++ b/routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteWithClassifier.json
diff --git a/routing/routing-impl/src/test/resources/ipv4/simpleHopRouteWithoutClassifier.json b/routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteWithoutClassifier.json
index 0ef7cf765..0ef7cf765 100644
--- a/routing/routing-impl/src/test/resources/ipv4/simpleHopRouteWithoutClassifier.json
+++ b/routing/routing-impl/src/test/resources/ipv4/simplehop/simpleHopRouteWithoutClassifier.json
diff --git a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteBlackhole.json b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteBlackhole.json
index b2ddc238b..b2ddc238b 100644
--- a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteBlackhole.json
+++ b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteBlackhole.json
diff --git a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteProhibited.json b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteProhibited.json
index fe9faf44c..fe9faf44c 100644
--- a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteProhibited.json
+++ b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteProhibited.json
diff --git a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteReceive.json b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteReceive.json
index c967aa542..c967aa542 100644
--- a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteReceive.json
+++ b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteReceive.json
diff --git a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteUnreachable.json b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteUnreachable.json
index bae467fbd..bae467fbd 100644
--- a/routing/routing-impl/src/test/resources/ipv4/specialHopRouteUnreachable.json
+++ b/routing/routing-impl/src/test/resources/ipv4/specialhop/specialHopRouteUnreachable.json