Implement a reverse mode to keep DB intact

Registered by Joël Grand-Guillaume @ camptocamp

Add a method to launch the tests suite, but keep the DB intact.

First step :

- Create DB backup
- Run the tests
- Restore DB Backup

Simple, but useful.

For a next version, study the possibility of real rollback on tests.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Joël Grand-Guillaume @ camptocamp
Direction:
Needs approval
Assignee:
Joël Grand-Guillaume @ camptocamp
Definition:
Drafting
Series goal:
None
Implementation:
Deferred
Milestone target:
milestone icon 0.9

Related branches

Sprints

Whiteboard

Doing a revert mode in OERP Scenario is not possible because of the wizzard and the on create action. Even if we managed a create and modify pooler in OERPScenario, we can not know the triggered actions of the dump.

What Ipropose is to add the following arguments (To command line or to conf file, I have to see if the script args are still accessible) :
--load_dump will load a dump file
--from_dump=path_to_dump_file will automatically load given dump at the begining of the scenario
--from_auto_dump will automatically dump the base set in the config file in a temp folder it will raise en error if an older dump of the base exist in the folder

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.