Skip to content

Commit

Permalink
Updating tests (updating Start-ADOBuild test)
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating committed Mar 25, 2021
1 parent a2d4aad commit 4c204f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PSDevOps.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ describe 'Calling REST APIs' {
$latestBuild = Get-ADOBuild -Organization StartAutomating -Project PSDevOps -First 1
$startWhatIf = $latestBuild | Start-ADOBuild -WhatIf
$startWhatIf.Method | should -Be POST
$startWhatIf.Body.Definition.ID | should -Be $latestBuild.Definition.ID
$startWhatIf.Body.Parameters | Should -Be $null
$startWhatIf.Body.Definition.ID | should -Match '\d+'
$startWhatIf.Body.Parameters | Should -Not -BeLike '*System.DebugContext*'

$buildDefinitons = Get-ADOBuild -Organization StartAutomating -Project PSDevOps -Definition -First 1
$startWhatIf = $buildDefinitons | Start-ADOBuild -WhatIf
Expand Down

0 comments on commit 4c204f2

Please sign in to comment.