PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
60 stars 14 forks source link

support embedded resource #38

Closed bagajjal closed 4 years ago

bagajjal commented 4 years ago

1) Get-DscResource on windows doesn't show any DSC resource modules. It's because the pathSeparator is hardcoded to ":"

Replace PathSeparator from ":" to "[IO.Path]::PathSeparator"

2) For embedded resources, ConvertTypeNameToPSTypeName() will fail so set the type to the embedded class name.

The output of a test embedded resource on Linux image

bagajjal commented 4 years ago

@amitsara , @TravisEz13 , @adityapatwardhan , @SteveL-MSFT - Please review.

TravisEz13 commented 4 years ago

/azp list

azure-pipelines[bot] commented 4 years ago
CI/CD Pipelines for this repository:
TravisEz13 commented 4 years ago

/azp run PSDesiredStateConfiguration-CI

TravisEz13 commented 4 years ago

/azp where

azure-pipelines[bot] commented 4 years ago
Azure Pipelines successfully started running 1 pipeline(s).
azure-pipelines[bot] commented 4 years ago
Azure DevOps orgs getting events for this repository:
TravisEz13 commented 4 years ago

/azp run PowerShell.PSDesiredStateConfiguration

TravisEz13 commented 4 years ago

/azp run PSDesiredStateConfiguration-CI

azure-pipelines[bot] commented 4 years ago
Azure Pipelines successfully started running 1 pipeline(s).
TravisEz13 commented 4 years ago

https://dev.azure.com/powershell/DSC/_build/results?buildId=60598&view=logs&j=c7adc3d6-dbdb-5e70-b8da-75a5c50c554b&t=b50a9b9b-ebea-52ad-2066-459f189983a9&l=81 image This negative test needs to be made into a positive test