Skip to content

Commit

Permalink
Adjust test case priority
Browse files Browse the repository at this point in the history
  • Loading branch information
lubaihua33 authored and LiliDeng committed Sep 4, 2023
1 parent 46023ee commit dfe240b
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions microsoft/testsuites/core/azure_image_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def verify_grub(self, node: Node) -> None:
1. Get the output of command `rpm -q NetworkManager` and verify that
network manager is not installed.
""",
priority=1,
priority=3,
requirement=simple_requirement(supported_platform_type=[AZURE, READY]),
)
def verify_network_manager_not_installed(self, node: Node) -> None:
Expand Down Expand Up @@ -482,7 +482,7 @@ def verify_dhcp_file_configuration(self, node: Node) -> None:
1. Read the `yum.conf` file and verify that "http_caching=packages" is
present in the file.
""",
priority=1,
priority=2,
requirement=simple_requirement(supported_platform_type=[AZURE, READY]),
)
def verify_yum_conf(self, node: Node) -> None:
Expand All @@ -506,7 +506,7 @@ def verify_yum_conf(self, node: Node) -> None:
1. Verify that list of running process matching name of kvp daemon
has length greater than zero.
""",
priority=1,
priority=2,
requirement=simple_requirement(supported_platform_type=[AZURE, READY]),
)
def verify_hv_kvp_daemon_installed(self, node: Node) -> None:
Expand Down Expand Up @@ -882,7 +882,7 @@ def verify_boot_error_fail_warnings(self, node: Node) -> None:
2. Pass with warning if not find it.
3. Pass with warning if the value is not between 0 and 180.
""",
priority=1,
priority=2,
requirement=simple_requirement(supported_platform_type=[AZURE, READY]),
)
def verify_client_active_interval(self, node: Node) -> None:
Expand Down Expand Up @@ -989,7 +989,7 @@ def verify_no_pre_exist_users(self, node: Node) -> None:
5. Verify 'WARNING: THIS IS A TEMPORARY DISK' contained in
DATALOSS_WARNING_README.txt file.
""",
priority=1,
priority=2,
requirement=simple_requirement(
disk=AzureDiskOptionSettings(has_resource_disk=True),
supported_platform_type=[AZURE],
Expand Down
4 changes: 2 additions & 2 deletions microsoft/testsuites/core/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CPU(TestSuite):
8 0 0 8 8 8 8
9 1 1 9 9 9 9
""",
priority=2,
priority=1,
)
def verify_l3_cache(self, node: Node, log: Logger) -> None:
cmdline = node.tools[Cat].run("/proc/cmdline").stdout
Expand Down Expand Up @@ -107,7 +107,7 @@ def verify_l3_cache(self, node: Node, log: Logger) -> None:
thread_per_core_count.
3. Judge whether the actual vCPU count equals to expected value.
""",
priority=2,
priority=1,
)
def verify_cpu_count(self, node: Node, log: Logger) -> None:
lscpu = node.tools[Lscpu]
Expand Down
2 changes: 1 addition & 1 deletion microsoft/testsuites/core/gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class GDB(TestSuite):
3. expect to see 'Hello World![Inferior 1 (process 1869) exited normally]'
from output
""",
priority=1,
priority=2,
)
def verify_gdb(self, node: Node) -> None:
# copy hello.c into test machine
Expand Down
4 changes: 2 additions & 2 deletions microsoft/testsuites/core/hv_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class HvModule(TestSuite):
matches with the Linux kernel release number. (Drivers loaded directly in
to the kernel are skipped)
""",
priority=1,
priority=2,
)
def verify_lis_modules_version(self, node: Node) -> None:
if not isinstance(node.os, Redhat):
Expand Down Expand Up @@ -76,7 +76,7 @@ def verify_lis_modules_version(self, node: Node) -> None:
2. Find the path of initrd file
3. Use lsinitrd tool to check whether a necessary module is missing
""",
priority=2,
priority=1,
requirement=simple_requirement(
unsupported_os=[BSD],
),
Expand Down
4 changes: 2 additions & 2 deletions microsoft/testsuites/core/provisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def verify_deployment_provision_sriov(
The test steps are almost the same as `smoke_test` except for
executing reboot from Azure SDK.
""",
priority=1,
priority=2,
requirement=simple_requirement(
environment_status=EnvironmentStatus.Deployed,
supported_features=[SerialConsole, StartStop],
Expand All @@ -190,7 +190,7 @@ def verify_reboot_in_platform(
The test steps are almost the same as `smoke_test` except for
executing stop then start from Azure SDK.
""",
priority=2,
priority=1,
requirement=simple_requirement(
environment_status=EnvironmentStatus.Deployed,
supported_features=[SerialConsole, StartStop],
Expand Down
2 changes: 1 addition & 1 deletion microsoft/testsuites/core/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Storage(TestSuite):
2. Verify the timeout value for disk in
`/sys/block/<disk>/device/timeout` file is set to 300.
""",
priority=1,
priority=2,
requirement=simple_requirement(supported_platform_type=[AZURE]),
)
def verify_disks_device_timeout_setting(
Expand Down
4 changes: 2 additions & 2 deletions microsoft/testsuites/kdump/kdumpcrash.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def verify_kdumpcrash_single_core(
trigger kdump on the second cpu(cpu1), which is designed by a known issue.
The test steps are same as `kdumpcrash_validate_single_core`.
""",
priority=1,
priority=2,
requirement=node_requirement(
node=schema.NodeSpace(
core_count=search_space.IntRange(min=2, max=8),
Expand Down Expand Up @@ -134,7 +134,7 @@ def verify_kdumpcrash_on_random_cpu(
trigger kdump on the 33th cpu(cpu32), which is designed by a known issue.
The test steps are same as `kdumpcrash_validate_single_core`.
""",
priority=1,
priority=2,
requirement=node_requirement(
node=schema.NodeSpace(core_count=search_space.IntRange(min=33, max=192))
),
Expand Down
2 changes: 1 addition & 1 deletion microsoft/testsuites/lis/lissuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Lis(TestSuite):
3. For each rhel version (5,6,7), it downloads the header file and compares
the LIS version in the header file with the LIS version installed
""",
priority=1,
priority=2,
)
def verify_lis_driver_version(self, node: Node, log: Logger) -> None:
cat = node.tools[Cat]
Expand Down
2 changes: 1 addition & 1 deletion microsoft/testsuites/network/sriov.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def verify_sriov_provision_with_max_nics_stop_start_from_platform(
3. Remove sriov module, check network traffic through synthetic nic.
4. Load sriov module, check network traffic through VF.
""",
priority=2,
priority=1,
requirement=simple_requirement(
min_count=2,
min_nic_count=8,
Expand Down
2 changes: 1 addition & 1 deletion microsoft/testsuites/osu/osusuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class OSUTestSuite(TestSuite):
requirement=simple_requirement(
supported_features=[GpuEnabled(), SerialConsole],
),
priority=1,
priority=2,
)
def perf_mpi_operations(self, node: Node, log: Logger, log_path: Path) -> None:
_install_osu_mpi(node)
Expand Down

0 comments on commit dfe240b

Please sign in to comment.