From 4c204f212703fa8bac4c19509496eba5ecde3d37 Mon Sep 17 00:00:00 2001 From: James Brundage Date: Wed, 24 Mar 2021 18:25:45 -0700 Subject: [PATCH] Updating tests (updating Start-ADOBuild test) --- PSDevOps.tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PSDevOps.tests.ps1 b/PSDevOps.tests.ps1 index aafe7f89..27a4a8e2 100644 --- a/PSDevOps.tests.ps1 +++ b/PSDevOps.tests.ps1 @@ -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