Skip to content

Revert temporary Prerequisites test changes once DSCv3-specific Prerequisites tests are created #2424

@coderabbitai

Description

@coderabbitai

Description

In PR #2102, temporary changes were made to the Prerequisites integration test to accommodate DSCv3 integration test stages. These changes should be reverted once a separate Prerequisites integration test is created specifically for DSCv3.

Code Changed

From (strict check):

$module | Should -HaveCount 1
$module.Version -ge '1.0.4.1' | Should -BeTrue

To (lenient check):

$module.Count | Should -BeGreaterOrEqual 1
#$module.Version -ge '1.0.4.1' | Should -BeTrue

File: tests/Integration/Commands/Prerequisites.Integration.Tests.ps1
Lines: ~197-198

Expected Resolution

  1. Create a separate Prerequisites integration test file for DSCv3 integration test stages
  2. Revert the changes in tests/Integration/Commands/Prerequisites.Integration.Tests.ps1 back to the original strict assertions
  3. Ensure the new DSCv3-specific Prerequisites test has appropriate module version checks for that environment

References

Reported by: @johlju

Metadata

Metadata

Assignees

Labels

help wantedThe issue is up for grabs for anyone in the community.testsThe issue or pull request is about tests only.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions