Skip to content

Commit 83dc78d

Browse files
Scaling back shared query automated tests ( build account cannot get shared queries)
1 parent 93f4053 commit 83dc78d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

PSDevOps.tests.ps1

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -692,17 +692,11 @@ describe 'Working with Work Items' {
692692
it 'Will not use workitemsbatch when using an old version of the REST api' {
693693
$queryResults = Get-ADOWorkItem -Organization StartAutomating -Project PSDevOps -Query 'Select [System.ID] from WorkItems Where [System.WorkItemType] = "Epic"' -PersonalAccessToken $testPat -ApiVersion '3.0'
694694
$queryResults[0].'System.WorkItemType' | should -be Epic
695-
}
696-
697-
it 'Can get shared queries' {
698-
$sharedQueries = Get-ADOWorkItem -Organization StartAutomating -Project PSDevOps -SharedQuery -PersonalAccessToken $testPat -Depth 2
699-
$sharedQueryWiql = $sharedQueries | Where-Object Wiql | Select-Object -ExpandProperty Wiql
700-
$sharedQueryWiql | Should -BeLike '*select*from*workitems'
701-
}
695+
}
702696

703697
it 'Can create shared queries' {
704698
$testWiql = "select * from WorkItems"
705-
$NewSharedQuery = New-ADOWorkItem -Organization StartAutomating -Project PSDevOps -WIQL $testWiql -QueryName Test -QueryPath "Shared Queries" -PersonalAccessToken $testPat -WhatIf
699+
$NewSharedQuery = New-ADOWorkItem -Organization StartAutomating -Project PSDevOps -WIQL $testWiql -QueryName Test -PersonalAccessToken $testPat -WhatIf
706700
$NewSharedQuery.body.wiql | Should -Be $testWiql
707701
}
708702
}

0 commit comments

Comments
 (0)