Skip to content

DSC Acceptance Testing: Basic #163

Closed
@michaeltlombardi

Description

@michaeltlombardi

Describe the Change You Would Like

As a maintainer of the puppetlabs-pwshlib module, I want to have confidence that the changes to the DSC Base Provider work with Puppetized DSC modules.

Acceptance Criteria

  • A new test file, spec/acceptance/dsc/basic.rb is added to the repository and validates:
    • That it is able to use the dsc-powershellget Puppet module to set the default repository, PSGallery, to have an installation policy of Trusted.
    • That it is able to use the dsc-powershellget Puppet module to install a PowerShell module
    • That it is able to use the dsc-powershellget Puppet module to uninstall a PowerShell module
    • That it behaves as expected with a PSDscRunAsCredential:
      • When the credential is valid, no errors are raised
      • When the credential is invalid, the expected error is raised
  • A new job for the CI workflow is added called acceptance-dsc which:
    • Runs against windows-2016 and windows-latest
    • Runs against ruby 2.5 and Puppet 6
    • Runs against ruby 2.7 and Puppet 7
    • Installs dsc-powershellget to the spec/fixtures/modules folder
    • executes rspec against spec/acceptance/dsc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions