# microsoft.ad.domain_child tests As this cannot be run in CI this is a brief guide on how to run these tests locally. Run the following: ```bash vagrant up ansible-playbook setup.yml ``` It is a good idea to create a snapshot of both hosts before running the tests. This allows you to reset the host back to a blank starting state if the tests need to be rerun. To create a snapshot do the following: ```bash virsh snapshot-create-as --domain "domain_child_PARENT" --name "pretest" virsh snapshot-create-as --domain "domain_child_CHILD" --name "pretest" virsh snapshot-create-as --domain "domain_child_TREE" --name "pretest" ``` To restore these snapshots run the following: ```bash virsh snapshot-revert --domain "domain_child_PARENT" --snapshotname "pretest" --running virsh snapshot-revert --domain "domain_child_CHILD" --snapshotname "pretest" --running virsh snapshot-revert --domain "domain_child_TREE" --snapshotname "pretest" --running ``` Once you are ready to run the tests run the following: ```bash ansible-playbook test.yml ``` Run `vagrant destroy` to remove the test VMs.