def runSimpleTop(topId): from tests.top.simple import top print "creating topology..." top_modify(topId, jsonToMods(top), True) print "testing topology information..." topInformation.simpleTop_checkTopInformation(topId) print "testing state transitions..." stateTransitions.simpleTop_checkStateTransitions(topId) print "testing images..." images.simpleTop_checkImages(topId) print "testing tinc connectors..." tincConnectors.simpleTop_checkTincConnectors(topId) print "testing link emulation..." linkEmulation.simpleTop_checkLinkEmulation(topId) print "testing packet capturing..." packetCapturing.simpleTop_checkPacketCapturing(topId) print "testing programmable devices..." programmableDevices.simpleTop_checkProgrammableDevices(topId) print "testing periodic tasks..." periodicTasks.checkPeriodicTasks() print "destroying topology..." top_action(topId, "destroy", direct=True)
topInformation.simpleTop_checkTopInformation(topId) print "testing state transitions..." stateTransitions.simpleTop_checkStateTransitions(topId) print "testing images..." images.simpleTop_checkImages(topId) print "testing tinc connectors..." tincConnectors.simpleTop_checkTincConnectors(topId) print "testing link emulation..." linkEmulation.simpleTop_checkLinkEmulation(topId) print "testing packet capturing..." packetCapturing.simpleTop_checkPacketCapturing(topId) print "testing programmable devices..." programmableDevices.simpleTop_checkProgrammableDevices(topId) print "testing periodic tasks..." periodicTasks.checkPeriodicTasks() print "destroying topology..." top_action(topId, "destroy", direct=True) except: import traceback traceback.print_exc() print "-" * 50 errors_print() print "-" * 50