def test04_wait_for_esi_to_expire_again(self): """ Wait for ESI to come around """ harness.isns_stage('expired2', 'Wait for ESI to expire (5s)') harness.isns_idle(5) (res, msg) = harness.verify_db(self.server_config) self.assertTrue(res, msg) harness.vprint('*** SUCCESS ***')
def test03_verify_regitration_expires(self): """ Ensure the registration expires as the 20 second registration period """ harness.isns_stage('expired', 'Waiting for registration period to expire (25s)') harness.isns_idle(25) (res, msg) = harness.verify_db(self.server_config) self.assertTrue(res, msg) harness.vprint('*** SUCCESS ***')
def test03_register_client_two_portals(self): """ Register a simple initiator with two portals, one with ESI and one without. When the ESI-monitored portal expires, this should still take down the whole network entity. """ harness.isns_stage('registration2', 'Register client with two portals') (res, msg) = harness.isns_register_client(self.client_config, ['initiator', 'portal,esi-port=65535,esi-interval=5', 'portal=127.0.0.1:1']) harness.isns_stage('expired2', 'Wait for ESI to expire again (15s)') harness.isns_idle(15) (res, msg) = harness.verify_db(self.server_config) self.assertTrue(res, msg) harness.vprint('*** SUCCESS ***')
def test02_register_client_initiator_portal(self): """ Register a simple initiator with one portal, then wait for ESI to expire """ harness.isns_stage('registration1', 'Register client initiator portal') (res, msg) = harness.isns_register_client(self.client_config, ['initiator', 'portal,esi-port=65535,esi-interval=5']) self.assertTrue(res, msg) (res, msg) = harness.verify_db(self.server_config) self.assertTrue(res, msg) harness.isns_stage('expired1', 'Wait for ESI to expire (15s)') harness.isns_idle(15) (res, msg) = harness.verify_db(self.server_config) self.assertTrue(res, msg) harness.vprint('*** SUCCESS ***')