diff options
author | Milan Kubik <mkubik@redhat.com> | 2015-04-24 14:39:48 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-11-09 11:49:17 +0100 |
commit | 0a64e9bd7061550b478be889b0e7fc90f560b06c (patch) | |
tree | 125f97a97bfab06c06dadbef1b7983e0d5f97263 /ipatests/test_xmlrpc/test_permission_plugin.py | |
parent | 4d94367006287ed0a04c092a7b86096518cf5b8c (diff) | |
download | freeipa-0a64e9bd7061550b478be889b0e7fc90f560b06c.tar.gz freeipa-0a64e9bd7061550b478be889b0e7fc90f560b06c.tar.xz freeipa-0a64e9bd7061550b478be889b0e7fc90f560b06c.zip |
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 <amarecek@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc/test_permission_plugin.py')
-rw-r--r-- | ipatests/test_xmlrpc/test_permission_plugin.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_permission_plugin.py b/ipatests/test_xmlrpc/test_permission_plugin.py index b9c8d1b98..d0bee97df 100644 --- a/ipatests/test_xmlrpc/test_permission_plugin.py +++ b/ipatests/test_xmlrpc/test_permission_plugin.py @@ -32,6 +32,7 @@ from ipatests.test_xmlrpc import objectclasses from ipatests.test_xmlrpc.xmlrpc_test import Declarative from ipapython.dn import DN import inspect +import pytest try: from ipaserver.plugins.ldap2 import ldap2 @@ -145,6 +146,7 @@ def lineinfo(level): return '%s:%s' % (filename, lineno) +@pytest.mark.tier1 class test_permission_negative(Declarative): """Make sure invalid operations fail""" @@ -386,6 +388,7 @@ class test_permission_negative(Declarative): ] +@pytest.mark.tier1 class test_permission(Declarative): """Misc. tests for the permission plugin""" cleanup_commands = [ @@ -1722,6 +1725,7 @@ class test_permission_rollback(Declarative): ] + _verifications +@pytest.mark.tier1 class test_permission_sync_attributes(Declarative): """Test the effects of setting permission attributes""" cleanup_commands = [ @@ -2244,6 +2248,7 @@ class test_permission_sync_nice(Declarative): ] +@pytest.mark.tier1 class test_permission_targetfilter(Declarative): """Test the targetfilter options on permissions""" cleanup_commands = [ @@ -2807,6 +2812,7 @@ def _make_permission_flag_tests(flags, expected_message): ] +@pytest.mark.tier1 class test_permission_flags(Declarative): """Test that permission flags are handled correctly""" cleanup_commands = [ @@ -2852,6 +2858,8 @@ def check_legacy_results(results): assert len(legacy_permissions) == 9, len(legacy_permissions) return True + +@pytest.mark.tier1 class test_permission_legacy(Declarative): """Tests for non-upgraded permissions""" @@ -2870,6 +2878,7 @@ class test_permission_legacy(Declarative): ] +@pytest.mark.tier1 class test_permission_bindtype(Declarative): cleanup_commands = [ ('permission_del', [permission1], {'force': True}), @@ -3159,6 +3168,7 @@ class test_permission_bindtype(Declarative): ] +@pytest.mark.tier1 class test_managed_permissions(Declarative): cleanup_commands = [ ('permission_del', [permission1], {'force': True}), @@ -3689,6 +3699,7 @@ class test_managed_permissions(Declarative): ] +@pytest.mark.tier1 class test_permission_filters(Declarative): """Test multi-valued filters, type, memberof""" cleanup_commands = [ |