Skip to content

Commit

Permalink
Changes to ActiveDirectoryDsc (#459)
Browse files Browse the repository at this point in the history
- Changes to ActiveDirectoryDsc
  - Integration tests are now correctly evaluates the value from `Test-DscConfiguration` (issue #434).
  • Loading branch information
johlju authored Aug 3, 2019
1 parent 50197b4 commit 3a4b75f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
Azure Automation ([issue #416](https://github.com/PowerShell/ActiveDirectoryDsc/issues/416)).
- Fix examples that had duplicate guid that would have prevented them
to be published.
- Integration tests are now correctly evaluates the value from `Test-DscConfiguration`
([issue #434](https://github.com/PowerShell/ActiveDirectoryDsc/issues/434)).
- Changes to ADManagedServiceAccount
- Added a requirement to README stating "Group Managed Service Accounts
need at least one Windows Server 2012 Domain Controller"
Expand Down
14 changes: 7 additions & 7 deletions Tests/Integration/MSFT_ADComputer.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -140,7 +140,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -187,7 +187,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -234,7 +234,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -285,7 +285,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -349,7 +349,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -380,7 +380,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions Tests/Integration/MSFT_ADDomainTrust.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -132,7 +132,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -183,7 +183,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -234,7 +234,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -285,7 +285,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -336,7 +336,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Integration/MSFT_ADUser.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}

Expand Down Expand Up @@ -130,7 +130,7 @@ try
}

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -BeTrue
Test-DscConfiguration -Verbose | Should -Be 'True'
}
}
}
Expand Down

0 comments on commit 3a4b75f

Please sign in to comment.