[SERVER-29560] Split hooks.py and testcases.py modules into separate files Created: 12/Jun/17  Updated: 30/Oct/23  Resolved: 21/Jun/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.10

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-06-19, TIG 2017-07-10
Participants:

 Description   

The hooks.py and testcases.py modules define a number of classes that don't have anything to do with each other except that they derive from the same base class. We should create packages for hooks/ and testcases/ to more easily organize the growing files.

In addition to splitting the hooks.py and testcases.py modules into separate files, we should also make it possible to introduce a new CustomBehavior class or a new TestCase class without having to explicitly add it to the dictionary of known classes.



 Comments   
Comment by Githook User [ 21/Jun/17 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-29560 Remove testcases.py now that it has been split up.
Branch: master
https://github.com/mongodb/mongo/commit/7c92251d7be7566be158f16533e57ad026dfc612

Comment by Max Hirschhorn [ 21/Jun/17 ]

robert.guo pointed out that I failed to delete buildscripts/resmokelib/testing/testcases.py. I'm re-opening this ticket to make that change.

Comment by Githook User [ 15/Jun/17 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-29560 Split testcases.py module into separate files.
Branch: master
https://github.com/mongodb/mongo/commit/c57ab42219dd2f0597b09769aad2bf1a7bcb8fce

Comment by Githook User [ 15/Jun/17 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-29560 Change fixtures to be registered automatically.
Branch: master
https://github.com/mongodb/mongo/commit/b353d4f012fe6fb37733bb1b7394172d6308c71b

Comment by Githook User [ 15/Jun/17 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-29560 Split hooks.py module into separate files.

Also defines a generic Registry metaclass for making class declarations
store a reference to the class along with a name so that they can be
looked up later.
Branch: master
https://github.com/mongodb/mongo/commit/b8f6239094f8159ee011b244d98441633fe7bed1

Generated at Thu Feb 08 04:21:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.