Integration Testing Scripts / DSC Modules

Welcome Forums Pester Integration Testing Scripts / DSC Modules

Viewing 1 reply thread
  • Author
    Posts
    • #238844
      Participant
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member

      Hi,

      I’m using Powershell DSC in a Gitlab CI Pipeline to deploy On premise Windows machines like Exchange Servers, Active Directory.
      At the end of the pipeline I perform some pester integration/Functionnal tests remotely using Nodes defined in Configuration Data file.
      At this moment I limit myself in testing Windows Service Status.

      I would like to go further and check that each settings that has been set in my DSC script is correctly set on the target node (Example: DAG configuration, replication configuration, etc)

      Are there any prepackaged Pester Scripts to avoid creating what already exists?
      Does “Integration Test Scripts” Folder contained in xExchange or ActiveDirectoryDSC Module could help me? How should I use them?

      https://github.com/dsccommunity/xExchange/tree/master/tests/Integration

      Maybe my need is Almost Functionnal Testing rather than Integration TEsting.

      Thanks

      • This topic was modified 2 months, 3 weeks ago by Jay-7520.
    • #238895
      Senior Moderator
      Topics: 9
      Replies: 1309
      Points: 4,781
      Helping Hand
      Rank: Community Hero

      IMO, rather than checking the settings separately, why wouldn’t you depend on Get-DscConfigurationStatus.
      Look at DSCEA, something not much used, but somewhat good to get a UI for configuration state.
      https://microsoft.github.io/DSCEA/

      • This reply was modified 2 months, 3 weeks ago by kvprasoon. Reason: post correction
Viewing 1 reply thread
  • You must be logged in to reply to this topic.