Skip to content

Commit a13d7dd

Browse files
Adding test for Set-ADOTeam
1 parent 446c437 commit a13d7dd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

PSDevOps.tests.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,18 @@ describe 'Calling REST APIs' {
289289
$whatIf.uri | Should -BeLike '*/MyTeam*'
290290
$whatIf.Method | Should -Be DELETE
291291
}
292+
293+
it 'Can set team -DefaultAreaPath and -AreaPath' {
294+
$whatIf =
295+
Get-ADOTeam -Organization StartAutomating -Project PSDevOps -TeamID 'PSDevOps Team' -PersonalAccessToken $testPat |
296+
Set-ADOTeam -DefaultAreaPath "MyAreaPath" -WhatIf -AreaPath "An\AreaPath", "Another\AreaPath"
297+
298+
$whatIf.Method | Should -Be PATCH
299+
$whatIf.Uri | Should -BeLike '*teamFieldvalue*'
300+
$whatIf.Body.defaultValue | Should -Be MyAreaPath
301+
302+
303+
}
292304
}
293305

294306
context Repositories {

0 commit comments

Comments
 (0)