-
Notifications
You must be signed in to change notification settings - Fork 49
PowerShell adapter PR #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
115 commits
Select commit
Hold shift + click to select a range
46af53d
vscode powershell formatting
mgreenegit e296241
apply formatter again
mgreenegit 1559c45
List and Get only
mgreenegit efac0dc
Merge branch 'main' into powershell_group
mgreenegit b5bf80d
Add capabilities and manifest
mgreenegit 3d76d9e
adds support for class based resources
mgreenegit 503555a
Merge remote-tracking branch 'upstream/main' into powershell_group
mgreenegit 0df0846
restore debug output
mgreenegit ad096c9
remove manifest; changes from review
mgreenegit 87be1ae
comment out tests for test/set/export
mgreenegit c53fd38
comment export command tests
mgreenegit caef28f
expect invalid schema to error
mgreenegit 3eaa216
woraround for modulename property
mgreenegit 602c60c
different approach to should throw
mgreenegit 0c3e80b
shouldn't need to null the output
mgreenegit 278e84e
trap error, exclude null from list
mgreenegit c758f46
workaround for null type
mgreenegit c512000
null or empty
mgreenegit b9c74de
bad char
mgreenegit 84567d1
resolved list issues
mgreenegit cfed4e0
pester nuance for capturing errors, test
mgreenegit 357c24d
try pester output match
mgreenegit b439202
capture error as stdout and select text
mgreenegit 721f757
LASTEXITCODE 2
mgreenegit 59e701b
error match and arg type
mgreenegit 4717d0f
correct class example for test
mgreenegit 4bb4b01
powershell test fixes
mgreenegit 79ee41a
type
mgreenegit 9fc6a5e
Merge branch 'PowerShell:main' into powershell_group
mgreenegit ebfff63
many changes from first review
mgreenegit 51da439
Merge remote-tracking branch 'upstream/main' into powershell_group
mgreenegit ea2ba05
revert Pester change
mgreenegit 71cbe17
additional test pattern
mgreenegit 16ff984
changes lost in previous merge
mgreenegit 6d05cdd
schema change
mgreenegit fb31f63
requiredAdapter
mgreenegit d4c77d3
changes from feedback
mgreenegit 7784682
wrong quote type for variable
mgreenegit cd166fd
move common functions to adapter module
mgreenegit 552a913
copyfiles; missed match strings
mgreenegit 7d7e940
troubleshooting why result is not being returned
mgreenegit c24fdb0
corrected build copy files
mgreenegit 5e687d2
add debug output for psDscAdapter module
mgreenegit a9f984a
Only write to debug for adapter if files are missing
mgreenegit 3754a95
Merge branch 'main' into powershell_group
mgreenegit ab70fec
improve feedback from adapter and stub windows adapter
mgreenegit 3f26e1b
Merge branch 'powershell_group' of https://github.com/mgreenegit/dsc …
mgreenegit eeb72f9
Merge branch 'PowerShell:main' into powershell_group
mgreenegit e479ac0
removing winps files
mgreenegit b539db4
Merge branch 'powershell_group' of https://github.com/mgreenegit/dsc …
mgreenegit 907f597
try to fix line ending issue
mgreenegit d8201c0
end with new line
mgreenegit ae646d4
Merge branch 'main' into powershell_group
SteveL-MSFT 703ac73
variables should be 'dsc'; add support for binary resources; start wo…
mgreenegit 7b8c475
supporting windowspowershell adapter
mgreenegit ed5028e
Add a few tests for winps
mgreenegit 6732749
file must run elevated so accept null for now
mgreenegit 722bcda
try to capture error if import module fails
mgreenegit 1007b31
force windowspowershell adapter to use psdsc in windows
mgreenegit 942919b
condition on error output
mgreenegit 8eab956
contain psdscadapter to pwsh
mgreenegit 4ca4356
module input type; dsc version checks
mgreenegit 6712c9e
iswindows didn't exist in 5.1
mgreenegit 3d50b70
condition was backwards
mgreenegit 9c47e42
simpler condition
mgreenegit 0c4336b
implementationdetail special case for binary
mgreenegit ab8da32
debugging build agent difference from local
mgreenegit af576d8
remove module name
mgreenegit dcb0e6e
try moving resource to psdesiredstateconfiguration rather than windows
mgreenegit 951e331
output module version
mgreenegit e349948
suppress warning
mgreenegit 4ef4538
empty string instead of json
mgreenegit 9108dd8
check for resource
mgreenegit a319d59
Specify version
mgreenegit 49b8f8e
Update psDscAdapter.psm1
mgreenegit 6a896d3
new example
mgreenegit 7482840
check name
mgreenegit 9d511ce
diagnostic
mgreenegit 66556f2
Merge branch 'PowerShell:main' into powershell_group
mgreenegit 868524e
diagnostics
mgreenegit 0e64fc6
diag
mgreenegit b70bbd9
diag
mgreenegit e9954e8
for version; add more tests
mgreenegit fc19607
add to gitignore
mgreenegit efcd851
comment
mgreenegit 2b30caa
make sure psmodulepath has system modules
mgreenegit e3679b0
bad param name
mgreenegit 9fe9887
trust
mgreenegit 3194fb7
adapting to psresource
mgreenegit 38643e7
correct build and test errors
mgreenegit ad75cfa
replace null properties in resource list with empty strings
mgreenegit ce01a1b
cleanup module imports
mgreenegit 4631fc7
fix condition
mgreenegit 39ff59c
bad param
mgreenegit bbca66a
solve issue in binary output
mgreenegit 2a096a5
cleaner workaround for binary resources
mgreenegit 9758b1f
remove cim properties from script output
mgreenegit a735c6d
Fix issues with PowerShell adapter tests and module imports
mgreenegit cd1f1c2
Fix issue with loading Windows resources in PSDesiredStateConfigurati…
mgreenegit dd66689
confirm winrm quickconfig during build
mgreenegit 44e31f7
condition winrm
mgreenegit 5b80546
gitignore
mgreenegit bb16a0d
create test file
mgreenegit 67d9dde
Fix typo in PowerShell adapter test script
mgreenegit 6f28cb2
Fix issue with GetScript output
mgreenegit 305eebe
Fix issue with GetScript output in PowerShell adapter tests
mgreenegit 49c34f7
Merge branch 'main' into powershell_group
mgreenegit 93683be
Refactor file paths in PowerShell adapter tests to use TestDrive:\ in…
mgreenegit cd877c3
Merge branch 'powershell_group' of https://github.com/mgreenegit/dsc …
mgreenegit eb9be57
remove testdrive experiment
mgreenegit 238b3be
wrong quotes
mgreenegit ec7d58c
Refactor PowerShell adapter tests to use winrm quickconfig -quiet on …
mgreenegit cac542f
Refactor PowerShell adapter tests to use Microsoft.Windows/WindowsPow…
mgreenegit 4efac72
chore: Write PSModulePath to debug logs in Invoke-DscCacheRefresh
mgreenegit 98f4126
chore: Remove PSModulePath debug logs in Invoke-DscCacheRefresh
mgreenegit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
powershell-adapter/Tests/TestClassResource/0.0.1/TestClassResource.psd1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
@{ | ||
|
||
# Script module or binary module file associated with this manifest. | ||
RootModule = 'TestClassResource.psm1' | ||
|
||
# Version number of this module. | ||
ModuleVersion = '0.0.1' | ||
|
||
# ID used to uniquely identify this module | ||
GUID = 'b267fa32-e77d-48e6-9248-676cc6f2327f' | ||
|
||
# Author of this module | ||
Author = 'Microsoft' | ||
|
||
# Company or vendor of this module | ||
CompanyName = 'Microsoft Corporation' | ||
|
||
# Copyright statement for this module | ||
Copyright = '(c) Microsoft. All rights reserved.' | ||
|
||
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. | ||
FunctionsToExport = @() | ||
|
||
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. | ||
CmdletsToExport = '*' | ||
mgreenegit marked this conversation as resolved.
Show resolved
Hide resolved
mgreenegit marked this conversation as resolved.
Show resolved
Hide resolved
mgreenegit marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# Variables to export from this module | ||
VariablesToExport = @() | ||
|
||
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. | ||
AliasesToExport = @() | ||
|
||
# DSC resources to export from this module | ||
DscResourcesToExport = 'TestClassResource' | ||
|
||
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. | ||
PrivateData = @{ | ||
PSData = @{ | ||
DscCapabilities = @( | ||
'Get' | ||
'Test' | ||
) | ||
} | ||
} | ||
|
||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.