[SERVER-19529] FSM tests - add cleanupOptions for runWorkloads Created: 22/Jul/15 Updated: 19/Sep/15 Resolved: 24/Jul/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.7 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jonathan Abrahams | Assignee: | Jonathan Abrahams |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | CAP - 3.1.7 | ||||||||
| Participants: | |||||||||
| Description |
|
The FSM test suite is now being used for other purposes:
It provides very good coverage of many DB operations. One issue that that conflicts wiht these others tests is that as the workloads complete the cleanup drops all databases, including ones not used in the FSM suite. A cleanupOptions object will be used to change the behavior of this cleanup:
If the dropOnlyCreatedDatabases option is false, the behavior remains as is. If true, then the dropAllDatabases will only drop databases that have been created during the FSM testing. This requires another mechanism to register which databases are created. The second option, dropDatabaseBlacklist, is more straight forward and permits the blacklist to be defined of which databases are not dropped. Note that this extends the existing blacklist from ['admin', 'config', 'local', '$external']. |
| Comments |
| Comment by Githook User [ 28/Jul/15 ] |
|
Author: {u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}Message: |
| Comment by Githook User [ 24/Jul/15 ] |
|
Author: {u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}Message: |
| Comment by Jonathan Abrahams [ 22/Jul/15 ] |
|
For now, implementing the dropDatabaseBlacklist is simpler and meets the immediate need. Other cleanup options can be added later. |