[PATCH] Create a custom testenv from backup-file for manual testing
abartlet at samba.org
Fri Nov 2 08:37:35 UTC 2018
On Fri, 2018-11-02 at 08:09 +0100, Andreas Schneider via samba-
> On Tuesday, 30 October 2018 21:52:19 CET Tim Beale via samba-
> technical wrote:
> > The attached patch allows you to easily spin up any custom testenv
> > that
> > you want, for manual testing. All you need is a backup-file that
> > the
> > testenv DC will be based off.
> > The main use-case is any testing that involves a large database.
> > Creating user accounts is slow. Even with the improvements to the
> > traffic_replay user generation, creating 5,000 users still takes
> > close
> > to 10 minutes. Instead of creating a blank testenv and slowly
> > populating
> > it with users, you can do this step once, take a backup, and then
> > spin
> > up the backup database multiple times as a new testenv.
> could you please document how to use this stuff on
Indeed, it deserves documentation and broader use. Even on its first
day in master I found it game-changing for testing large Samba
Like Tim mentions, instead of fussing about with a VM and networks, I
could restore a pre-built large domain right into the testenv where I
do most of my work.
That means more time testing and less time speculating :-)
Because it detects the domain and realm, it can even take a backup from
production, but because the testenv is isolated by socket_wrapper, it
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba-technical