Skip to content

Commit e343325

Browse files
esijnjaErik Sijnja
andauthored
Send valid json body with add vs team access control entry (#539)
* Send valid json * Version Bumb and change Log * Added issue number in changelog --------- Co-authored-by: Erik Sijnja <erik.sijnja@asr.nl>
1 parent e73cd24 commit e343325

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 7.13.3
4+
Merged [Pull Request](https://github.com/MethodsAndPractices/vsteam/pull/539) from [Erik Sijnja](https://github.com/esijnja) the following:
5+
- Send valid json body with Add-VSTeamAccessControlEntity [538](https://github.com/MethodsAndPractices/vsteam/issues/538)
6+
37
## 7.13.2
48
Merged [Pull Request](https://github.com/MethodsAndPractices/vsteam/pull/536) from [Sebastian Schütze](https://github.com/SebastianSchuetze) the following:
59
- Fix missing switch OverwriteMask to all cmdlets who are dependant to Add-VSTeamAccessControlList

Source/Public/Add-VSTeamAccessControlEntry.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ function Add-VSTeamAccessControlEntry {
4848
if ($SecurityNamespace) {
4949
$SecurityNamespaceId = $SecurityNamespace.ID
5050
}
51-
$merge = !$OverwriteMask
51+
[string]$merge = (!$OverwriteMask)
52+
$merge = $merge.ToLowerInvariant()
5253
$body =
5354
@"
5455
{

Source/VSTeam.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'VSTeam.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '7.13.2'
15+
ModuleVersion = '7.13.3'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = @('Core', 'Desktop')

Tests/function/tests/Add-VSTeamAccessControlEntry.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ Describe 'VSTeamAccessControlEntry' {
123123
$Body -like "*`"descriptor`": `"abc`",*" -and
124124
$Body -like "*`"allow`": 12,*" -and
125125
$Body -like "*`"deny`": 15,*" -and
126-
$Body -like "*`"merge`": false,*" -and
126+
$Body -cmatch "`"merge`": false," -and
127127
$Method -eq "Post"
128128
}
129129

130130
}
131-
131+
132132
}
133133
}

0 commit comments

Comments
 (0)