Skip to content

Commit

Permalink
test validate resource config
Browse files Browse the repository at this point in the history
  • Loading branch information
saklar13 committed Apr 20, 2022
1 parent ae33d07 commit 5da29ff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[report]
omit =
*__init__*
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def resource_conf(resource_command_context, cs_api) -> VCenterResourceConfig:
vm_resource_pool = "vm resource pool"
vm_storage = "vm storage"
saved_sandbox_storage = "saved sandbox storage"
behavior_during_save = "behavior during save"
behavior_during_save = "Remain Powered On"
vm_location = "vm location"
shutdown_method = "soft"
ovf_tool_path = "ovf tool path"
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions tests/cp/vcenter/actions/test_validation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from cloudshell.cp.vcenter.actions.validation import ValidationActions


def test_validate_resource_conf(resource_conf, si, logger):
actions = ValidationActions(si, resource_conf, logger)
actions.validate_resource_conf()

0 comments on commit 5da29ff

Please sign in to comment.