Skip to content
Snippets Groups Projects
Commit 82ff7793 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI component - Debug API

- Updated unitary tests
- Added test descriptor file
parent 9cc2fb42
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!195Resolve "(CTTC) NBI unitary tests not running and/or not working"
{
"dummy_mode": true,
"contexts": [
{
"context_id": {"context_uuid": {"uuid": "admin"}},
"name": "admin",
"topology_ids": [
{"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
],
"service_ids": [
{"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "admin"}},
{"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "admin"}},
{"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "admin"}}
],
"slice_ids": [
{"context_id": {"context_uuid": {"uuid": "admin"}}, "slice_uuid": {"uuid": "admin"}}
]
}
],
"topologies": [
{
"device_ids": [
{"device_uuid": {"uuid": "R1"}},
{"device_uuid": {"uuid": "R2"}},
{"device_uuid": {"uuid": "R3"}}
],
"link_ids": [
{"link_uuid": {"uuid": "R1/502==R2/501"}},
{"link_uuid": {"uuid": "R1/503==R3/501"}},
{"link_uuid": {"uuid": "R2/501==R1/502"}},
{"link_uuid": {"uuid": "R2/503==R3/502"}},
{"link_uuid": {"uuid": "R3/501==R1/503"}},
{"link_uuid": {"uuid": "R3/502==R2/503"}}
],
"name": "admin",
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}
],
"devices": [
{
"device_id": {"device_uuid": {"uuid": "R1"}}, "name": "R1", "device_type": "emu-packet-router",
"device_drivers": [0], "device_operational_status": 2,
"device_endpoints": [
{"name": "200", "endpoint_type": "copper", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "200"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}},
{"name": "502", "endpoint_type": "optical", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "502"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}},
{"name": "503", "endpoint_type": "optical", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "503"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}}
],
"device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": 0}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
{"uuid": "200", "name": "200", "type": "copper"},
{"uuid": "502", "name": "502", "type": "optical"},
{"uuid": "503", "name": "503", "type": "optical"}
]}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[200]", "resource_value": {
"uuid": "200", "name": "200", "type": "copper"
}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[502]", "resource_value": {
"uuid": "502", "name": "502", "type": "optical"
}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[503]", "resource_value": {
"uuid": "503", "name": "503", "type": "optical"
}}}
]}
},
{
"device_id": {"device_uuid": {"uuid": "R2"}}, "name": "R2", "device_type": "emu-packet-router",
"device_drivers": [0], "device_operational_status": 2,
"device_endpoints": [
{"name": "200", "endpoint_type": "copper", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "200"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}},
{"name": "501", "endpoint_type": "optical", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "501"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}},
{"name": "503", "endpoint_type": "optical", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "503"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}}
],
"device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": 0}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
{"uuid": "200", "name": "200", "type": "copper"},
{"uuid": "501", "name": "501", "type": "optical"},
{"uuid": "503", "name": "503", "type": "optical"}
]}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[200]", "resource_value": {
"uuid": "200", "name": "200", "type": "copper"
}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[501]", "resource_value": {
"uuid": "501", "name": "501", "type": "optical"
}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[503]", "resource_value": {
"uuid": "503", "name": "503", "type": "optical"
}}}
]}
},
{
"device_id": {"device_uuid": {"uuid": "R3"}}, "name": "R3", "device_type": "emu-packet-router",
"device_drivers": [0], "device_operational_status": 2,
"device_endpoints": [
{"name": "200", "endpoint_type": "copper", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R3"}}, "endpoint_uuid": {"uuid": "200"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}},
{"name": "502", "endpoint_type": "optical", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R3"}}, "endpoint_uuid": {"uuid": "502"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}},
{"name": "503", "endpoint_type": "optical", "endpoint_id": {
"device_id": {"device_uuid": {"uuid": "R3"}}, "endpoint_uuid": {"uuid": "503"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}}
],
"device_config": {"config_rules": [
{"action": 1, "custom": {"resource_key": "_connect/address", "resource_value": "127.0.0.1"}},
{"action": 1, "custom": {"resource_key": "_connect/port", "resource_value": 0}},
{"action": 1, "custom": {"resource_key": "_connect/settings", "resource_value": {"endpoints": [
{"uuid": "200", "name": "200", "type": "copper"},
{"uuid": "502", "name": "502", "type": "optical"},
{"uuid": "503", "name": "503", "type": "optical"}
]}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[200]", "resource_value": {
"uuid": "200", "name": "200", "type": "copper"
}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[502]", "resource_value": {
"uuid": "502", "name": "502", "type": "optical"
}}},
{"action": 1, "custom": {"resource_key": "/endpoints/endpoint[503]", "resource_value": {
"uuid": "503", "name": "503", "type": "optical"
}}}
]}
}
],
"links": [
{
"link_id": {"link_uuid": {"uuid": "R1/502==R2/501"}}, "name": "R1/502==R2/501",
"attributes": {"total_capacity_gbps": 10.0, "used_capacity_gbps": 0.0},
"link_endpoint_ids": [
{
"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "502"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
},
{
"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "501"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}
]
},
{
"link_id": {"link_uuid": {"uuid": "R1/503==R3/501"}}, "name": "R1/503==R3/501",
"attributes": {"total_capacity_gbps": 10.0, "used_capacity_gbps": 0.0},
"link_endpoint_ids": [
{
"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "503"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
},
{
"device_id": {"device_uuid": {"uuid": "R3"}}, "endpoint_uuid": {"uuid": "501"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}
]
},
{
"link_id": {"link_uuid": {"uuid": "R2/501==R1/502"}}, "name": "R2/501==R1/502",
"attributes": {"total_capacity_gbps": 10.0, "used_capacity_gbps": 0.0},
"link_endpoint_ids": [
{
"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "501"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
},
{
"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "502"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}
]
},
{
"link_id": {"link_uuid": {"uuid": "R2/503==R3/502"}}, "name": "R2/503==R3/502",
"attributes": {"total_capacity_gbps": 10.0, "used_capacity_gbps": 0.0},
"link_endpoint_ids": [
{
"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "503"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
},
{
"device_id": {"device_uuid": {"uuid": "R3"}}, "endpoint_uuid": {"uuid": "502"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}
]
},
{
"link_id": {"link_uuid": {"uuid": "R3/501==R1/503"}}, "name": "R3/501==R1/503",
"attributes": {"total_capacity_gbps": 10.0, "used_capacity_gbps": 0.0},
"link_endpoint_ids": [
{
"device_id": {"device_uuid": {"uuid": "R3"}}, "endpoint_uuid": {"uuid": "501"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
},
{
"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "503"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}
]
},
{
"link_id": {"link_uuid": {"uuid": "R3/502==R2/503"}}, "name": "R3/502==R2/503",
"attributes": {"total_capacity_gbps": 10.0, "used_capacity_gbps": 0.0},
"link_endpoint_ids": [
{
"device_id": {"device_uuid": {"uuid": "R3"}}, "endpoint_uuid": {"uuid": "502"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
},
{
"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "503"},
"topology_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"}}
}
]
}
],
"services": [],
"slices": [],
"connections": []
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment