-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: xWindowsUpdate: Added automatic release with a new C…
…I pipeline (#94) - xWindowsUpdate - BREAKING CHANGE: Removed the deprecated resource `xMicrosoftUpdate`- - Added automatic release with a new CI pipeline. - Moved the `Set-StrictMode` so that it is used during testing only and not during runtime. - Removed the helper function `Trace-Message` and using the `Write-Verbose` directly instead. - The helper function `New-InvalidArgumentException` was replaced by its equivalent in the module DscResource.Common. xWindowsUpdateAgent - Added Retry logic to known transient errors (issue #24). - Removed the `$PSCmdlet.ShouldProcess` calls from code since DSC does not support interactive actions. - No longer defaults to output verbose messages.
- Loading branch information
Showing
55 changed files
with
4,392 additions
and
2,945 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# Needed for publishing of examples, build worker defaults to core.autocrlf=input. | ||
* text eol=crlf | ||
|
||
# Ensure any exe files are treated as binary | ||
*.exe binary | ||
*.jpg binary | ||
*.xl* binary | ||
*.pfx binary |
This file contains 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 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 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
DSCResource.Tests | ||
output/ | ||
.vs | ||
.vscode |
This file contains 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,10 @@ | ||
{ | ||
"default": true, | ||
"MD029": { | ||
"style": "one" | ||
}, | ||
"MD013": true, | ||
"MD024": false, | ||
"MD034": false, | ||
"no-hard-tabs": true | ||
} |
This file contains 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 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 |
---|---|---|
@@ -1,14 +1,39 @@ | ||
{ | ||
"powershell.codeFormatting.openBraceOnSameLine": false, | ||
"powershell.codeFormatting.newLineAfterOpenBrace": false, | ||
"powershell.codeFormatting.newLineAfterOpenBrace": true, | ||
"powershell.codeFormatting.newLineAfterCloseBrace": true, | ||
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true, | ||
"powershell.codeFormatting.whitespaceBeforeOpenParen": true, | ||
"powershell.codeFormatting.whitespaceAroundOperator": true, | ||
"powershell.codeFormatting.whitespaceAfterSeparator": true, | ||
"powershell.codeFormatting.ignoreOneLineBlock": false, | ||
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline", | ||
"powershell.codeFormatting.preset": "Custom", | ||
"powershell.codeFormatting.alignPropertyValuePairs": true, | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1" | ||
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1", | ||
"powershell.scriptAnalysis.enable": true, | ||
"files.associations": { | ||
"*.ps1xml": "xml" | ||
}, | ||
"cSpell.words": [ | ||
"COMPANYNAME", | ||
"ICONURI", | ||
"LICENSEURI", | ||
"PROJECTURI", | ||
"RELEASENOTES", | ||
"buildhelpers", | ||
"endregion", | ||
"gitversion", | ||
"icontains", | ||
"keepachangelog", | ||
"notin", | ||
"pscmdlet", | ||
"steppable" | ||
], | ||
"[markdown]": { | ||
"files.trimTrailingWhitespace": true, | ||
"files.encoding": "utf8" | ||
} | ||
} |
This file contains 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,125 @@ | ||
{ | ||
"version": "2.0.0", | ||
"_runner": "terminal", | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | ||
"args": [ | ||
"-NoProfile", | ||
"-ExecutionPolicy", | ||
"Bypass", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"linux": { | ||
"options": { | ||
"shell": { | ||
"executable": "/usr/bin/pwsh", | ||
"args": [ | ||
"-NoProfile", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"osx": { | ||
"options": { | ||
"shell": { | ||
"executable": "/usr/local/bin/pwsh", | ||
"args": [ | ||
"-NoProfile", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "&${cwd}/build.ps1", | ||
"args": ["-AutoRestore"], | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": true, | ||
"panel": "new", | ||
"clear": false | ||
}, | ||
"runOptions": { | ||
"runOn": "default" | ||
}, | ||
"problemMatcher": [ | ||
{ | ||
"owner": "powershell", | ||
"fileLocation": [ | ||
"absolute" | ||
], | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$", | ||
"message": 1 | ||
}, | ||
{ | ||
"regexp": "(.*)", | ||
"code": 1 | ||
}, | ||
{ | ||
"regexp": "" | ||
}, | ||
{ | ||
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*", | ||
"file": 1, | ||
"line": 2 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"label": "test", | ||
"type": "shell", | ||
"command": "&${cwd}/build.ps1", | ||
"args": ["-AutoRestore","-Tasks","test"], | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": true, | ||
"panel": "dedicated", | ||
"showReuseMessage": true, | ||
"clear": false | ||
}, | ||
"problemMatcher": [ | ||
{ | ||
"owner": "powershell", | ||
"fileLocation": [ | ||
"absolute" | ||
], | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$", | ||
"message": 1 | ||
}, | ||
{ | ||
"regexp": "(.*)", | ||
"code": 1 | ||
}, | ||
{ | ||
"regexp": "" | ||
}, | ||
{ | ||
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*", | ||
"file": 1, | ||
"line": 2 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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,88 @@ | ||
# Change log for {RepositoryName} | ||
|
||
The format is based on and uses the types of changes according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
- xWindowsUpdate | ||
- Added automatic release with a new CI pipeline. | ||
- xWindowsUpdateAgent | ||
- Added Retry logic to known transient errors ([issue #24](https://github.com/dsccommunity/xWindowsUpdate/issues/24)). | ||
|
||
### Changed | ||
|
||
- xWindowsUpdate | ||
- Moved the `Set-StrictMode` so that it is used during testing only and | ||
not during runtime. | ||
- Removed the helper function `Trace-Message` and using the `Write-Verbose` | ||
directly instead. | ||
- The helper function `New-InvalidArgumentException` was replaced by | ||
its equivalent in the module DscResource.Common. | ||
- xWindowsUpdateAgent | ||
- Removed the `$PSCmdlet.ShouldProcess` calls from code since DSC does not | ||
support interactive actions. | ||
- No longer defaults to output verbose messages. | ||
|
||
### Removed | ||
|
||
- xWindowsUpdate | ||
- BREAKING CHANGE: Removed the deprecated resource `xMicrosoftUpdate` | ||
|
||
## [2.8.0.0] - 2019-04-03 | ||
|
||
- xWindowsUpdateAgent: Fixed verbose statement returning incorrect variable | ||
- Tests no longer fail on `Assert-VerifiableMocks`, these are now renamed | ||
to `Assert-VerifiableMock` (breaking change in Pester v4). | ||
- README.md has been updated with correct description of the resources | ||
([issue #58](https://github.com/dsccommunity/xWindowsUpdate/issues/58)). | ||
- Updated appveyor.yml to use the correct parameters to call the test framework. | ||
- Update appveyor.yml to use the default template. | ||
- Added default template files .gitattributes, and .gitignore, and | ||
.vscode folder. | ||
|
||
## [2.7.0.0] - 2017-07-12 | ||
|
||
- xWindowsUpdateAgent: Fix Get-TargetResource returning incorrect key | ||
|
||
## [2.6.0.0] - 2017-03-08 | ||
|
||
- Converted appveyor.yml to install Pester from PSGallery instead of from | ||
Chocolatey. | ||
- Fixed PSScriptAnalyzer issues. | ||
- Fixed common test breaks (markdown style, and example style). | ||
- Added CodeCov.io reporting | ||
- Deprecated xMicrosoftUpdate as it's functionality is replaced by | ||
xWindowsUpdateAgent | ||
|
||
## [2.5.0.0] - 2016-05-18 | ||
|
||
- Added xWindowsUpdateAgent | ||
|
||
## [2.4.0.0] - 2016-03-30 | ||
|
||
- Fixed PSScriptAnalyzer error in examples | ||
|
||
## [2.3.0.0] - 2016-02-02 | ||
|
||
- MSFT_xWindowsUpdate: Fixed an issue in the Get-TargetResource function, | ||
resulting in the Get-DscConfiguration cmdlet now working appropriately | ||
when the resource is applied. | ||
- MSFT_xWindowsUpdate: Fixed an issue in the Set-TargetResource function | ||
that was causing the function to fail when the installation of a hotfix | ||
did not provide an exit code. | ||
|
||
## [2.2.0.0] - 2015-09-11 | ||
|
||
- Minor fixes | ||
|
||
## [2.1.0.0] - 2015-07-24 | ||
|
||
- Added xMicrosoftUpdate DSC resource which can be used to enable/disable | ||
Microsoft Update in the Windows Update Settings. | ||
|
||
### [2.0.0.0] - 2015-04-23 | ||
|
||
- Initial release with the xHotfix resource |
This file contains 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,3 @@ | ||
# Code of Conduct | ||
|
||
This project has adopted the [DSC Community Code of Conduct](https://dsccommunity.org/code_of_conduct). |
This file contains 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,7 @@ | ||
# Contributing | ||
|
||
Please check out common DSC Community [contributing guidelines](https://dsccommunity.org/guidelines/contributing). | ||
|
||
## Running the Tests | ||
|
||
If want to know how to run this module's tests you can look at the [Testing Guidelines](https://dsccommunity.org/guidelines/testing-guidelines/#running-tests) |
Oops, something went wrong.