Skip to content

Commit dbe4051

Browse files
authored
change string to constants in vm_for_console_proxy (RedHatQE#1973)
Signed-off-by: Roni Kishner <rkishner@redhat.com>
1 parent 8e428b5 commit dbe4051

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/infrastructure/vm_console_proxy/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
create_vnc_console_token,
3131
get_vm_console_proxy_resource,
3232
)
33-
from utilities.constants import OS_FLAVOR_RHEL, TIMEOUT_10MIN, Images
33+
from utilities.constants import OS_FLAVOR_RHEL, RHEL10_PREFERENCE, TIMEOUT_10MIN, U1_SMALL, Images
3434
from utilities.hco import ResourceEditorValidateHCOReconcile
3535
from utilities.infra import login_with_token, login_with_user_password
3636
from utilities.virt import VirtualMachineForTests, wait_for_running_vm
@@ -94,8 +94,8 @@ def vm_for_console_proxy(namespace, unprivileged_client):
9494
image=Images.Rhel.RHEL10_REGISTRY_GUEST_IMG,
9595
namespace=namespace.name,
9696
client=unprivileged_client,
97-
vm_instance_type=VirtualMachineClusterInstancetype(name="u1.small"),
98-
vm_preference=VirtualMachineClusterPreference(name="rhel.10"),
97+
vm_instance_type=VirtualMachineClusterInstancetype(name=U1_SMALL),
98+
vm_preference=VirtualMachineClusterPreference(name=RHEL10_PREFERENCE),
9999
os_flavor=OS_FLAVOR_RHEL,
100100
run_strategy=VirtualMachine.RunStrategy.ALWAYS,
101101
) as vm:

0 commit comments

Comments
 (0)