Skip to content

Commit

Permalink
tests: corrected feed test for psdrive
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSchuetze authored Aug 10, 2023
1 parent d8e0560 commit 0dd615c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions Tests/integration/tests/020_.psDrive.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Describe "PS Drive Full exercise" {
}

It 'Should list Agent Pools' {
Push-Location
Push-Location
Set-Location 'Agent Pools'
$items = Get-ChildItem
Pop-Location
Expand All @@ -38,24 +38,20 @@ Describe "PS Drive Full exercise" {
}

It 'Should list Extensions' {
Push-Location
Push-Location
Set-Location 'Extensions'
$items = Get-ChildItem
Pop-Location

$items | Should -Not -Be $null
}

# The point of this tests is to make sure no exceptions
# are thrown when calling Get-ChildItem
It 'Should list Feeds' -Skip:$skippedOnTFS {
Push-Location
# The point of this test is to make sure no exceptions are thrown when calling Get-ChildItem
It 'Should not throw exceptions when listing Feeds' -Skip:$skippedOnTFS {
Push-Location
Set-Location 'Feeds'
$items = Get-ChildItem
{ Get-ChildItem } | Should -Not -Throw
Pop-Location

# There are no feeds on this account
$items | Should -Be $null
}

It 'Should list projects' {
Expand All @@ -71,7 +67,7 @@ Describe "PS Drive Full exercise" {
}

It 'Should list Queues' {
Push-Location
Push-Location
Set-Location 'Queues'
$items = Get-ChildItem
Pop-Location
Expand All @@ -80,7 +76,7 @@ Describe "PS Drive Full exercise" {
}

It 'Should list Repositories' {
Push-Location
Push-Location
Set-Location 'Repositories'
$repos = Get-ChildItem
Pop-Location
Expand Down

0 comments on commit 0dd615c

Please sign in to comment.