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_baseldap_plugin.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipatests/test_xmlrpc/test_baseldap_plugin.py') diff --git a/ipatests/test_xmlrpc/test_baseldap_plugin.py b/ipatests/test_xmlrpc/test_baseldap_plugin.py index 477772c00..6764b1051 100644 --- a/ipatests/test_xmlrpc/test_baseldap_plugin.py +++ b/ipatests/test_xmlrpc/test_baseldap_plugin.py @@ -28,8 +28,10 @@ from ipapython import ipaldap from ipalib import errors from ipalib.plugins import baseldap from ipatests.util import assert_deepequal +import pytest +@pytest.mark.tier0 def test_exc_wrapper(): """Test the CallbackInterface._exc_wrapper helper method""" handled_exceptions = [] @@ -73,6 +75,7 @@ def test_exc_wrapper(): assert handled_exceptions == [None, errors.ExecutionError] +@pytest.mark.tier0 def test_callback_registration(): class callbacktest_base(baseldap.CallbackInterface): _callback_registry = dict(test={}) @@ -117,6 +120,7 @@ def test_callback_registration(): ('Subclass registered callback', 42)] +@pytest.mark.tier0 def test_exc_callback_registration(): messages = [] class callbacktest_base(baseldap.BaseLDAPCommand): @@ -169,6 +173,7 @@ def test_exc_callback_registration(): assert messages == ['Base exc_callback', 'Subclass registered callback'] +@pytest.mark.tier0 def test_entry_to_dict(): class FakeAttributeType(object): def __init__(self, name, syntax): -- cgit