Skip to content

Commit

Permalink
Add vdi_update filter to some tests
Browse files Browse the repository at this point in the history
These tests call at some point `VDI.update` so
the VDIs not supporting it should be filtered out.

Signed-off-by: BenjiReis <[email protected]>
  • Loading branch information
benjamreis committed Aug 2, 2023
1 parent 709e90e commit 520c387
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ocaml/quicktest/quicktest_cbt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ let tests () =
; `vdi_data_destroy
; `vdi_snapshot
]
|> has_capabilities [Sr_capabilities.vdi_update]
)
; [("vdi_clone_copy_test", `Slow, vdi_clone_copy_test)]
|> conn
Expand All @@ -165,6 +166,7 @@ let tests () =
all
|> allowed_operations
[`vdi_create; `vdi_destroy; `vdi_enable_cbt; `vdi_clone]
|> has_capabilities [Sr_capabilities.vdi_update]
)
]
|> List.concat
6 changes: 4 additions & 2 deletions ocaml/quicktest/quicktest_vdi.ml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ let tests () =
)
; [("test_vdi_snapshot", `Slow, test_vdi_snapshot)]
|> conn
|> sr SR.(all |> has_capabilities [Sr_capabilities.vdi_snapshot])
|> sr
SR.(all |> has_capabilities Sr_capabilities.[vdi_snapshot; vdi_update])
; [("test_vdi_clone", `Slow, test_vdi_clone)]
|> conn
|> sr
Expand All @@ -428,7 +429,8 @@ let tests () =
)
; [("vdi_snapshot_in_pool", `Slow, vdi_snapshot_in_pool)]
|> conn
|> sr SR.(all |> has_capabilities [Sr_capabilities.vdi_snapshot])
|> sr
SR.(all |> has_capabilities Sr_capabilities.[vdi_snapshot; vdi_update])
; [
( "vdi_create_destroy_plug_checksize"
, `Slow
Expand Down

0 comments on commit 520c387

Please sign in to comment.