Skip to content

Commit

Permalink
Fixed delete Reservation test
Browse files Browse the repository at this point in the history
  • Loading branch information
DCMattyG committed Oct 7, 2023
1 parent 5e4ba45 commit c3663b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/azureipam.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,16 @@ Context 'Reservations' {
}

It 'Delete A Reservation' {
$body = @(
$script:reservationB.Id
)

$query = @{
settled = $true
}

$remove, $removeStatus = Remove-ApiResource "/spaces/TestSpaceA/blocks/TestBlockA/reservations/$($script:reservationB.Id)"
Remove-ApiResource '/spaces/TestSpaceA/blocks/TestBlockA/reservations' $body

$reservations, $reservationsStatus = Get-ApiResource '/spaces/TestSpaceA/blocks/TestBlockA/reservations' $query

$reservations[0].SettledOn -eq $null | Should -Be $false
Expand Down

0 comments on commit c3663b4

Please sign in to comment.