id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16,500 | service_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/service_plugin.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
import six
from ipalib import api
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.test_xmlrpc.tracker.kerberos_aliases import KerberosAliasMixin
from ipatests.test_xmlrpc.xmlrpc_test import fuzzy_uuid
fr... | 6,487 | Python | .py | 149 | 34.516779 | 76 | 0.621592 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,501 | ca_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/ca_plugin.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import six
from ipapython.dn import DN
from ipatests.test_xmlrpc.tracker.base import Tracker, EnableTracker
from ipatests.util import assert_deepequal
from ipatests.test_xmlrpc.xmlrpc_test import (
fuzzy_... | 5,526 | Python | .py | 140 | 30.342857 | 73 | 0.610075 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,502 | automember_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/automember_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from ipatests.test_xmlrpc import objectclasses
from ipatests.test_xmlrpc.xmlrpc_test import (
fuzzy_uuid, fuzzy_automember_message, fuzzy_automember_dn)
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.util import assert_dee... | 14,264 | Python | .py | 304 | 34.796053 | 79 | 0.583639 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,503 | certmapdata.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/certmapdata.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import base64
from cryptography import x509
from cryptography.hazmat.backends import default_backend
import pytest
from ipalib.errors import MutuallyExclusiveError, RequirementError
from ipapython.dn import DN
from ipatests.util import assert_deep... | 4,484 | Python | .py | 108 | 27.851852 | 78 | 0.533686 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,504 | host_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/host_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function
from ipapython.dn import DN
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.test_xmlrpc.tracker.kerberos_aliases import KerberosAliasMixin
from ipatests.test_xmlrpc.xmlrpc_test import fuzz... | 7,594 | Python | .py | 173 | 34.092486 | 79 | 0.6168 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,505 | location_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/location_plugin.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import six
from ipapython.dn import DN
from ipapython.dnsutil import DNSName
from ipatests.util import assert_deepequal
from ipatests.test_xmlrpc.tracker.base import Tracker
if six.PY3:
unicode = str
... | 5,622 | Python | .py | 134 | 32.365672 | 79 | 0.61226 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,506 | group_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/group_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from ipatests.test_xmlrpc import objectclasses
from ipatests.test_xmlrpc.xmlrpc_test import fuzzy_digits, fuzzy_uuid
from ipatests.test_xmlrpc.xmlrpc_test import fuzzy_user_or_group_sid
from ipatests.test_xmlrpc.xmlrpc_test import fuzzy_set_optiona... | 14,193 | Python | .py | 321 | 32.981308 | 75 | 0.579366 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,507 | idp_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/idp_plugin.py | #
# Copyright (C) 2021 FreeIPA Contributors see COPYING for license
#
from ipalib import api
from ipapython.dn import DN
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.test_xmlrpc import objectclasses
from ipatests.util import assert_deepequal
class IdpTracker(Tracker):
"""Class for ipd tes... | 5,796 | Python | .py | 142 | 30.697183 | 77 | 0.586385 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,508 | base.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/base.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Implements a base class to track changes to an LDAP object.
"""
from __future__ import print_function
import functools
from ipalib import api, errors
from ipapython.dn import DN
from ipapython.version import API_VERSION
from ipatests.util imp... | 13,440 | Python | .py | 307 | 34.925081 | 78 | 0.64134 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,509 | certprofile_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/certprofile_plugin.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import os
import six
from ipapython.dn import DN
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.test_xmlrpc import objectclasses
from ipatests.util import assert_deepequal
if six.PY3:
unicode = st... | 4,565 | Python | .py | 115 | 29.530435 | 79 | 0.59534 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,510 | sudocmdgroup_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/sudocmdgroup_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from ipatests.test_xmlrpc import objectclasses
from ipatests.test_xmlrpc.xmlrpc_test import fuzzy_uuid
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.util import assert_deepequal
from ipalib import api
from ipapython.dn impor... | 8,404 | Python | .py | 190 | 33.9 | 79 | 0.603866 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,511 | passkey_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/passkey_plugin.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
from ipapython.dn import DN
from ipatests.test_xmlrpc import objectclasses
from ipatests.test_xmlrpc.tracker.base import ConfigurationTracker
from ipatests.test_xmlrpc.xmlrpc_test import fuzzy_string
from ipatests.util import assert_deepequal
cla... | 3,860 | Python | .py | 103 | 26.990291 | 77 | 0.574183 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,512 | caacl_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/caacl_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from ipalib import errors
from ipatests.util import assert_deepequal
from ipatests.test_xmlrpc.xmlrpc_test import (fuzzy_caacldn, fuzzy_uuid,
fuzzy_ipauniqueid)
from ipatests.test_xmlrpc import objectcl... | 13,270 | Python | .py | 304 | 31.993421 | 82 | 0.585803 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,513 | idview_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/idview_plugin.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from ipalib import api
from ipapython.dn import DN
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.util import assert_deepequal
from ipatests.test_xmlrpc import objectclasses
import six
if six.PY3:
unicode = str
class Id... | 3,823 | Python | .py | 95 | 31.6 | 73 | 0.621257 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,514 | user_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/user_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from ipalib import api, errors
from ipaplatform.constants import constants as platformconstants
from ipapython.dn import DN
import six
from ipatests.util import assert_deepequal, get_group_dn
from ipatests.test_xmlrpc import objectclasses
from ip... | 21,495 | Python | .py | 478 | 34.014644 | 79 | 0.592327 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,515 | stageuser_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/stageuser_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import six
from ipalib import api, errors
from ipaplatform.constants import constants as platformconstants
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.test_xmlrpc.tracker.passkey_plugin import PasskeyMixin
from ipatests.te... | 11,639 | Python | .py | 249 | 36.349398 | 79 | 0.614157 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,516 | hostgroup_plugin.py | freeipa_freeipa/ipatests/test_xmlrpc/tracker/hostgroup_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from ipatests.test_xmlrpc import objectclasses
from ipatests.test_xmlrpc.xmlrpc_test import fuzzy_uuid
from ipatests.test_xmlrpc.tracker.base import Tracker
from ipatests.util import assert_deepequal
from ipalib import api
from ipapython.dn impor... | 9,613 | Python | .py | 217 | 33.548387 | 79 | 0.58711 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,517 | __init__.py | freeipa_freeipa/ipatests/test_ipaclient/__init__.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Sub-package containing unit tests for `ipaclient` package.
"""
| 139 | Python | .py | 6 | 22 | 66 | 0.765152 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,518 | test_ldapconf.py | freeipa_freeipa/ipatests/test_ipaclient/test_ldapconf.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
import os
import shutil
import tempfile
import pytest
from ipaplatform.paths import paths
import ipatests.util
ipatests.util.check_ipaclient_unittests() # noqa: E402
from ipaclient.install.client import configure_openldap_conf
# with single U... | 2,726 | Python | .py | 87 | 26.241379 | 78 | 0.646654 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,519 | test_backend.py | freeipa_freeipa/ipatests/test_ipalib/test_backend.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 9,835 | Python | .py | 247 | 30.88664 | 87 | 0.597549 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,520 | test_capabilities.py | freeipa_freeipa/ipatests/test_ipalib/test_capabilities.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2012 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 1,289 | Python | .py | 31 | 39.645161 | 71 | 0.75818 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,521 | test_cli.py | freeipa_freeipa/ipatests/test_ipalib/test_cli.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 2,930 | Python | .py | 93 | 26.516129 | 79 | 0.63274 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,522 | test_aci.py | freeipa_freeipa/ipatests/test_ipalib/test_aci.py | # Authors:
# Rob Crittenden <rcritten@redhat.com>
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | 9,539 | Python | .py | 133 | 66.62406 | 462 | 0.689202 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,523 | test_messages.py | freeipa_freeipa/ipatests/test_ipalib/test_messages.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 1012 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 2,918 | Python | .py | 77 | 31.792208 | 79 | 0.661707 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,524 | test_output.py | freeipa_freeipa/ipatests/test_ipalib/test_output.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2009 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eit... | 2,889 | Python | .py | 84 | 27.940476 | 71 | 0.609896 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,525 | test_rpc.py | freeipa_freeipa/ipatests/test_ipalib/test_rpc.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 13,147 | Python | .py | 334 | 32.038922 | 83 | 0.636399 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,526 | test_frontend.py | freeipa_freeipa/ipatests/test_ipalib/test_frontend.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 38,501 | Python | .py | 1,031 | 27.347236 | 128 | 0.544181 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,527 | test_text.py | freeipa_freeipa/ipatests/test_ipalib/test_text.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2009 Red Hat
# see file 'COPYING' for use and warranty contextrmation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation,... | 14,513 | Python | .py | 340 | 34.564706 | 89 | 0.594016 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,528 | test_base.py | freeipa_freeipa/ipatests/test_ipalib/test_base.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 11,305 | Python | .py | 324 | 26.216049 | 77 | 0.545014 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,529 | __init__.py | freeipa_freeipa/ipatests/test_ipalib/__init__.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 843 | Python | .py | 21 | 39.095238 | 71 | 0.771011 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,530 | test_crud.py | freeipa_freeipa/ipatests/test_ipalib/test_crud.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 7,143 | Python | .py | 203 | 27.502463 | 78 | 0.596898 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,531 | test_parameters.py | freeipa_freeipa/ipatests/test_ipalib/test_parameters.py | # -*- coding: utf-8 -*-
# Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free... | 67,463 | Python | .py | 1,668 | 30.630096 | 105 | 0.57694 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,532 | test_util.py | freeipa_freeipa/ipatests/test_ipalib/test_util.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""Tests for ipalib.util module
"""
import os
import ssl
from unittest import mock
import pytest
from ipalib.util import (
get_pager, create_https_connection, get_proper_tls_version_span
)
from ipaplatform.constants import constants
@pytest... | 2,498 | Python | .py | 67 | 33.567164 | 77 | 0.664601 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,533 | test_errors.py | freeipa_freeipa/ipatests/test_ipalib/test_errors.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 12,993 | Python | .py | 314 | 33.471338 | 88 | 0.628628 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,534 | test_plugable.py | freeipa_freeipa/ipatests/test_ipalib/test_plugable.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ei... | 10,268 | Python | .py | 288 | 26.489583 | 79 | 0.581477 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,535 | test_config.py | freeipa_freeipa/ipatests/test_ipalib/test_config.py | # Authors:
# Martin Nagy <mnagy@redhat.com>
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by... | 22,101 | Python | .py | 563 | 31.253996 | 90 | 0.609884 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,536 | test_x509.py | freeipa_freeipa/ipatests/test_ipalib/test_x509.py | # Authors:
# Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2010 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either... | 19,250 | Python | .py | 391 | 42.659847 | 79 | 0.752845 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,537 | test_upgrade.py | freeipa_freeipa/ipatests/test_integration/test_upgrade.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests to verify that the upgrade script works.
"""
import base64
import configparser
import os
import io
import textwrap
from subprocess import CalledProcessError
from cryptography.hazmat.primitives import serialization
import ... | 19,401 | Python | .py | 450 | 33.653333 | 80 | 0.623067 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,538 | test_trust.py | freeipa_freeipa/ipatests/test_integration/test_trust.py | # Copyright (C) 2019 FreeIPA Contributors see COPYING for license
from __future__ import absolute_import
import re
import textwrap
import time
import functools
import pytest
from ipaplatform.constants import constants as platformconstants
from ipaplatform.paths import paths
from ipatests.test_integration.base impo... | 56,712 | Python | .py | 1,110 | 38.454955 | 107 | 0.586468 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,539 | test_authselect.py | freeipa_freeipa/ipatests/test_integration/test_authselect.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests to verify that the authselect code works.
"""
from __future__ import absolute_import
import os
import pytest
from ipaplatform.paths import paths
from ipatests.test_integration.base import IntegrationTest
from ipatests.p... | 10,844 | Python | .py | 238 | 37.453782 | 78 | 0.672942 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,540 | test_forced_client_reenrollment.py | freeipa_freeipa/ipatests/test_integration/test_forced_client_reenrollment.py | # Authors:
# Ana Krivokapic <akrivoka@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either... | 11,215 | Python | .py | 272 | 32.136029 | 78 | 0.628233 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,541 | test_winsyncmigrate.py | freeipa_freeipa/ipatests/test_integration/test_winsyncmigrate.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for the ipa-winsync-migrate command.
"""
import os
import base64
import re
import pytest
from ipaplatform.constants import constants as platformconstants
from ipatests.pytest_ipa.integration import tasks
from ipatests.te... | 10,622 | Python | .py | 208 | 40.985577 | 79 | 0.621471 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,542 | test_service_permissions.py | freeipa_freeipa/ipatests/test_integration/test_service_permissions.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 8,119 | Python | .py | 153 | 38.137255 | 78 | 0.553565 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,543 | test_epn.py | freeipa_freeipa/ipatests/test_integration/test_epn.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | 31,037 | Python | .py | 732 | 32.452186 | 80 | 0.596488 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,544 | test_sssd.py | freeipa_freeipa/ipatests/test_integration/test_sssd.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""This module provides tests for SSSD as used in IPA"""
from __future__ import absolute_import
import time
from contextlib import contextmanager
import re
import os
import pytest
import subprocess
import textwrap
from ipatests.test_integration... | 31,751 | Python | .py | 650 | 37.552308 | 80 | 0.596705 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,545 | test_adtrust_install.py | freeipa_freeipa/ipatests/test_integration/test_adtrust_install.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""This module provides tests for ipa-adtrust-install utility"""
import re
import os
import textwrap
import subprocess
from ipaplatform.paths import paths
from ipapython.dn import DN
from ipatests.pytest_ipa.integration import tasks
from ipatests... | 35,554 | Python | .py | 844 | 30.748815 | 79 | 0.564388 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,546 | test_cli_ipa_not_configured.py | freeipa_freeipa/ipatests/test_integration/test_cli_ipa_not_configured.py | from ipapython.admintool import SERVER_NOT_CONFIGURED
from ipatests.test_integration.base import IntegrationTest
class TestIPANotConfigured(IntegrationTest):
"""
Test class for CLI commands with ipa server not configured.
Topology parameter is omitted in order to prevent IPA from configuring.
"""
... | 1,058 | Python | .py | 21 | 42.571429 | 77 | 0.692456 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,547 | test_pkinit_install.py | freeipa_freeipa/ipatests/test_integration/test_pkinit_install.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for ipa-client-install with PKINIT
"""
import os
from ipaplatform.paths import paths
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
class TestPkinitClientIns... | 3,805 | Python | .py | 111 | 23.522523 | 74 | 0.537374 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,548 | test_server_del.py | freeipa_freeipa/ipatests/test_integration/test_server_del.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from itertools import permutations
import pytest
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
from ipatests.pytest_ipa.integration.firewall import Firewall
from ipalib.constants impor... | 11,597 | Python | .py | 302 | 28.966887 | 79 | 0.607702 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,549 | test_custom_plugins.py | freeipa_freeipa/ipatests/test_integration/test_custom_plugins.py | #
# Copyright (C) 2021 FreeIPA Contributors see COPYING for license
#
"""Tests for custom plugins
"""
from __future__ import absolute_import
import logging
import os
import site
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
logger = logging.getLogger(__... | 3,201 | Python | .py | 74 | 33.891892 | 79 | 0.60424 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,550 | test_uninstallation.py | freeipa_freeipa/ipatests/test_integration/test_uninstallation.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests that uninstallation is successful.
It is important not to leave the remote system in an inconsistent
state. Every failed uninstall should successfully remove remaining
pieces if possible.
"""
from __future__ import absol... | 8,330 | Python | .py | 195 | 31.65641 | 76 | 0.589493 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,551 | test_nfs.py | freeipa_freeipa/ipatests/test_integration/test_nfs.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""This module provides tests for NFS-related features like
krb5 NFS and automount locations.
Wishlist
* add automount direct and indirect maps
* add automount /home for the "seattle" location only
* validate it is not available in ... | 12,066 | Python | .py | 289 | 32.179931 | 79 | 0.582116 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,552 | test_automember.py | freeipa_freeipa/ipatests/test_integration/test_automember.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""This covers tests for automemberfeature."""
from __future__ import absolute_import
import uuid
from ipapython.dn import DN
from ipatests.pytest_ipa.integration import tasks
from ipatests.test_integration.base import IntegrationTest
msg = ('IM... | 12,362 | Python | .py | 248 | 37.58871 | 79 | 0.599635 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,553 | test_kerberos_flags.py | freeipa_freeipa/ipatests/test_integration/test_kerberos_flags.py | # Authors:
# Ana Krivokapic <akrivoka@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either... | 7,160 | Python | .py | 156 | 36.5 | 79 | 0.620893 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,554 | test_membermanager.py | freeipa_freeipa/ipatests/test_integration/test_membermanager.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""Tests for member manager feature
"""
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
PASSWORD = "DummyPassword123"
# direct member manager
USER_MM = "mmuser"
# indirect member manager... | 10,366 | Python | .py | 254 | 31.224409 | 80 | 0.608976 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,555 | test_caless.py | freeipa_freeipa/ipatests/test_integration/test_caless.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 66,148 | Python | .py | 1,331 | 37.543952 | 79 | 0.601353 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,556 | test_smb.py | freeipa_freeipa/ipatests/test_integration/test_smb.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""This module provides tests for SMB-related features like
configuring Samba file server and mounting SMB file system
"""
from __future__ import absolute_import
from functools import partial
import textwrap
import re
import os
import pytest
... | 20,436 | Python | .py | 427 | 36.348946 | 79 | 0.586558 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,557 | test_topology.py | freeipa_freeipa/ipatests/test_integration/test_topology.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import re
import pytest
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
from ipatests.pytest_ipa.integration.env_config import get_global_config
from ipalib.constants import DOMAIN_SUF... | 12,745 | Python | .py | 237 | 41.122363 | 121 | 0.594008 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,558 | test_hsm.py | freeipa_freeipa/ipatests/test_integration/test_hsm.py | #
# Copyright (C) 2023 FreeIPA Contributors see COPYING for license
#
import os.path
import pytest
import random
import re
import string
import time
from ipalib.constants import KRA_TRACKING_REQS
from ipapython.ipaldap import realm_to_serverid
from ipatests.test_integration.base import IntegrationTest
from ipatests.t... | 45,816 | Python | .py | 1,103 | 31.519492 | 79 | 0.595825 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,559 | test_ipa_idrange_fix.py | freeipa_freeipa/ipatests/test_integration/test_ipa_idrange_fix.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for ipa-idrange-fix CLI.
"""
import logging
import re
from ipatests.pytest_ipa.integration import tasks
from ipatests.test_integration.base import IntegrationTest
logger = logging.getLogger(__name__)
class TestIpaIdr... | 6,407 | Python | .py | 157 | 30.796178 | 79 | 0.57506 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,560 | test_netgroup.py | freeipa_freeipa/ipatests/test_integration/test_netgroup.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
import pytest
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration.tasks import clear_sssd_cache
test_data = []
for i in range(3):
data = {
'user': {
'login': 'testuser_{}'.forma... | 6,553 | Python | .py | 134 | 33.410448 | 79 | 0.523653 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,561 | example_cli.py | freeipa_freeipa/ipatests/test_integration/example_cli.py | import os
import ipalib
from ipaplatform.paths import paths
# authenticate with host keytab and custom ccache
os.environ.update(
KRB5_CLIENT_KTNAME=paths.KRB5_KEYTAB,
)
# custom options
overrides = {"context": "example_cli"}
ipalib.api.bootstrap(**overrides)
with ipalib.api as api:
user = api.Command.user_s... | 397 | Python | .py | 14 | 26.142857 | 49 | 0.785714 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,562 | test_resolvers_manager.py | freeipa_freeipa/ipatests/test_integration/test_resolvers_manager.py | import pytest
import re
from contextlib import contextmanager
from ipatests.pytest_ipa.integration import tasks
from ipatests.test_integration.base import IntegrationTest
class TestResolverManager(IntegrationTest):
topology = 'line'
num_clients = 1
invalid_resolver = '2.3.4.5'
@classmethod
def i... | 5,139 | Python | .py | 113 | 35.19469 | 77 | 0.632126 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,563 | test_pwpolicy.py | freeipa_freeipa/ipatests/test_integration/test_pwpolicy.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Misc test for 'ipa' CLI regressions
"""
from __future__ import absolute_import
import pytest
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
USER = 'tuser'
PASSWORD = 'Secret123'
PO... | 17,118 | Python | .py | 373 | 32.761394 | 79 | 0.554217 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,564 | test_random_serial_numbers.py | freeipa_freeipa/ipatests/test_integration/test_random_serial_numbers.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
import pytest
from ipaplatform.paths import paths
from ipatests.pytest_ipa.integration import tasks
from ipatests.test_integration.test_installation import (
TestInstallWithCA_DNS1,
TestInstallWithCA_KRA1,
)
from ipatests.test_integration... | 3,811 | Python | .py | 93 | 34.387097 | 78 | 0.7 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,565 | test_ntp_options.py | freeipa_freeipa/ipatests/test_integration/test_ntp_options.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
import pytest
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
from ipaplatform.paths import paths
class TestNTPoptions(IntegrationTest):
"""
Test NTP Options:
--no-ntp / -N... | 16,595 | Python | .py | 340 | 34.902941 | 80 | 0.576645 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,566 | test_cert.py | freeipa_freeipa/ipatests/test_integration/test_cert.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests which testing ability of various certificate
related scenarios.
"""
import os
import ipaddress
import pytest
import random
import re
import string
import time
import textwrap
from ipaplatform.paths import paths
from ipap... | 23,323 | Python | .py | 539 | 32.107607 | 79 | 0.579219 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,567 | test_installation.py | freeipa_freeipa/ipatests/test_integration/test_installation.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests which testing ability of various subsystems to be
installed.
"""
from __future__ import absolute_import
import os
import re
import textwrap
import time
from datetime import datetime, timedelta
import pytest
from cryptog... | 83,696 | Python | .py | 1,812 | 35.520971 | 79 | 0.609609 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,568 | test_subids.py | freeipa_freeipa/ipatests/test_integration/test_subids.py | #
# Copyright (C) 2021 FreeIPA Contributors see COPYING for license
#
"""Tests for subordinate ids
"""
import os
from ipalib.constants import (
SUBID_COUNT, SUBID_RANGE_START, SUBID_RANGE_MAX, SUBID_DNA_THRESHOLD
)
from ipaplatform.paths import paths
from ipapython.dn import DN
from ipatests.pytest_ipa.integrati... | 11,046 | Python | .py | 264 | 31.526515 | 78 | 0.589682 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,569 | test_commands.py | freeipa_freeipa/ipatests/test_integration/test_commands.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""Misc test for 'ipa' CLI regressions
"""
from __future__ import absolute_import
import base64
import re
import os
import logging
import random
import shlex
import ssl
from itertools import chain, repeat
import sys
import textwrap
import time
impo... | 71,293 | Python | .py | 1,592 | 33.672111 | 94 | 0.598765 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,570 | test_user_permissions.py | freeipa_freeipa/ipatests/test_integration/test_user_permissions.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import pytest
from ipaplatform.osinfo import osinfo
from ipaplatform.paths import paths
from ipaplatform.tasks import tasks as platformtasks
from ipatests.test_integration.base import IntegrationTest
from ip... | 13,032 | Python | .py | 270 | 34.840741 | 80 | 0.562102 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,571 | test_ca_custom_sdn.py | freeipa_freeipa/ipatests/test_integration/test_ca_custom_sdn.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
import time
from ipapython.dn import DN
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
class TestCACustomSubjectDN(IntegrationTest):
"""
Test that everything works properly w... | 1,755 | Python | .py | 49 | 28.612245 | 76 | 0.635664 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,572 | test_fips.py | freeipa_freeipa/ipatests/test_integration/test_fips.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""Smoke tests for FreeIPA installation in (fake) userspace FIPS mode
"""
import pytest
from ipaplatform.osinfo import osinfo
from ipapython.dn import DN
from ipapython.ipautil import ipa_generate_password, realm_to_suffix
from ipatests.pytest_ipa... | 4,197 | Python | .py | 121 | 24.561983 | 78 | 0.56373 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,573 | test_krbtpolicy.py | freeipa_freeipa/ipatests/test_integration/test_krbtpolicy.py | #
# Copyright (C) 2019,2020 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for Kerberos ticket policy options
"""
from __future__ import absolute_import
import pytest
import time
from datetime import datetime
from ipalib.constants import IPAAPI_USER
from ipaplatform.paths import paths
fr... | 12,444 | Python | .py | 261 | 36.885057 | 79 | 0.591689 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,574 | test_idviews.py | freeipa_freeipa/ipatests/test_integration/test_idviews.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import os
import re
import string
from SSSDConfig import ServiceAlreadyExists
from ipatests.pytest_ipa.integration import tasks
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_... | 14,968 | Python | .py | 329 | 34.191489 | 79 | 0.574004 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,575 | test_legacy_clients.py | freeipa_freeipa/ipatests/test_integration/test_legacy_clients.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 21,026 | Python | .py | 434 | 36.490783 | 80 | 0.601047 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,576 | test_idp.py | freeipa_freeipa/ipatests/test_integration/test_idp.py | from __future__ import absolute_import
import time
import pytest
import re
import textwrap
from ipaplatform.paths import paths
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks, create_keycloak
user_code_script = textwrap.dedent("""
from selenium import webd... | 13,706 | Python | .py | 293 | 35.334471 | 79 | 0.582194 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,577 | test_http_kdc_proxy.py | freeipa_freeipa/ipatests/test_integration/test_http_kdc_proxy.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import re
from contextlib import contextmanager
import pytest
from ipatests.pytest_ipa.integration import tasks
from ipatests.pytest_ipa.integration.firewall import Firewall
from ipatests.test_integration.b... | 10,331 | Python | .py | 223 | 35.591928 | 79 | 0.59025 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,578 | test_crlgen_manage.py | freeipa_freeipa/ipatests/test_integration/test_crlgen_manage.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for the ipa-crlgen-manage command.
"""
from __future__ import absolute_import
import os
from cryptography.hazmat.backends import default_backend
from cryptography import x509
from ipaplatform.paths import paths
from ipa... | 12,950 | Python | .py | 276 | 37.807971 | 78 | 0.65205 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,579 | test_dns_locations.py | freeipa_freeipa/ipatests/test_integration/test_dns_locations.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
import logging
import re
import time
import pytest
import dns.resolver
import dns.rrset
import dns.rdatatype
import dns.rdataclass
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
from ipa... | 21,923 | Python | .py | 481 | 34.948025 | 79 | 0.595699 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,580 | __init__.py | freeipa_freeipa/ipatests/test_integration/__init__.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 870 | Python | .py | 21 | 40.333333 | 71 | 0.781582 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,581 | test_ipa_cert_fix.py | freeipa_freeipa/ipatests/test_integration/test_ipa_cert_fix.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for ipa-cert-fix CLI.
"""
from datetime import datetime, date
import pytest
import time
import logging
from ipalib import x509
from ipaplatform.paths import paths
from ipapython.ipaldap import realm_to_serverid
from ipate... | 20,207 | Python | .py | 444 | 35.292793 | 79 | 0.608775 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,582 | test_backup_and_restore.py | freeipa_freeipa/ipatests/test_integration/test_backup_and_restore.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 45,316 | Python | .py | 954 | 36.399371 | 79 | 0.61054 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,583 | test_sso.py | freeipa_freeipa/ipatests/test_integration/test_sso.py | from __future__ import absolute_import
import pytest
import textwrap
from ipaplatform.osinfo import osinfo
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks, create_keycloak
from ipatests.pytest_ipa.integration import create_bridge
user_code_script = textwra... | 5,817 | Python | .py | 123 | 37.96748 | 79 | 0.646634 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,584 | base.py | freeipa_freeipa/ipatests/test_integration/base.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 3,671 | Python | .py | 101 | 27.772277 | 78 | 0.625527 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,585 | test_vault.py | freeipa_freeipa/ipatests/test_integration/test_vault.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import time
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
WAIT_AFTER_ARCHIVE = 45 # give some time to replication
class TestInstallKRA(IntegrationTest):
"""
Test if vault f... | 6,717 | Python | .py | 171 | 28.426901 | 80 | 0.55914 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,586 | test_dnssec.py | freeipa_freeipa/ipatests/test_integration/test_dnssec.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import base64
import logging
import re
import subprocess
import time
import textwrap
import dns.dnssec
import dns.name
import pytest
import yaml
from ipatests.test_integration.base import IntegrationTest
fr... | 27,737 | Python | .py | 656 | 31.977134 | 80 | 0.597352 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,587 | test_replica_promotion.py | freeipa_freeipa/ipatests/test_integration/test_replica_promotion.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import os
import time
import re
import textwrap
import pytest
from ipatests.test_integration.base import IntegrationTest
from ipatests.test_integration.test_ipahealthcheck import (
run_healthcheck, set_... | 53,660 | Python | .py | 1,172 | 33.783276 | 81 | 0.578881 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,588 | test_advise.py | freeipa_freeipa/ipatests/test_integration/test_advise.py | # Authors:
# Gabe Alford <redhatrises@gmail.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 7,394 | Python | .py | 164 | 36.20122 | 78 | 0.607197 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,589 | test_ipahealthcheck.py | freeipa_freeipa/ipatests/test_integration/test_ipahealthcheck.py | # Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
Tests to verify that the ipa-healthcheck scenarios
"""
from __future__ import absolute_import
from configparser import RawConfigParser, NoOptionError
from datetime import datetime, timedelta, timezone
UTC = timezone.utc
import io
import json
im... | 112,489 | Python | .py | 2,802 | 29.160243 | 79 | 0.56689 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,590 | test_pki_config_override.py | freeipa_freeipa/ipatests/test_integration/test_pki_config_override.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""Test cases for PKI config overrides
"""
from __future__ import absolute_import
from cryptography.hazmat.primitives import hashes
from ipalib.x509 import load_pem_x509_certificate
from ipaplatform.paths import paths
from ipatests.test_integratio... | 1,235 | Python | .py | 35 | 30.2 | 71 | 0.709975 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,591 | test_otp.py | freeipa_freeipa/ipatests/test_integration/test_otp.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""OTP token tests
"""
import base64
import logging
import re
import tempfile
import textwrap
import time
from urllib.parse import parse_qs, urlparse
import pytest
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.pr... | 33,007 | Python | .py | 708 | 35.444915 | 79 | 0.588966 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,592 | test_cockpit.py | freeipa_freeipa/ipatests/test_integration/test_cockpit.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import time
from ipatests.pytest_ipa.integration import tasks
from ipatests.test_integration.base import IntegrationTest
from ipaplatform.paths import paths
class TestCockpitIntegration(IntegrationTest):
... | 2,324 | Python | .py | 48 | 36.729167 | 78 | 0.581087 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,593 | test_simple_replication.py | freeipa_freeipa/ipatests/test_integration/test_simple_replication.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 5,583 | Python | .py | 124 | 37.895161 | 79 | 0.665624 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,594 | test_acme.py | freeipa_freeipa/ipatests/test_integration/test_acme.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
import time
import pytest
from ipalib.constants import IPA_CA_RECORD
from ipalib import x509
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration.firewall import Firewall
from ipatests.pytest_ipa.integra... | 36,819 | Python | .py | 844 | 33.943128 | 81 | 0.610153 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,595 | test_replication_layouts.py | freeipa_freeipa/ipatests/test_integration/test_replication_layouts.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
import time
import pytest
from ipalib.constants import DOMAIN_LEVEL_0
from ipatests.pytest_ipa.integration.env_config import get_global_config
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import ta... | 5,661 | Python | .py | 119 | 38.352941 | 79 | 0.671228 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,596 | test_sudo.py | freeipa_freeipa/ipatests/test_integration/test_sudo.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 34,613 | Python | .py | 625 | 39.8384 | 80 | 0.563382 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,597 | test_ipa_ipa_migration.py | freeipa_freeipa/ipatests/test_integration/test_ipa_ipa_migration.py | # Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
Tests to verify ipa-migrate tool.
"""
from __future__ import absolute_import
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
from ipaplatform.paths import paths
from collections import... | 29,915 | Python | .py | 886 | 24.022573 | 80 | 0.553354 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,598 | test_testconfig.py | freeipa_freeipa/ipatests/test_integration/test_testconfig.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 20,536 | Python | .py | 493 | 29.977688 | 81 | 0.559758 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,599 | test_idm_api.py | freeipa_freeipa/ipatests/test_integration/test_idm_api.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
from ipatests.test_integration.base import IntegrationTest
import textwrap
API_INIT = """
from ipalib import api, errors
api.bootstrap_with_global_options(context="server")
api.finalize()
api.... | 16,937 | Python | .py | 506 | 25.468379 | 75 | 0.603782 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |