https://github.com/EvotecIT/PesterInfrastructureTests
A collection of infrastructure related tests for use with Pester & PowerShell.
https://github.com/EvotecIT/PesterInfrastructureTests
Last synced: 5 months ago
JSON representation
A collection of infrastructure related tests for use with Pester & PowerShell.
- Host: GitHub
- URL: https://github.com/EvotecIT/PesterInfrastructureTests
- Owner: EvotecIT
- License: mit
- Archived: true
- Fork: true (billkindle/Pester_Infrastructure_Tests)
- Created: 2018-07-25T11:32:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T10:25:35.000Z (over 5 years ago)
- Last Synced: 2024-10-29T21:06:11.252Z (6 months ago)
- Language: PowerShell
- Size: 361 KB
- Stars: 46
- Watchers: 5
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - EvotecIT/PesterInfrastructureTests - A collection of infrastructure related tests for use with Pester & PowerShell. (PowerShell)
README
# PesterInfrastructureTests - PowerShell Module
*PesterInfrastructureTests* is PowerShell module allowing to test Active Directory (for now) in fast and efficient way. You can run it in 2 ways as described below. Depending on how you like to approach things you can either copy code or simply install it from PowerShellGallery. I prefer 2nd way so I can update this code in one place and then simply redeploy everywhere with *Update-Module*
**PesterInfrastructureTests** have been replaced by [Testimo](https://github.com/EvotecIT/Testimo) and this project has beeen **deprecated**.
## Copy code Public Directory
Simply copy code from *Public\ActiveDirectory.ps1* and run it as you like.
## Module from PowerShellGallery way
```powershell
Install-Module PesterInfrastructureTests -Force -SkipPublisherCheck
#Update-Module PesterInfrastructureTests -Force # You can use this line to update the module later on
Test-ADPester
```## Example output

```powershell
Describing Domain Controller Infrastructure Test
[+] Active Directory Forest is available 214ms
[+] Active Directory Domain is available 74msContext AD2.ad.evotec.xyz Availability
[+] AD2.ad.evotec.xyz Responds to Ping 553ms
[+] AD2.ad.evotec.xyz Responds on Port 53 148ms
[+] AD2.ad.evotec.xyz DNS Service is Running 33ms
[+] AD2.ad.evotec.xyz ADDS Service is Running 12ms
[+] AD2.ad.evotec.xyz ADWS Service is Running 20ms
[+] AD2.ad.evotec.xyz KDC Service is Running 19ms
[+] AD2.ad.evotec.xyz Netlogon Service is Running 45msContext Replication Status
[+] AD2.ad.evotec.xyz Last Replication Result is 0 (Success) 361msContext AD1.ad.evotec.xyz Availability
[+] AD1.ad.evotec.xyz Responds to Ping 226ms
[+] AD1.ad.evotec.xyz Responds on Port 53 150ms
[+] AD1.ad.evotec.xyz DNS Service is Running 33ms
[+] AD1.ad.evotec.xyz ADDS Service is Running 14ms
[+] AD1.ad.evotec.xyz ADWS Service is Running 44ms
[+] AD1.ad.evotec.xyz KDC Service is Running 19ms
[+] AD1.ad.evotec.xyz Netlogon Service is Running 12msContext Replication Status
[+] AD1.ad.evotec.xyz Last Replication Result is 0 (Success) 335msContext Replication Link Status
Context Source DSA = AD2
Context Target DSA = AD1
[+] DC=ad,DC=evotec,DC=xyz - should have zero replication failures 217ms
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 19ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 36ms
[+] DC=DomainDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 13ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 33ms
[+] DC=ad,DC=evotec,DC=pl - should have zero replication failures 12msContext Target DSA = ADPREVIEW2019
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 45ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 28ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 12ms
[+] DC=ad,DC=evotec,DC=xyz - should have zero replication failures 7msContext Source DSA = AD1
Context Target DSA = AD2
[+] DC=ad,DC=evotec,DC=xyz - should have zero replication failures 105ms
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 24ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 48ms
[+] DC=DomainDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 10ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 21ms
[+] DC=ad,DC=evotec,DC=pl - should have zero replication failures 8msContext Source DSA = ADPREVIEW2019
Context Target DSA = AD2
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 74ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 19ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 8ms
[+] DC=ad,DC=evotec,DC=pl - should have zero replication failures 29ms
[+] Active Directory Domain is available 81msContext ADPreview2019.ad.evotec.pl Availability
[+] ADPreview2019.ad.evotec.pl Responds to Ping 252ms
[+] ADPreview2019.ad.evotec.pl Responds on Port 53 154ms
[+] ADPreview2019.ad.evotec.pl DNS Service is Running 23ms
[+] ADPreview2019.ad.evotec.pl ADDS Service is Running 50ms
[+] ADPreview2019.ad.evotec.pl ADWS Service is Running 18ms
[+] ADPreview2019.ad.evotec.pl KDC Service is Running 31ms
[+] ADPreview2019.ad.evotec.pl Netlogon Service is Running 38msContext Replication Status
[+] ADPreview2019.ad.evotec.pl Last Replication Result is 0 (Success) 415msContext Replication Link Status
Context Source DSA = AD2
Context Target DSA = AD1
[+] DC=ad,DC=evotec,DC=xyz - should have zero replication failures 220ms
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 12ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 19ms
[+] DC=DomainDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 25ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 27ms
[+] DC=ad,DC=evotec,DC=pl - should have zero replication failures 9msContext Target DSA = ADPREVIEW2019
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 56ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 7ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 9ms
[+] DC=ad,DC=evotec,DC=xyz - should have zero replication failures 22msContext Source DSA = AD1
Context Target DSA = AD2
[+] DC=ad,DC=evotec,DC=xyz - should have zero replication failures 83ms
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 39ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 33ms
[+] DC=DomainDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 19ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 17ms
[+] DC=ad,DC=evotec,DC=pl - should have zero replication failures 17msContext Source DSA = ADPREVIEW2019
Context Target DSA = AD2
[+] CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 152ms
[+] CN=Schema,CN=Configuration,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 11ms
[+] DC=ForestDnsZones,DC=ad,DC=evotec,DC=xyz - should have zero replication failures 23ms
[+] DC=ad,DC=evotec,DC=pl - should have zero replication failures 31ms```