From 0a64e9bd7061550b478be889b0e7fc90f560b06c Mon Sep 17 00:00:00 2001 From: Milan Kubik Date: Fri, 24 Apr 2015 14:39:48 +0200 Subject: Applied tier0 and tier1 marks on unit tests and xmlrpc tests Web UI tests were marked as tier1 tests. The tier system is intended to be used together with CI system to make sure the more complicated tests are being run only when all of the basic functionality is working. The system is using pytest's marker system. E.g. an invocation of all tier1 tests with listing will look like: $ py.test -v -m tier1 ipatests or in case of out of tree tests: $ ipa-run-tests -m tier1 Reviewed-By: Ales 'alich' Marecek --- ipatests/test_xmlrpc/test_stageuser_plugin.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ipatests/test_xmlrpc/test_stageuser_plugin.py') diff --git a/ipatests/test_xmlrpc/test_stageuser_plugin.py b/ipatests/test_xmlrpc/test_stageuser_plugin.py index b09ef6e84..43c59b7c7 100644 --- a/ipatests/test_xmlrpc/test_stageuser_plugin.py +++ b/ipatests/test_xmlrpc/test_stageuser_plugin.py @@ -389,6 +389,7 @@ def user7(request): return tracker.make_fixture_restore(request) +@pytest.mark.tier1 class TestNonexistentStagedUser(XMLRPC_test): def test_retrieve_nonexistent(self, stageduser): stageduser.ensure_missing() @@ -426,6 +427,7 @@ class TestNonexistentStagedUser(XMLRPC_test): command() +@pytest.mark.tier1 class TestStagedUser(XMLRPC_test): def test_create_duplicate(self, stageduser): stageduser.ensure_exists() @@ -518,6 +520,7 @@ class TestStagedUser(XMLRPC_test): stageduser.retrieve() +@pytest.mark.tier1 class TestCreateInvalidAttributes(XMLRPC_test): def test_create_invalid_uid(self): invalid = StageUserTracker(invaliduser1, u'invalid', u'user') @@ -586,6 +589,7 @@ class TestCreateInvalidAttributes(XMLRPC_test): command() +@pytest.mark.tier1 class TestUpdateInvalidAttributes(XMLRPC_test): def test_update_uid_string(self, stageduser): stageduser.ensure_exists() @@ -620,6 +624,7 @@ class TestUpdateInvalidAttributes(XMLRPC_test): command() +@pytest.mark.tier1 class TestActive(XMLRPC_test): def test_delete(self, user): user.ensure_exists() @@ -659,6 +664,7 @@ class TestActive(XMLRPC_test): command() +@pytest.mark.tier1 class TestPreserved(XMLRPC_test): def test_search_preserved_invalid(self, user): user.make_preserved_user() @@ -752,6 +758,7 @@ class TestPreserved(XMLRPC_test): stageduser.delete() +@pytest.mark.tier1 class TestManagers(XMLRPC_test): def test_staged_manager(self, user, stageduser): user.ensure_exists() @@ -795,6 +802,7 @@ class TestManagers(XMLRPC_test): assert False +@pytest.mark.tier1 class TestDuplicates(XMLRPC_test): def test_active_same_as_preserved(self, user4, user5): user4.ensure_missing() @@ -851,6 +859,7 @@ def group(request): return tracker.make_fixture(request) +@pytest.mark.tier1 class TestGroups(XMLRPC_test): def test_stageduser_membership(self, stageduser, group): stageduser.ensure_exists() -- cgit