-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathad-test-ou.cmd
31 lines (25 loc) · 965 Bytes
/
ad-test-ou.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
echo -----------------------------
echo Test Running [AD OU Create] - Create
cd ad-ou-create
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-ou-create-result.txt
terraform apply -auto-approve -no-color >> ..\ad-ou-create-result.txt
echo Test Running [AD OU Create] - Destroy
terraform destroy -auto-approve -no-color >> ..\ad-ou-create-result.txt
cd ..
echo Test Running [AD OU List #1]
cd ad-ou-list-1
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-ou-list-1-result.txt
terraform apply -auto-approve -no-color >> ..\ad-ou-list-1-result.txt
cd ..
echo Test Running [AD OU List #2]
cd ad-ou-list-2
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-ou-list-2-result.txt
terraform apply -auto-approve -no-color >> ..\ad-ou-list-2-result.txt
terraform destroy -auto-approve -no-color >> ..\ad-ou-list-2-result.txt
cd ..
echo -----------------------------
pause