Skip to content

Commit

Permalink
Fix missing commands in bootstrap script (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju authored Feb 1, 2024
1 parent cd7ac12 commit fb45ad0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Status badges updated.
- Update integration tests for the bootstrap script.

### Added

Expand Down
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ trigger:
- "v*"
exclude:
- "*-*"
pr:
- main
autoCancel: false
drafts: true

variables:
buildFolderName: output
Expand Down
5 changes: 5 additions & 0 deletions tests/Integration/Bootstrap.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Describe 'Bootstrap Script' -Tag 'BootstrapScript' {
Get-Module -Name 'PSResourceGet.Bootstrap' -All | Should -BeNullOrEmpty
}

It 'Should not have DscResource.Common module available' {
Remove-Item -Path './output/RequiredModules/DscResource.Common' -Recurse -Force
Get-Module -Name 'DscResource.Common' -ListAvailable | Should -BeNullOrEmpty -Because 'If the module is available there can be false positive tests.'
}

Context 'When using Scope parameter set' {
It 'Should bootstrap the module to the specified scope' {
{ & ./output/bootstrap.ps1 -Scope 'AllUsers' -Force -Verbose } | Should -Not -Throw
Expand Down

0 comments on commit fb45ad0

Please sign in to comment.