[CORD-2957]New tests for VOLTDevice and PONPORT with framework edits
Change-Id: I130875a34372220b3ce25b89c999c264eefc8f24
diff --git a/src/test/cord-api/Tests/data/Ch_Subscriber.json b/src/test/cord-api/Tests/data/Ch_Subscriber.json
index e194a2e..44bf456 100644
--- a/src/test/cord-api/Tests/data/Ch_Subscriber.json
+++ b/src/test/cord-api/Tests/data/Ch_Subscriber.json
@@ -8,8 +8,9 @@
"status": "enabled",
"service_specific_id": "304",
"name": "My House-304",
- "s_tag": 333,
- "c_tag": 888
+ "c_tag": 888,
+ "olt_device": "volt-1",
+ "olt_port": "volt-port-1"
},
{
"cdn_enable": false,
@@ -19,16 +20,18 @@
"status": "enabled",
"service_specific_id": "305",
"name": "My House-305",
- "s_tag": 555,
- "c_tag": 999
+ "c_tag": 999,
+ "olt_device": "volt-2",
+ "olt_port": "volt-port-2"
},
{
"cdn_enable": true,
"uplink_speed": 500000000,
"service_specific_id": "306",
"name": "My House-306",
- "s_tag": 666,
- "c_tag": 661
+ "c_tag": 661,
+ "olt_device": "volt-3",
+ "olt_port": "volt-port-3"
}
]
}
diff --git a/src/test/cord-api/Tests/data/PONPort.json b/src/test/cord-api/Tests/data/PONPort.json
new file mode 100644
index 0000000..da28e42
--- /dev/null
+++ b/src/test/cord-api/Tests/data/PONPort.json
@@ -0,0 +1,19 @@
+{
+ "PONPortInfo" : [
+ {
+ "name": "volt-port-1",
+ "s_tag": 222,
+ "olt_device_id": 1
+ },
+ {
+ "name": "volt-port-2",
+ "s_tag": 444,
+ "olt_device_id": 1
+ },
+ {
+ "name": "volt-port-3",
+ "s_tag": 333,
+ "olt_device_id": 1
+ }
+ ]
+}
diff --git a/src/test/cord-api/Tests/data/VOLTDevice.json b/src/test/cord-api/Tests/data/VOLTDevice.json
new file mode 100644
index 0000000..03b8eb1
--- /dev/null
+++ b/src/test/cord-api/Tests/data/VOLTDevice.json
@@ -0,0 +1,34 @@
+{
+ "VOLTDeviceInfo" : [
+ {
+ "device_type": "simulate_olt",
+ "host": "172.17.0.1",
+ "port": 50060,
+ "switch_datapath_id": "of:0000000ce2314000",
+ "switch_port": "5",
+ "outer_tpid": "0x8100",
+ "name": "volt-1",
+ "volt_service_id": 1
+ },
+ {
+ "device_type": "asf_olt",
+ "host": "172.17.0.2",
+ "port": 50060,
+ "switch_datapath_id": "of:0000000ce2315000",
+ "switch_port": "5",
+ "outer_tpid": "0x8100",
+ "name": "volt-2",
+ "volt_service_id": 1
+ },
+ {
+ "device_type": "ponsim_olt",
+ "host": "172.17.0.3",
+ "port": 50060,
+ "switch_datapath_id": "of:0000000ce2316000",
+ "switch_port": "5",
+ "outer_tpid": "0x8100",
+ "name": "volt-3",
+ "volt_service_id": 1
+ }
+ ]
+}