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_service_plugin.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipatests/test_xmlrpc/test_service_plugin.py') diff --git a/ipatests/test_xmlrpc/test_service_plugin.py b/ipatests/test_xmlrpc/test_service_plugin.py index 78ba60a69..ecc5248a9 100644 --- a/ipatests/test_xmlrpc/test_service_plugin.py +++ b/ipatests/test_xmlrpc/test_service_plugin.py @@ -31,6 +31,7 @@ from ipatests.test_xmlrpc.test_user_plugin import ( get_user_result, get_user_dn, get_group_dn) import base64 from ipapython.dn import DN +import pytest fqdn1 = u'testhost1.%s' % api.env.domain fqdn2 = u'testhost2.%s' % api.env.domain @@ -60,6 +61,8 @@ hostgroup1 = u'testhostgroup1' hostgroup1_dn = DN(('cn',hostgroup1),('cn','hostgroups'),('cn','accounts'), api.env.basedn) + +@pytest.mark.tier1 class test_service(Declarative): cleanup_commands = [ @@ -648,6 +651,7 @@ class test_service(Declarative): ] +@pytest.mark.tier1 class test_service_in_role(Declarative): cleanup_commands = [ ('host_del', [fqdn1], {}), @@ -771,6 +775,7 @@ class test_service_in_role(Declarative): ] +@pytest.mark.tier1 class test_service_allowed_to(Declarative): cleanup_commands = [ ('user_del', [user1], {}), -- cgit