waft.test_resource_manager.vm.vm_config_validator module¶
VM configuration validation.
- class waft.test_resource_manager.vm.vm_config_validator.VmConfigValidator(specs_path: Path | None = None)¶
Bases:
objectValidates system configurations for VM operations.
- validate_for_create(system: UserConfiguredSystem) None¶
Validate system configuration for VM creation.
- validate_for_delete(system: UserConfiguredSystem) None¶
Validate system configuration for VM deletion.
- validate_image(image: str, exc_type: type[Exception] = <class 'ValueError'>) None¶
Validate VM image name.
- Parameters:
image – Name of a VM image
exc_type – Type of exception to raise in case of error
- Raises:
ValueError | exc_type – If the VM image is not found