ticket47653MMR_test.py 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. '''
  2. Created on Nov 7, 2013
  3. @author: tbordaz
  4. '''
  5. import os
  6. import sys
  7. import time
  8. import ldap
  9. import logging
  10. import socket
  11. import time
  12. import logging
  13. import pytest
  14. import re
  15. from lib389 import DirSrv, Entry, tools
  16. from lib389.tools import DirSrvTools
  17. from lib389._constants import *
  18. from lib389.properties import *
  19. from constants import *
  20. from lib389._constants import *
  21. logging.getLogger(__name__).setLevel(logging.DEBUG)
  22. log = logging.getLogger(__name__)
  23. #
  24. # important part. We can deploy Master1 and Master2 on different versions
  25. #
  26. installation1_prefix = None
  27. installation2_prefix = None
  28. TEST_REPL_DN = "cn=test_repl, %s" % SUFFIX
  29. OC_NAME = 'OCticket47653'
  30. MUST = "(postalAddress $ postalCode)"
  31. MAY = "(member $ street)"
  32. OTHER_NAME = 'other_entry'
  33. MAX_OTHERS = 10
  34. BIND_NAME = 'bind_entry'
  35. BIND_DN = 'cn=%s, %s' % (BIND_NAME, SUFFIX)
  36. BIND_PW = 'password'
  37. ENTRY_NAME = 'test_entry'
  38. ENTRY_DN = 'cn=%s, %s' % (ENTRY_NAME, SUFFIX)
  39. ENTRY_OC = "top person %s" % OC_NAME
  40. def _oc_definition(oid_ext, name, must=None, may=None):
  41. oid = "1.2.3.4.5.6.7.8.9.10.%d" % oid_ext
  42. desc = 'To test ticket 47490'
  43. sup = 'person'
  44. if not must:
  45. must = MUST
  46. if not may:
  47. may = MAY
  48. new_oc = "( %s NAME '%s' DESC '%s' SUP %s AUXILIARY MUST %s MAY %s )" % (oid, name, desc, sup, must, may)
  49. return new_oc
  50. class TopologyMaster1Master2(object):
  51. def __init__(self, master1, master2):
  52. master1.open()
  53. self.master1 = master1
  54. master2.open()
  55. self.master2 = master2
  56. @pytest.fixture(scope="module")
  57. def topology(request):
  58. '''
  59. This fixture is used to create a replicated topology for the 'module'.
  60. The replicated topology is MASTER1 <-> Master2.
  61. At the beginning, It may exists a master2 instance and/or a master2 instance.
  62. It may also exists a backup for the master1 and/or the master2.
  63. Principle:
  64. If master1 instance exists:
  65. restart it
  66. If master2 instance exists:
  67. restart it
  68. If backup of master1 AND backup of master2 exists:
  69. create or rebind to master1
  70. create or rebind to master2
  71. restore master1 from backup
  72. restore master2 from backup
  73. else:
  74. Cleanup everything
  75. remove instances
  76. remove backups
  77. Create instances
  78. Initialize replication
  79. Create backups
  80. '''
  81. global installation1_prefix
  82. global installation2_prefix
  83. # allocate master1 on a given deployement
  84. master1 = DirSrv(verbose=False)
  85. if installation1_prefix:
  86. args_instance[SER_DEPLOYED_DIR] = installation1_prefix
  87. # Args for the master1 instance
  88. args_instance[SER_HOST] = HOST_MASTER_1
  89. args_instance[SER_PORT] = PORT_MASTER_1
  90. args_instance[SER_SERVERID_PROP] = SERVERID_MASTER_1
  91. args_master = args_instance.copy()
  92. master1.allocate(args_master)
  93. # allocate master1 on a given deployement
  94. master2 = DirSrv(verbose=False)
  95. if installation2_prefix:
  96. args_instance[SER_DEPLOYED_DIR] = installation2_prefix
  97. # Args for the consumer instance
  98. args_instance[SER_HOST] = HOST_MASTER_2
  99. args_instance[SER_PORT] = PORT_MASTER_2
  100. args_instance[SER_SERVERID_PROP] = SERVERID_MASTER_2
  101. args_master = args_instance.copy()
  102. master2.allocate(args_master)
  103. # Get the status of the backups
  104. backup_master1 = master1.checkBackupFS()
  105. backup_master2 = master2.checkBackupFS()
  106. # Get the status of the instance and restart it if it exists
  107. instance_master1 = master1.exists()
  108. if instance_master1:
  109. master1.stop(timeout=10)
  110. master1.start(timeout=10)
  111. instance_master2 = master2.exists()
  112. if instance_master2:
  113. master2.stop(timeout=10)
  114. master2.start(timeout=10)
  115. if backup_master1 and backup_master2:
  116. # The backups exist, assuming they are correct
  117. # we just re-init the instances with them
  118. if not instance_master1:
  119. master1.create()
  120. # Used to retrieve configuration information (dbdir, confdir...)
  121. master1.open()
  122. if not instance_master2:
  123. master2.create()
  124. # Used to retrieve configuration information (dbdir, confdir...)
  125. master2.open()
  126. # restore master1 from backup
  127. master1.stop(timeout=10)
  128. master1.restoreFS(backup_master1)
  129. master1.start(timeout=10)
  130. # restore master2 from backup
  131. master2.stop(timeout=10)
  132. master2.restoreFS(backup_master2)
  133. master2.start(timeout=10)
  134. else:
  135. # We should be here only in two conditions
  136. # - This is the first time a test involve master-consumer
  137. # so we need to create everything
  138. # - Something weird happened (instance/backup destroyed)
  139. # so we discard everything and recreate all
  140. # Remove all the backups. So even if we have a specific backup file
  141. # (e.g backup_master) we clear all backups that an instance my have created
  142. if backup_master1:
  143. master1.clearBackupFS()
  144. if backup_master2:
  145. master2.clearBackupFS()
  146. # Remove all the instances
  147. if instance_master1:
  148. master1.delete()
  149. if instance_master2:
  150. master2.delete()
  151. # Create the instances
  152. master1.create()
  153. master1.open()
  154. master2.create()
  155. master2.open()
  156. #
  157. # Now prepare the Master-Consumer topology
  158. #
  159. # First Enable replication
  160. master1.replica.enableReplication(suffix=SUFFIX, role=REPLICAROLE_MASTER, replicaId=REPLICAID_MASTER_1)
  161. master2.replica.enableReplication(suffix=SUFFIX, role=REPLICAROLE_MASTER, replicaId=REPLICAID_MASTER_2)
  162. # Initialize the supplier->consumer
  163. properties = {RA_NAME: r'meTo_$host:$port',
  164. RA_BINDDN: defaultProperties[REPLICATION_BIND_DN],
  165. RA_BINDPW: defaultProperties[REPLICATION_BIND_PW],
  166. RA_METHOD: defaultProperties[REPLICATION_BIND_METHOD],
  167. RA_TRANSPORT_PROT: defaultProperties[REPLICATION_TRANSPORT]}
  168. repl_agreement = master1.agreement.create(suffix=SUFFIX, host=master2.host, port=master2.port, properties=properties)
  169. if not repl_agreement:
  170. log.fatal("Fail to create a replica agreement")
  171. sys.exit(1)
  172. log.debug("%s created" % repl_agreement)
  173. properties = {RA_NAME: r'meTo_$host:$port',
  174. RA_BINDDN: defaultProperties[REPLICATION_BIND_DN],
  175. RA_BINDPW: defaultProperties[REPLICATION_BIND_PW],
  176. RA_METHOD: defaultProperties[REPLICATION_BIND_METHOD],
  177. RA_TRANSPORT_PROT: defaultProperties[REPLICATION_TRANSPORT]}
  178. master2.agreement.create(suffix=SUFFIX, host=master1.host, port=master1.port, properties=properties)
  179. master1.agreement.init(SUFFIX, HOST_MASTER_2, PORT_MASTER_2)
  180. master1.waitForReplInit(repl_agreement)
  181. # Check replication is working fine
  182. master1.add_s(Entry((TEST_REPL_DN, {
  183. 'objectclass': "top person".split(),
  184. 'sn': 'test_repl',
  185. 'cn': 'test_repl'})))
  186. loop = 0
  187. while loop <= 10:
  188. try:
  189. ent = master2.getEntry(TEST_REPL_DN, ldap.SCOPE_BASE, "(objectclass=*)")
  190. break
  191. except ldap.NO_SUCH_OBJECT:
  192. time.sleep(1)
  193. loop += 1
  194. # Time to create the backups
  195. master1.stop(timeout=10)
  196. master1.backupfile = master1.backupFS()
  197. master1.start(timeout=10)
  198. master2.stop(timeout=10)
  199. master2.backupfile = master2.backupFS()
  200. master2.start(timeout=10)
  201. # clear the tmp directory
  202. master1.clearTmpDir(__file__)
  203. #
  204. # Here we have two instances master and consumer
  205. # with replication working. Either coming from a backup recovery
  206. # or from a fresh (re)init
  207. # Time to return the topology
  208. return TopologyMaster1Master2(master1, master2)
  209. def test_ticket47653_init(topology):
  210. """
  211. It adds
  212. - Objectclass with MAY 'member'
  213. - an entry ('bind_entry') with which we bind to test the 'SELFDN' operation
  214. It deletes the anonymous aci
  215. """
  216. topology.master1.log.info("Add %s that allows 'member' attribute" % OC_NAME)
  217. new_oc = _oc_definition(2, OC_NAME, must = MUST, may = MAY)
  218. topology.master1.schema.add_schema('objectClasses', new_oc)
  219. # entry used to bind with
  220. topology.master1.log.info("Add %s" % BIND_DN)
  221. topology.master1.add_s(Entry((BIND_DN, {
  222. 'objectclass': "top person".split(),
  223. 'sn': BIND_NAME,
  224. 'cn': BIND_NAME,
  225. 'userpassword': BIND_PW})))
  226. # enable acl error logging
  227. mod = [(ldap.MOD_REPLACE, 'nsslapd-errorlog-level', str(128+8192))] # ACL + REPL
  228. topology.master1.modify_s(DN_CONFIG, mod)
  229. topology.master2.modify_s(DN_CONFIG, mod)
  230. # get read of anonymous ACI for use 'read-search' aci in SEARCH test
  231. ACI_ANONYMOUS = "(targetattr!=\"userPassword\")(version 3.0; acl \"Enable anonymous access\"; allow (read, search, compare) userdn=\"ldap:///anyone\";)"
  232. mod = [(ldap.MOD_DELETE, 'aci', ACI_ANONYMOUS)]
  233. topology.master1.modify_s(SUFFIX, mod)
  234. topology.master2.modify_s(SUFFIX, mod)
  235. # add dummy entries
  236. for cpt in range(MAX_OTHERS):
  237. name = "%s%d" % (OTHER_NAME, cpt)
  238. topology.master1.add_s(Entry(("cn=%s,%s" % (name, SUFFIX), {
  239. 'objectclass': "top person".split(),
  240. 'sn': name,
  241. 'cn': name})))
  242. def test_ticket47653_add(topology):
  243. '''
  244. This test ADD an entry on MASTER1 where 47653 is fixed. Then it checks that entry is replicated
  245. on MASTER2 (even if on MASTER2 47653 is NOT fixed). Then update on MASTER2 and check the update on MASTER1
  246. It checks that, bound as bind_entry,
  247. - we can not ADD an entry without the proper SELFDN aci.
  248. - with the proper ACI we can not ADD with 'member' attribute
  249. - with the proper ACI and 'member' it succeeds to ADD
  250. '''
  251. topology.master1.log.info("\n\n######################### ADD ######################\n")
  252. # bind as bind_entry
  253. topology.master1.log.info("Bind as %s" % BIND_DN)
  254. topology.master1.simple_bind_s(BIND_DN, BIND_PW)
  255. # Prepare the entry with multivalued members
  256. entry_with_members = Entry(ENTRY_DN)
  257. entry_with_members.setValues('objectclass', 'top', 'person', 'OCticket47653')
  258. entry_with_members.setValues('sn', ENTRY_NAME)
  259. entry_with_members.setValues('cn', ENTRY_NAME)
  260. entry_with_members.setValues('postalAddress', 'here')
  261. entry_with_members.setValues('postalCode', '1234')
  262. members = []
  263. for cpt in range(MAX_OTHERS):
  264. name = "%s%d" % (OTHER_NAME, cpt)
  265. members.append("cn=%s,%s" % (name, SUFFIX))
  266. members.append(BIND_DN)
  267. entry_with_members.setValues('member', members)
  268. # Prepare the entry with only one member value
  269. entry_with_member = Entry(ENTRY_DN)
  270. entry_with_member.setValues('objectclass', 'top', 'person', 'OCticket47653')
  271. entry_with_member.setValues('sn', ENTRY_NAME)
  272. entry_with_member.setValues('cn', ENTRY_NAME)
  273. entry_with_member.setValues('postalAddress', 'here')
  274. entry_with_member.setValues('postalCode', '1234')
  275. member = []
  276. member.append(BIND_DN)
  277. entry_with_member.setValues('member', member)
  278. # entry to add WITH member being BIND_DN but WITHOUT the ACI -> ldap.INSUFFICIENT_ACCESS
  279. try:
  280. topology.master1.log.info("Try to add Add %s (aci is missing): %r" % (ENTRY_DN, entry_with_member))
  281. topology.master1.add_s(entry_with_member)
  282. except Exception as e:
  283. topology.master1.log.info("Exception (expected): %s" % type(e).__name__)
  284. assert isinstance(e, ldap.INSUFFICIENT_ACCESS)
  285. # Ok Now add the proper ACI
  286. topology.master1.log.info("Bind as %s and add the ADD SELFDN aci" % DN_DM)
  287. topology.master1.simple_bind_s(DN_DM, PASSWORD)
  288. ACI_TARGET = "(target = \"ldap:///cn=*,%s\")" % SUFFIX
  289. ACI_TARGETFILTER = "(targetfilter =\"(objectClass=%s)\")" % OC_NAME
  290. ACI_ALLOW = "(version 3.0; acl \"SelfDN add\"; allow (add)"
  291. ACI_SUBJECT = " userattr = \"member#selfDN\";)"
  292. ACI_BODY = ACI_TARGET + ACI_TARGETFILTER + ACI_ALLOW + ACI_SUBJECT
  293. mod = [(ldap.MOD_ADD, 'aci', ACI_BODY)]
  294. topology.master1.modify_s(SUFFIX, mod)
  295. # bind as bind_entry
  296. topology.master1.log.info("Bind as %s" % BIND_DN)
  297. topology.master1.simple_bind_s(BIND_DN, BIND_PW)
  298. # entry to add WITHOUT member and WITH the ACI -> ldap.INSUFFICIENT_ACCESS
  299. try:
  300. topology.master1.log.info("Try to add Add %s (member is missing)" % ENTRY_DN)
  301. topology.master1.add_s(Entry((ENTRY_DN, {
  302. 'objectclass': ENTRY_OC.split(),
  303. 'sn': ENTRY_NAME,
  304. 'cn': ENTRY_NAME,
  305. 'postalAddress': 'here',
  306. 'postalCode': '1234'})))
  307. except Exception as e:
  308. topology.master1.log.info("Exception (expected): %s" % type(e).__name__)
  309. assert isinstance(e, ldap.INSUFFICIENT_ACCESS)
  310. # entry to add WITH memberS and WITH the ACI -> ldap.INSUFFICIENT_ACCESS
  311. # member should contain only one value
  312. try:
  313. topology.master1.log.info("Try to add Add %s (with several member values)" % ENTRY_DN)
  314. topology.master1.add_s(entry_with_members)
  315. except Exception as e:
  316. topology.master1.log.info("Exception (expected): %s" % type(e).__name__)
  317. assert isinstance(e, ldap.INSUFFICIENT_ACCESS)
  318. topology.master1.log.info("Try to add Add %s should be successful" % ENTRY_DN)
  319. topology.master1.add_s(entry_with_member)
  320. #
  321. # Now check the entry as been replicated
  322. #
  323. topology.master2.simple_bind_s(DN_DM, PASSWORD)
  324. topology.master1.log.info("Try to retrieve %s from Master2" % ENTRY_DN)
  325. loop = 0
  326. while loop <= 10:
  327. try:
  328. ent = topology.master2.getEntry(ENTRY_DN, ldap.SCOPE_BASE, "(objectclass=*)")
  329. break
  330. except ldap.NO_SUCH_OBJECT:
  331. time.sleep(1)
  332. loop += 1
  333. assert loop <= 10
  334. # Now update the entry on Master2 (as DM because 47653 is possibly not fixed on M2)
  335. topology.master1.log.info("Update %s on M2" % ENTRY_DN)
  336. mod = [(ldap.MOD_REPLACE, 'description', 'test_add')]
  337. topology.master2.modify_s(ENTRY_DN, mod)
  338. topology.master1.simple_bind_s(DN_DM, PASSWORD)
  339. loop = 0
  340. while loop <= 10:
  341. try:
  342. ent = topology.master1.getEntry(ENTRY_DN, ldap.SCOPE_BASE, "(objectclass=*)")
  343. if ent.hasAttr('description') and (ent.getValue('description') == 'test_add'):
  344. break
  345. except ldap.NO_SUCH_OBJECT:
  346. time.sleep(1)
  347. loop += 1
  348. assert ent.getValue('description') == 'test_add'
  349. def test_ticket47653_modify(topology):
  350. '''
  351. This test MOD an entry on MASTER1 where 47653 is fixed. Then it checks that update is replicated
  352. on MASTER2 (even if on MASTER2 47653 is NOT fixed). Then update on MASTER2 (bound as BIND_DN).
  353. This update may fail whether or not 47653 is fixed on MASTER2
  354. It checks that, bound as bind_entry,
  355. - we can not modify an entry without the proper SELFDN aci.
  356. - adding the ACI, we can modify the entry
  357. '''
  358. # bind as bind_entry
  359. topology.master1.log.info("Bind as %s" % BIND_DN)
  360. topology.master1.simple_bind_s(BIND_DN, BIND_PW)
  361. topology.master1.log.info("\n\n######################### MODIFY ######################\n")
  362. # entry to modify WITH member being BIND_DN but WITHOUT the ACI -> ldap.INSUFFICIENT_ACCESS
  363. try:
  364. topology.master1.log.info("Try to modify %s (aci is missing)" % ENTRY_DN)
  365. mod = [(ldap.MOD_REPLACE, 'postalCode', '9876')]
  366. topology.master1.modify_s(ENTRY_DN, mod)
  367. except Exception as e:
  368. topology.master1.log.info("Exception (expected): %s" % type(e).__name__)
  369. assert isinstance(e, ldap.INSUFFICIENT_ACCESS)
  370. # Ok Now add the proper ACI
  371. topology.master1.log.info("Bind as %s and add the WRITE SELFDN aci" % DN_DM)
  372. topology.master1.simple_bind_s(DN_DM, PASSWORD)
  373. ACI_TARGET = "(target = \"ldap:///cn=*,%s\")" % SUFFIX
  374. ACI_TARGETATTR = "(targetattr = *)"
  375. ACI_TARGETFILTER = "(targetfilter =\"(objectClass=%s)\")" % OC_NAME
  376. ACI_ALLOW = "(version 3.0; acl \"SelfDN write\"; allow (write)"
  377. ACI_SUBJECT = " userattr = \"member#selfDN\";)"
  378. ACI_BODY = ACI_TARGET + ACI_TARGETATTR + ACI_TARGETFILTER + ACI_ALLOW + ACI_SUBJECT
  379. mod = [(ldap.MOD_ADD, 'aci', ACI_BODY)]
  380. topology.master1.modify_s(SUFFIX, mod)
  381. # bind as bind_entry
  382. topology.master1.log.info("M1: Bind as %s" % BIND_DN)
  383. topology.master1.simple_bind_s(BIND_DN, BIND_PW)
  384. # modify the entry and checks the value
  385. topology.master1.log.info("M1: Try to modify %s. It should succeeds" % ENTRY_DN)
  386. mod = [(ldap.MOD_REPLACE, 'postalCode', '1928')]
  387. topology.master1.modify_s(ENTRY_DN, mod)
  388. topology.master1.log.info("M1: Bind as %s" % DN_DM)
  389. topology.master1.simple_bind_s(DN_DM, PASSWORD)
  390. topology.master1.log.info("M1: Check the update of %s" % ENTRY_DN)
  391. ents = topology.master1.search_s(ENTRY_DN, ldap.SCOPE_BASE, 'objectclass=*')
  392. assert len(ents) == 1
  393. assert ents[0].postalCode == '1928'
  394. #
  395. # Now check the update has been replicated on M2
  396. topology.master1.log.info("M2: Bind as %s" % DN_DM)
  397. topology.master2.simple_bind_s(DN_DM, PASSWORD)
  398. topology.master1.log.info("M2: Try to retrieve %s" % ENTRY_DN)
  399. loop = 0
  400. while loop <= 10:
  401. try:
  402. ent = topology.master2.getEntry(ENTRY_DN, ldap.SCOPE_BASE, "(objectclass=*)")
  403. if ent.hasAttr('postalCode') and (ent.getValue('postalCode') == '1928'):
  404. break
  405. except ldap.NO_SUCH_OBJECT:
  406. time.sleep(1)
  407. loop += 1
  408. assert loop <= 10
  409. assert ent.getValue('postalCode') == '1928'
  410. # Now update the entry on Master2 bound as BIND_DN (update may fail if 47653 is not fixed on M2)
  411. topology.master1.log.info("M2: Update %s (bound as %s)" % (ENTRY_DN, BIND_DN))
  412. topology.master2.simple_bind_s(BIND_DN, PASSWORD)
  413. fail = False
  414. try:
  415. mod = [(ldap.MOD_REPLACE, 'postalCode', '1929')]
  416. topology.master2.modify_s(ENTRY_DN, mod)
  417. fail = False
  418. except ldap.INSUFFICIENT_ACCESS:
  419. topology.master1.log.info("M2: Exception (INSUFFICIENT_ACCESS): that is fine the bug is possibly not fixed on M2")
  420. fail = True
  421. except Exception as e:
  422. topology.master1.log.info("M2: Exception (not expected): %s" % type(e).__name__)
  423. assert 0
  424. if not fail:
  425. # Check the update has been replicaed on M1
  426. topology.master1.log.info("M1: Bind as %s" % DN_DM)
  427. topology.master1.simple_bind_s(DN_DM, PASSWORD)
  428. topology.master1.log.info("M1: Check %s.postalCode=1929)" % (ENTRY_DN))
  429. loop = 0
  430. while loop <= 10:
  431. try:
  432. ent = topology.master1.getEntry(ENTRY_DN, ldap.SCOPE_BASE, "(objectclass=*)")
  433. if ent.hasAttr('postalCode') and (ent.getValue('postalCode') == '1929'):
  434. break
  435. except ldap.NO_SUCH_OBJECT:
  436. time.sleep(1)
  437. loop += 1
  438. assert ent.getValue('postalCode') == '1929'
  439. def test_ticket47653_final(topology):
  440. topology.master1.stop(timeout=10)
  441. topology.master2.stop(timeout=10)
  442. def run_isolated():
  443. '''
  444. run_isolated is used to run these test cases independently of a test scheduler (xunit, py.test..)
  445. To run isolated without py.test, you need to
  446. - edit this file and comment '@pytest.fixture' line before 'topology' function.
  447. - set the installation prefix
  448. - run this program
  449. '''
  450. global installation1_prefix
  451. global installation2_prefix
  452. installation1_prefix = None
  453. installation2_prefix = None
  454. topo = topology(True)
  455. test_ticket47653_init(topo)
  456. test_ticket47653_add(topo)
  457. test_ticket47653_modify(topo)
  458. test_ticket47653_final(topo)
  459. if __name__ == '__main__':
  460. run_isolated()