Skip to content

Commit

Permalink
test(api): add vmbda phase checks
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>
  • Loading branch information
fl64 committed Sep 3, 2024
1 parent 1e330d5 commit c8f803f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/tests_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
const (
ShortWaitDuration = 60 * time.Second
LongWaitDuration = 300 * time.Second
PhaseAttached = "Attached"
PhaseReady = "Ready"
PhaseBound = "Bound"
PhaseReleased = "Released"
Expand Down
9 changes: 9 additions & 0 deletions tests/e2e/virtualization_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,13 @@ var _ = Describe("Virtualization resources", Ordered, ContinueOnFailure, func()
})
})
})

Context("Virtualmachine block device attachments", func() {
When("VMBDA applied", func() {
It(fmt.Sprintf("Phase should be %s", PhaseAttached), func() {
checkPhase("vmbda", PhaseAttached)
})
})
})

})

0 comments on commit c8f803f

Please sign in to comment.