Skip to content

Commit b9ffb81

Browse files
authored
Merge pull request #23 from PlagueHO/Issue-22
Change IniSettingsFile unit tests to be non-destructive - Fixes #22
2 parents 12ceadd + 1061106 commit b9ffb81

File tree

6 files changed

+173
-57
lines changed

6 files changed

+173
-57
lines changed

.MetaTestOptIn.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
"Common Tests - Required Script Analyzer Rules",
77
"Common Tests - Flagged Script Analyzer Rules",
88
"Common Tests - New Error-Level Script Analyzer Rules",
9-
"Common Tests - Custom Script Analyzer Rules"
9+
"Common Tests - Custom Script Analyzer Rules",
10+
"Common Tests - Validate Example Files To Be Published",
11+
"Common Tests - Validate Markdown Links",
12+
"Common Tests - Relative Path Length"
1013
]

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
- Refactor Test/Set-TargetResource in ReplaceText to be able to add a key if it
1616
doesn't exist but should -Fixes
1717
[Issue#20](https://github.com/PlagueHO/FileContentDsc/issues/20).
18+
- Opted into common tests:
19+
- Common Tests - Validate Example Files To Be Published
20+
- Common Tests - Validate Markdown Links
21+
- Common Tests - Relative Path Length
22+
- Common Tests - Relative Path Length
23+
- Correct test context description in IniSettingsFile tests to include 'When'.
24+
- Change IniSettingsFile unit tests to be non-destructive - fixes [Issue #22](https://github.com/PowerShell/FileContentDsc/issues/22).
25+
- Update to new format LICENSE.
1826

1927
## 1.0.0.0
2028

LICENSE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2017 Daniel Scott-Raynsford.
3+
Copyright (c) Daniel Scott-Raynsford. All rights reserved.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
copies of the Software, and to permit persons to whom the Software is
1010
furnished to do so, subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE

TestFile.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)