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 19, 2024
1 parent 7e25e74 commit f696eb2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/bdd/volgroup_vgpattern_bdd.feature
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,17 @@ Feature: Validate vgpattern and volgroup based scheduling.
| node1 | lvmvg11 | lvmvg21 |
| node2 | lvmvg12 | lvmvg22 |
| node3 | lvmvg13 | lvmvg23 |

Background:
Given a 3 node lvm localpv cluster is configured
And each node has vg named "lvmvg"

Scenario: test sc with volgroup present on one node having a custom topology key label
Given a sc is created with volgroup parameter as "lvmvg"
And sc has a custom topology key "a-custom-key" having value "a-custom-value"
When pvc is created referencing the same sc
Then pvc should be pending
When the lvm-node daemonset is edited and made aware of the custom key
Then pvc should be bound
And lvmvolume cr should be Ready
And lvmvolume cr should have expected owner and vg value

0 comments on commit f696eb2

Please sign in to comment.