[PATCH] Create a custom testenv from backup-file for manual testing
Andreas Schneider
asn at samba.org
Fri Nov 2 07:09:03 UTC 2018
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.
>
> This testenv might be useful in other situations too. E.g. testing
> migrating databases across samba versions, you spot a DB corruption and
> want to try diagnosing/fixing it without completely losing the original
> problem state, you want to create a labdc-replica testenv of a real
> network, etc.
>
> Also fixed a couple of minor dnsupdate problems that were making
> debugging testenv bootstrapping issues difficult.
Tim,
could you please document how to use this stuff on
https://wiki.samba.org/index.php/Writing_Torture_Tests
Thanks,
Andreas
--
Andreas Schneider asn at samba.org
Samba Team www.samba.org
GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
More information about the samba-technical
mailing list