зеркало из https://github.com/microsoft/lisa.git
Hibernation Testcase: Add NoRedundancy Feature Requirement
Hibernation test cases requires VM Redundancy type to be NoRedundancy. Add that to test requirement
This commit is contained in:
Родитель
2962dc599c
Коммит
d7ebb6ed49
|
@ -138,3 +138,8 @@ AvailabilityZoneEnabled = partial(
|
|||
AvailabilitySettings,
|
||||
availability_type=search_space.SetSpace(True, [AvailabilityType.AvailabilityZone]),
|
||||
)
|
||||
|
||||
AvailabilityTypeNoRedundancy = partial(
|
||||
AvailabilitySettings,
|
||||
availability_type=search_space.SetSpace(True, [AvailabilityType.NoRedundancy]),
|
||||
)
|
||||
|
|
|
@ -15,6 +15,7 @@ from lisa import (
|
|||
TestSuiteMetadata,
|
||||
)
|
||||
from lisa.features import Disk, HibernationEnabled, Sriov, Synthetic
|
||||
from lisa.features.availability import AvailabilityTypeNoRedundancy
|
||||
from lisa.node import Node
|
||||
from lisa.operating_system import BSD, Windows
|
||||
from lisa.testsuite import simple_requirement
|
||||
|
@ -61,7 +62,7 @@ class Power(TestSuite):
|
|||
priority=3,
|
||||
requirement=simple_requirement(
|
||||
network_interface=Synthetic(),
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_synthetic_network(self, node: Node, log: Logger) -> None:
|
||||
|
@ -76,7 +77,7 @@ class Power(TestSuite):
|
|||
priority=3,
|
||||
requirement=simple_requirement(
|
||||
network_interface=Sriov(),
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_sriov_network(self, node: Node, log: Logger) -> None:
|
||||
|
@ -94,7 +95,7 @@ class Power(TestSuite):
|
|||
""",
|
||||
priority=3,
|
||||
requirement=simple_requirement(
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_time_sync(self, node: Node, log: Logger) -> None:
|
||||
|
@ -136,7 +137,7 @@ class Power(TestSuite):
|
|||
priority=3,
|
||||
requirement=simple_requirement(
|
||||
min_count=2,
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_with_network_workload(
|
||||
|
@ -159,7 +160,7 @@ class Power(TestSuite):
|
|||
""",
|
||||
priority=3,
|
||||
requirement=simple_requirement(
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_with_storage_workload(self, node: Node, log: Logger) -> None:
|
||||
|
@ -179,7 +180,7 @@ class Power(TestSuite):
|
|||
""",
|
||||
priority=3,
|
||||
requirement=simple_requirement(
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_with_memory_workload(self, node: Node, log: Logger) -> None:
|
||||
|
@ -207,7 +208,7 @@ class Power(TestSuite):
|
|||
requirement=simple_requirement(
|
||||
min_nic_count=8,
|
||||
network_interface=Synthetic(),
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_synthetic_network_max_nics(
|
||||
|
@ -225,7 +226,7 @@ class Power(TestSuite):
|
|||
requirement=simple_requirement(
|
||||
min_nic_count=8,
|
||||
network_interface=Sriov(),
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def verify_hibernation_sriov_network_max_nics(
|
||||
|
@ -242,7 +243,7 @@ class Power(TestSuite):
|
|||
priority=3,
|
||||
requirement=simple_requirement(
|
||||
min_nic_count=8,
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
min_data_disk_count=32,
|
||||
),
|
||||
)
|
||||
|
|
|
@ -12,6 +12,7 @@ from lisa import (
|
|||
TestSuiteMetadata,
|
||||
)
|
||||
from lisa.features import HibernationEnabled, Sriov
|
||||
from lisa.features.availability import AvailabilityTypeNoRedundancy
|
||||
from lisa.node import Node
|
||||
from lisa.operating_system import BSD, Windows
|
||||
from lisa.testsuite import simple_requirement
|
||||
|
@ -46,7 +47,7 @@ class PowerStress(TestSuite):
|
|||
timeout=720000,
|
||||
requirement=simple_requirement(
|
||||
network_interface=Sriov(),
|
||||
supported_features=[HibernationEnabled()],
|
||||
supported_features=[HibernationEnabled(), AvailabilityTypeNoRedundancy()],
|
||||
),
|
||||
)
|
||||
def stress_hibernation(self, environment: Environment, log: Logger) -> None:
|
||||
|
|
Загрузка…
Ссылка в новой задаче