SwitchNorthbound tests 50/450/3
authorpatrichu <patrichu@cisco.com>
Sun, 9 Jun 2013 06:36:31 +0000 (23:36 -0700)
committerGiovanni Meo <gmeo@cisco.com>
Thu, 13 Jun 2013 10:28:44 +0000 (12:28 +0200)
commit77bcc51ea5194675d3ab73abc2ed9298e682d065
treed0efe048440b4ff042e7c01c79c9a9ba5694aaeb
parent37ff82351675cc5c279dfe88c6daf10cbbf9f48b
SwitchNorthbound tests

Added tests for all available SwitchManager REST APIs.
Made changes to stub InventoryService to allow for updating nodeProps and nodeConnectorProps.
Made changes to SwitchNorthbound.java to check for both nodeType and nodeId when getting a Node.
Made changes in all northbound tests to throw JSONException instead of simple assertion failure.

Change-Id: I816dcbaea2ed10833e3270395fe894e5c152f5d8
Signed-off-by: patrichu <patrichu@cisco.com>
opendaylight/northbound/integrationtest/src/test/java/org/opendaylight/controller/northbound/integrationtest/NorthboundIT.java
opendaylight/northbound/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/northbound/SwitchNorthbound.java
opendaylight/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/InventoryService.java