Skip to content
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

DAOS-9249 test: tag vm tests with vm tag (#12431) #12532

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/tests/ftest/avocado_tests.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/python3
"""
(C) Copyright 2020-2023 Intel Corporation.

Expand Down Expand Up @@ -41,8 +40,10 @@ def tearDown(self):
def test_junit_stdio(self):
"""Test full Stdout in Jenkins JUnit display

:avocado: tags=manual
:avocado: tags=vm
:avocado: tags=avocado_tests,avocado_junit_stdout
:avocado: tags=test_junit_stdio
:avocado: tags=ApricotTests,test_junit_stdio
"""
with open('large_stdout.txt', 'r') as inp:
print(inp.read())
Expand All @@ -51,18 +52,21 @@ def test_junit_stdio(self):
def test_teardown_timeout_timed_out(self):
"""Test the PoC tearDown() timeout patch

:avocado: tags=manual
:avocado: tags=vm
:avocado: tags=avocado_tests,avocado_test_teardown_timeout
:avocado: tags=avocado_test_teardown_timeout_timed_out
:avocado: tags=test_teardown_timeout_timed_out
:avocado: tags=ApricotTests,test_teardown_timeout_timed_out
"""
self.log.debug("Sleeping for 10 seconds")
time.sleep(10)

def test_teardown_timeout(self):
"""Test the PoC tearDown() timeout patch

:avocado: tags=manual
:avocado: tags=vm
:avocado: tags=avocado_tests,avocado_test_teardown_timeout
:avocado: tags=test_teardown_timeout
:avocado: tags=ApricotTests,test_teardown_timeout
"""
self.log.debug("Sleeping for 1 second")
time.sleep(1)
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/corpc/corpc_five_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartCoRpcFiveNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_corpc(self):
def test_cart_corpc_five_node(self):
"""Test CaRT CoRPC.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,corpc,five_node,memcheck
:avocado: tags=test_cart_corpc
:avocado: tags=CartCoRpcFiveNodeTest,test_cart_corpc_five_node
"""
cmd = self.build_cmd(self.env, "test_servers")
self.launch_test(cmd)
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/corpc/corpc_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartCoRpcOneNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_corpc(self):
def test_cart_corpc_one_node(self):
"""Test CaRT CoRPC.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,corpc,one_node,memcheck
:avocado: tags=test_cart_corpc
:avocado: tags=CartCoRpcOneNodeTest,test_cart_corpc_one_node
"""
cmd = self.build_cmd(self.env, "test_servers")
self.launch_test(cmd)
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/corpc/corpc_two_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartCoRpcTwoNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_corpc(self):
def test_cart_corpc_two_node(self):
"""Test CaRT CoRPC.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,corpc,two_node,memcheck
:avocado: tags=test_cart_corpc
:avocado: tags=CartCoRpcTwoNodeTest,test_cart_corpc_two_node
"""
cmd = self.build_cmd(self.env, "test_servers")
self.launch_test(cmd)
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/ctl/ctl_five_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartCtlFiveNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_ctl(self):
def test_cart_ctl_five_node(self):
"""Test CaRT ctl.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,ctl,five_node,memcheck
:avocado: tags=test_cart_ctl
:avocado: tags=CartCtlFiveNodeTest,test_cart_ctl_five_node
"""
srvcmd = self.build_cmd(self.env, "test_servers")

Expand Down
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/ctl/ctl_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartCtlOneNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_ctl(self):
def test_cart_ctl_one_node(self):
"""Test CaRT ctl.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,ctl,one_node,memcheck
:avocado: tags=test_cart_ctl
:avocado: tags=CartCtlOneNodeTest,test_cart_ctl_one_node
"""
srvcmd = self.build_cmd(self.env, "test_servers")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ def test_cart_ghost_rank_rpc(self):
"""Test ghost rank RPC.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,ghost_rank_rpc,one_node,memcheck
:avocado: tags=test_cart_ghost_rank_rpc
:avocado: tags=CartGhostRankRpcOneNodeTest,test_cart_ghost_rank_rpc
"""
cmd = self.build_cmd(self.env, "test_servers")
self.launch_test(cmd)
7 changes: 4 additions & 3 deletions src/tests/ftest/cart/group_test/group_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@
from cart_utils import CartTest


class GroupTest(CartTest):
class CartGroupTest(CartTest):
# pylint: disable=too-few-public-methods
"""Run GroupTests for primary and secondary groups.

:avocado: recursive
"""

def test_group(self):
def test_cart_group(self):
"""Test CaRT NoPmix Launcher.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,group_test,one_node,memcheck
:avocado: tags=test_group
:avocado: tags=CartGroupTest,test_cart_group
"""
cmd = self.build_cmd(self.env, "test_servers")
self.launch_test(cmd)
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/iv/iv_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,13 @@ def _iv_test_actions(self, cmd, actions):
'Error code {!s} running command "{!s}"'.format(
cli_rtn, command))

def test_cart_iv(self):
def test_cart_iv_one_node(self):
"""Test CaRT IV.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,iv,one_node,memcheck
:avocado: tags=test_cart_iv
:avocado: tags=CartIvOneNodeTest,test_cart_iv_one_node
"""
srvcmd = self.build_cmd(self.env, "test_servers")

Expand Down
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/iv/iv_two_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,14 @@ def _iv_test_actions(self, cmd, actions):
'Error code {!s} running command "{!s}"'.format(
cli_rtn, command))

def test_cart_iv(self):
def test_cart_iv_two_node(self):
"""
Test CaRT IV

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,iv,two_node,memcheck
:avocado: tags=test_cart_iv
:avocado: tags=CartIvTwoNodeTest,test_cart_iv_two_node
"""
srvcmd = self.build_cmd(self.env, "test_servers")

Expand Down
3 changes: 2 additions & 1 deletion src/tests/ftest/cart/no_pmix/multictx_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def test_cart_no_pmix(self):
"""Test CaRT NoPmix.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,no_pmix,one_node,memcheck
:avocado: tags=test_cart_no_pmix
:avocado: tags=CartNoPmixOneNodeTest,test_cart_no_pmix
"""
cmd = self.params.get("tst_bin", '/run/tests/*/')

Expand Down
3 changes: 2 additions & 1 deletion src/tests/ftest/cart/nopmix_launcher/launcher_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ def test_cart_no_pmix_launcher(self):
"""Test CaRT NoPmix Launcher.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,no_pmix_launcher,one_node,memcheck
:avocado: tags=test_cart_no_pmix_launcher
:avocado: tags=CartNoPmixLauncherOneNodeTest,test_cart_no_pmix_launcher
"""
cli_bin = self.params.get("test_clients_bin", '/run/tests/*/')
cli_arg = self.params.get("test_clients_arg", '/run/tests/*/')
Expand Down
3 changes: 2 additions & 1 deletion src/tests/ftest/cart/rpc/multisend_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ def test_cart_multisend(self):
"""Test multi-send

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,rpc,one_node,memcheck,multisend,bulk
:avocado: tags=test_cart_multisend
:avocado: tags=CartMultisendOneNodeTest,test_cart_multisend
"""
srvcmd = self.build_cmd(self.env, "test_servers")

Expand Down
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/rpc/rpc_one_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartRpcOneNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_rpc(self):
def test_cart_rpc_one_node(self):
"""Test CaRT RPC.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,rpc,one_node,memcheck
:avocado: tags=test_cart_rpc
:avocado: tags=CartRpcOneNodeTest,test_cart_rpc_one_node
"""
srvcmd = self.build_cmd(self.env, "test_servers")
clicmd = self.build_cmd(self.env, "test_clients")
Expand Down
5 changes: 3 additions & 2 deletions src/tests/ftest/cart/rpc/rpc_two_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartRpcTwoNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_rpc(self):
def test_cart_rpc_two_node(self):
"""Test CaRT RPC.

:avocado: tags=all,pr,daily_regression
:avocado: tags=vm
:avocado: tags=cart,rpc,two_node,memcheck
:avocado: tags=test_cart_rpc
:avocado: tags=CartRpcTwoNodeTest,test_cart_rpc_two_node
"""
srvcmd = self.build_cmd(self.env, "test_servers")
clicmd = self.build_cmd(self.env, "test_clients")
Expand Down
1 change: 1 addition & 0 deletions src/tests/ftest/cart/rpc/swim_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def test_cart_rpc(self):
"""Test CaRT RPC.

:avocado: tags=all,pr
:avocado: tags=vm
:avocado: tags=cart,rpc,one_node,swim_rank_eviction,memcheck
:avocado: tags=CartRpcOneNodeSwimNotificationOnRankEvictionTest,test_cart_rpc
"""
Expand Down
7 changes: 4 additions & 3 deletions src/tests/ftest/cart/selftest/selftest_three_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ class CartSelfThreeNodeTest(CartTest):
:avocado: recursive
"""

def test_cart_selftest(self):
def test_cart_selftest_three_node(self):
"""Test CaRT Self Test.

:avocado: tags=all,pr,daily_regression
:avocado: tags=cart,selftest,three_node,memcheck
:avocado: tags=test_cart_selftest
:avocado: tags=vm
:avocado: tags=cart,selftest,memcheck
:avocado: tags=CartSelfThreeNodeTest,test_cart_selftest_three_node
"""
srvcmd = self.build_cmd(self.env, "test_servers")

Expand Down
4 changes: 2 additions & 2 deletions src/tests/ftest/checksum/csum_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def test_single_object_with_checksum(self):
Test Description: Write Avocado Test to verify single data after
pool/container disconnect/reconnect.
:avocado: tags=all,daily_regression
:avocado: vm
:avocado: tags=vm
:avocado: tags=checksum
:avocado: tags=basic_checksum_object,test_single_object_with_checksum
:avocado: tags=CsumContainerValidation,test_single_object_with_checksum
"""
self.d_log.info("Writing the Single Dataset")
record_index = 0
Expand Down
5 changes: 3 additions & 2 deletions src/tests/ftest/harness/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ def test_always_fails(self):
"""Simple test of apricot test code.

:avocado: tags=all
:avocado: tags=vm
:avocado: tags=harness,harness_basic_test
:avocado: tags=always_fails,test_always_fails
:avocado: tags=HarnessBasicTest,always_fails,test_always_fails
"""
self.fail("NOOP test to do nothing but fail")

Expand All @@ -33,7 +34,7 @@ def test_always_fails_hw(self):
:avocado: tags=all
:avocado: tags=hw,large,medium,small
:avocado: tags=harness,harness_basic_test
:avocado: tags=always_fails,test_always_fails_hw
:avocado: tags=HarnessBasicTest,always_fails,test_always_fails_hw
"""
self.test_always_fails()

Expand Down
5 changes: 5 additions & 0 deletions src/tests/ftest/harness/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def test_harness_unit_list_unique(self):
"""Verify list_unique().

:avocado: tags=all
:avocado: tags=vm
:avocado: tags=harness,dict_utils
:avocado: tags=HarnessUnitTest,test_harness_unit_list_unique
"""
Expand All @@ -41,6 +42,7 @@ def test_harness_unit_list_flatten(self):
"""Verify list_flatten().

:avocado: tags=all
:avocado: tags=vm
:avocado: tags=harness,dict_utils
:avocado: tags=HarnessUnitTest,test_harness_unit_list_flatten
"""
Expand Down Expand Up @@ -70,6 +72,7 @@ def test_harness_unit_list_stats(self):
"""Verify list_stats().

:avocado: tags=all
:avocado: tags=vm
:avocado: tags=harness,dict_utils
:avocado: tags=HarnessUnitTest,test_harness_unit_list_stats
"""
Expand All @@ -92,6 +95,7 @@ def test_harness_unit_dict_extract_values(self):
"""Verify dict_extract_values().

:avocado: tags=all
:avocado: tags=vm
:avocado: tags=harness,dict_utils
:avocado: tags=HarnessUnitTest,test_harness_unit_dict_extract_values
"""
Expand Down Expand Up @@ -152,6 +156,7 @@ def test_harness_unit_dict_subtract(self):
"""Verify dict_subtract().

:avocado: tags=all
:avocado: tags=vm
:avocado: tags=harness,dict_utils
:avocado: tags=HarnessUnitTest,test_harness_unit_dict_subtract
"""
Expand Down