-
Notifications
You must be signed in to change notification settings - Fork 71
[Storage] add vTPM for vm from memory dump test #4685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ae1d091
f7908d4
af93ccb
5cf1ab1
7ad9644
cb4bc92
cf550e6
2ffff07
25777b1
cfcd6b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -705,14 +705,14 @@ def verify_rwx_default_storage(client: DynamicClient) -> None: | |
|
|
||
|
|
||
| @contextmanager | ||
| def create_windows2022_dv_from_registry( | ||
| def create_windows2022_dv_template_from_registry( | ||
| dv_name: str, | ||
| namespace: str, | ||
| client: DynamicClient, | ||
| storage_class: str, | ||
| ) -> Generator[dict]: | ||
| """ | ||
| Creates a Windows Server 2022 DataVolume from registry container disk. | ||
| Creates a Windows Server 2022 DataVolume template from registry container disk. | ||
|
Comment on lines
+708
to
+715
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win Restore the required PR template sections. The PR summary says the description still lacks meaningful content for 🤖 Prompt for AI AgentsSource: Path instructions |
||
|
|
||
| Args: | ||
| dv_name: Name for the DataVolume | ||
|
|
@@ -749,8 +749,8 @@ def create_windows2022_dv_from_registry( | |
|
|
||
|
|
||
| @contextmanager | ||
| def create_windows2022_vm_with_vtpm_from_registry( | ||
| dv_dict: dict, | ||
| def create_windows2022_vm_with_vtpm( | ||
| dv_template: dict, | ||
| namespace: str, | ||
| client: DynamicClient, | ||
| vm_name: str, | ||
|
|
@@ -760,7 +760,7 @@ def create_windows2022_vm_with_vtpm_from_registry( | |
| Creates a Windows Server 2022 VM with vTPM from registry container disk. | ||
|
|
||
| Args: | ||
| dv_dict: DataVolume template dictionary with metadata and spec | ||
| dv_template: DataVolume template dictionary with metadata and spec | ||
| namespace: Kubernetes namespace | ||
| client: Kubernetes client | ||
| vm_name: Name for the VirtualMachine | ||
|
|
@@ -776,7 +776,7 @@ def create_windows2022_vm_with_vtpm_from_registry( | |
| os_flavor=OS_FLAVOR_WIN_CONTAINER_DISK, | ||
| vm_instance_type=VirtualMachineClusterInstancetype(name=U1_LARGE, client=client), | ||
| vm_preference=VirtualMachineClusterPreference(name=WINDOWS_2K22_PREFERENCE, client=client), | ||
| data_volume_template=dv_dict, | ||
| data_volume_template=dv_template, | ||
| cpu_model=cpu_model, | ||
| ) as vm: | ||
| running_vm(vm=vm) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Import the renamed Windows helpers.
create_windows2022_dv_template_from_registryandcreate_windows2022_vm_with_vtpmare unresolved at Line 23 and Line 29, so this module will fail during collection before any memory-dump fixture runs. Update thetests.utilsimport to match the renamed helpers.Suggested import update
📝 Committable suggestion
🧰 Tools
🪛 Ruff (0.15.20)
[error] 23-23: Undefined name
create_windows2022_dv_template_from_registry(F821)
[error] 29-29: Undefined name
create_windows2022_vm_with_vtpm(F821)
🤖 Prompt for AI Agents
Source: Linters/SAST tools