Skip to content

Commit

Permalink
test(volgroup_vgpattern_bdd): adding feature file
Browse files Browse the repository at this point in the history
Signed-off-by: Abhilash Shetty <[email protected]>
  • Loading branch information
abhilashshetty04 committed Jun 18, 2024
1 parent 43c2975 commit 7e25e74
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions tests/bdd/volgroup_vgpattern_bdd.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ Feature: Validate vgpattern and volgroup based scheduling.
Then pvc should not be Bound
And lvmvolume cr should not be created


Scenario: test pvc with larger size then vg free space
Given both <vg> are created with their respective <size>
And sc is created with volgroup as "lvmvg"
When a pvc is created with size "1.3G"
Then pvc should not be bound
And lvmvolume cr should not be created
When "lvmvg" is extended to "1.5G"
Then pvc should be Bound
And lvmvolume cr should have expected vg value
Background:
Given Single lvmnode cluster is configured
And both <vg> are created with their respective <size>

Scenario: test pvc with larger size then vg free space
Given sc is created with volgroup parameter as "lvmvg"
When a pvc is created with size "1.3G"
Then pvc should not be bound
And lvmvolume cr should not be created
When "lvmvg" is extended to "1.5G"
Then pvc should be Bound
And lvmvolume cr should have expected vg value

Examples:
| vg | size |
Expand Down

0 comments on commit 7e25e74

Please sign in to comment.