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,300 | create_external_ca.py | freeipa_freeipa/ipatests/create_external_ca.py | #
# Copyright (C) 2017 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.... | 7,061 | Python | .py | 179 | 30.513966 | 76 | 0.625548 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,301 | i18n.py | freeipa_freeipa/ipatests/i18n.py | # Authors:
# John Dennis <jdennis@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 ver... | 32,885 | Python | .py | 706 | 37.365439 | 138 | 0.596859 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,302 | __init__.py | freeipa_freeipa/ipatests/__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... | 822 | Python | .py | 21 | 38.095238 | 71 | 0.77125 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,303 | test_util.py | freeipa_freeipa/ipatests/test_util.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,420 | Python | .py | 326 | 25.279141 | 79 | 0.586768 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,304 | data.py | freeipa_freeipa/ipatests/data.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... | 1,403 | Python | .py | 32 | 42.65625 | 73 | 0.756044 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,305 | test_kinit.py | freeipa_freeipa/ipatests/test_ipalib_install/test_kinit.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""Tests for ipalib.install.kinit module
"""
import pytest
from ipalib.install.kinit import validate_principal
# None means no exception is expected
@pytest.mark.parametrize('principal, exception', [
('testuser', None),
('testuser@EXAMPL... | 976 | Python | .py | 28 | 30.571429 | 66 | 0.698093 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,306 | __init__.py | freeipa_freeipa/ipatests/test_ipatests_plugins/__init__.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""
Sub-package containing unit tests for IPA internal test plugins
"""
| 144 | Python | .py | 6 | 22.833333 | 66 | 0.781022 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,307 | test_ipa_run_tests.py | freeipa_freeipa/ipatests/test_ipatests_plugins/test_ipa_run_tests.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
import os
import pytest
MOD_NAME = "test_module_{}"
FUNC_NAME = "test_func_{}"
MODS_NUM = 5
@pytest.fixture
def ipatestdir(testdir, monkeypatch):
"""
Create MODS_NUM test modules within testdir/ipatests.
Each module contains 1 test ... | 5,630 | Python | .py | 150 | 31.393333 | 78 | 0.640264 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,308 | test_slicing.py | freeipa_freeipa/ipatests/test_ipatests_plugins/test_slicing.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
import glob
import pytest
MOD_NAME = "test_module_{}"
FUNC_NAME = "test_func_{}"
PYTEST_INTERNAL_ERROR = 3
MODS_NUM = 5
@pytest.fixture
def ipatestdir(testdir):
"""
Create MODS_NUM test modules within testdir.
Each module contains 1... | 4,247 | Python | .py | 114 | 29.754386 | 76 | 0.583981 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,309 | test_depr_frameworks.py | freeipa_freeipa/ipatests/test_ipatests_plugins/test_depr_frameworks.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
import pytest
@pytest.fixture
def ipa_testdir(testdir):
"""
Create conftest within testdir.
"""
testdir.makeconftest(
"""
pytest_plugins = ["ipatests.pytest_ipa.deprecated_frameworks"]
"""
)
return ... | 2,315 | Python | .py | 87 | 17.793103 | 80 | 0.560921 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,310 | slicing.py | freeipa_freeipa/ipatests/pytest_ipa/slicing.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""
The main purpose of this plugin is to slice a test suite into
several pieces to run each within its own test environment(for example,
an Agent of Azure Pipelines).
Tests within a slice are grouped by test modules because not all of the tests
w... | 6,400 | Python | .py | 166 | 31.638554 | 79 | 0.639677 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,311 | beakerlib.py | freeipa_freeipa/ipatests/pytest_ipa/beakerlib.py | # 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 version 3 of the License, or
# (at your option) any l... | 1,909 | Python | .py | 44 | 38.409091 | 76 | 0.717907 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,312 | additional_config.py | freeipa_freeipa/ipatests/pytest_ipa/additional_config.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
def pytest_addoption(parser):
parser.addoption("--no-pretty-print", action="store_false",
dest="pretty_print", help="Don't pretty-print structures")
| 247 | Python | .py | 6 | 35.666667 | 79 | 0.690377 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,313 | nose_compat.py | freeipa_freeipa/ipatests/pytest_ipa/nose_compat.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 ... | 2,777 | Python | .py | 58 | 40.137931 | 81 | 0.674178 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,314 | deprecated_frameworks.py | freeipa_freeipa/ipatests/pytest_ipa/deprecated_frameworks.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""Warns about xunit/unittest/nose tests.
FreeIPA is a rather old project and hereby includes all the most
famous in the past and present Python test idioms. Of course,
this is difficult to play around all of them. For now, the runner
of the IPA's... | 2,210 | Python | .py | 51 | 36.960784 | 71 | 0.701632 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,315 | declarative.py | freeipa_freeipa/ipatests/pytest_ipa/declarative.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 ... | 1,741 | Python | .py | 43 | 31.418605 | 71 | 0.60177 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,316 | expect.py | freeipa_freeipa/ipatests/pytest_ipa/integration/expect.py | import time
import logging
import pexpect
from pexpect.exceptions import ExceptionPexpect, TIMEOUT
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
class IpaTestExpect(pexpect.spawn):
"""A wrapper class around pexpect.spawn for easier usage in automated tests
Please see pexpect document... | 5,561 | Python | .py | 132 | 32.583333 | 79 | 0.615982 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,317 | config.py | freeipa_freeipa/ipatests/pytest_ipa/integration/config.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
# 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
# t... | 6,689 | Python | .py | 169 | 32.16568 | 80 | 0.639729 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,318 | env_config.py | freeipa_freeipa/ipatests/pytest_ipa/integration/env_config.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
# 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
# t... | 13,361 | Python | .py | 288 | 37.909722 | 77 | 0.631429 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,319 | transport.py | freeipa_freeipa/ipatests/pytest_ipa/integration/transport.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Enhanced SSH transport for pytest multihost
Provides SSH password login for OpenSSH transport
"""
import os
from .expect import IpaTestExpect
from pytest_multihost.transport import OpenSSHTransport
class IPAOpenSSHTransport(OpenSSHTransport)... | 2,036 | Python | .py | 49 | 32.183673 | 79 | 0.611027 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,320 | tasks.py | freeipa_freeipa/ipatests/pytest_ipa/integration/tasks.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 ... | 101,756 | Python | .py | 2,478 | 32.20339 | 79 | 0.610659 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,321 | host.py | freeipa_freeipa/ipatests/pytest_ipa/integration/host.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 ... | 7,967 | Python | .py | 187 | 33.374332 | 79 | 0.637573 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,322 | __init__.py | freeipa_freeipa/ipatests/pytest_ipa/integration/__init__.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2011 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 ... | 17,526 | Python | .py | 445 | 31.707865 | 80 | 0.64736 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,323 | firewall.py | freeipa_freeipa/ipatests/pytest_ipa/integration/firewall.py | #
# Copyright (C) 2018 FreeIPA Contributors. See COPYING for license
#
"""Firewall class for integration testing using firewalld"""
import abc
from ipapython import ipautil
class FirewallBase(abc.ABC):
def __init__(self, host):
"""Initialize with host where firewall changes should be applied"""
... | 10,164 | Python | .py | 226 | 35.876106 | 78 | 0.639324 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,324 | create_bridge.py | freeipa_freeipa/ipatests/pytest_ipa/integration/create_bridge.py | import re
import textwrap
from ipatests.pytest_ipa.integration import tasks
def setup_scim_server(host, version="main"):
dir = "/opt/ipa-tuura"
password = host.config.admin_password
tasks.install_packages(host, ["unzip", "java-11-openjdk-headless",
"openssl", "maven", "w... | 6,912 | Python | .py | 150 | 37.3 | 78 | 0.607371 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,325 | fips.py | freeipa_freeipa/ipatests/pytest_ipa/integration/fips.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""FIPS testing helpers
Based on userspace FIPS mode by Ondrej Moris.
Userspace FIPS mode fakes a Kernel in FIPS enforcing mode. User space
programs behave like the Kernel was booted in FIPS enforcing mode. Kernel
space code still runs in standard... | 2,503 | Python | .py | 64 | 34.421875 | 74 | 0.676967 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,326 | resolver.py | freeipa_freeipa/ipatests/pytest_ipa/integration/resolver.py | import os
import abc
import logging
import re
import textwrap
import time
from ipaplatform.paths import paths
logger = logging.getLogger(__name__)
class Resolver(abc.ABC):
def __init__(self, host):
self.host = host
self.backups = []
self.current_state = self._get_state()
logger.... | 12,747 | Python | .py | 296 | 33.266892 | 80 | 0.612312 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,327 | create_caless_pki.py | freeipa_freeipa/ipatests/pytest_ipa/integration/create_caless_pki.py | # Copyright (c) 2015-2017, Jan Cholasta <jcholast@redhat.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND... | 19,791 | Python | .py | 508 | 27.84252 | 79 | 0.581065 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,328 | create_keycloak.py | freeipa_freeipa/ipatests/pytest_ipa/integration/create_keycloak.py | import os
import textwrap
import time
from ipaplatform.paths import paths
from ipatests.pytest_ipa.integration import tasks
def setup_keycloakserver(host, version='17.0.0'):
dir = "/opt/keycloak"
password = host.config.admin_password
tasks.install_packages(host, ["unzip", "java-11-openjdk-headless",
... | 7,143 | Python | .py | 157 | 36.675159 | 117 | 0.596411 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,329 | test_i18n_messages.py | freeipa_freeipa/ipatests/test_ipaserver/test_i18n_messages.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
import json
import os
import pytest
from ipalib import api
from ipatests.test_xmlrpc.xmlrpc_test import XMLRPC_test
from ipatests.test_ipaserver.httptest import Unauthorized_HTTP_test
from ipatests.util import (assert_equal, assert_deepequal, rai... | 3,833 | Python | .py | 98 | 31 | 77 | 0.635335 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,330 | test_rpcserver.py | freeipa_freeipa/ipatests/test_ipaserver/test_rpcserver.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... | 8,412 | Python | .py | 210 | 32.985714 | 78 | 0.611807 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,331 | test_referer.py | freeipa_freeipa/ipatests/test_ipaserver/test_referer.py | # Copyright (C) 2023 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 version 3 of the License, or
# (at your option) any l... | 5,175 | Python | .py | 118 | 35.152542 | 80 | 0.634253 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,332 | test_topology_plugin.py | freeipa_freeipa/ipatests/test_ipaserver/test_topology_plugin.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import io
import os
from ipaserver.plugins.ldap2 import ldap2
from ipalib import api
from ipapython.dn import DN
import pytest
REPL_PLUGIN_NAME_TEMPLATE = 'Multi%s Replication Plugin'
@pytest.mark.tier1
class TestTopologyPlugin:
"""
Test... | 3,479 | Python | .py | 77 | 35.038961 | 87 | 0.609375 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,333 | test_secure_ajp_connector.py | freeipa_freeipa/ipatests/test_ipaserver/test_secure_ajp_connector.py | # Copyright (C) 2021 FreeIPA Project Contributors - see LICENSE file
from collections import namedtuple
from io import BytesIO
from lxml.etree import parse as myparse
import pytest
import textwrap
from unittest.mock import mock_open, patch
from ipaplatform.constants import constants
from ipaserver.install import dog... | 7,879 | Python | .py | 216 | 26.324074 | 79 | 0.549176 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,334 | test_login_password.py | freeipa_freeipa/ipatests/test_ipaserver/test_login_password.py | # Copyright (C) 2023 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 version 3 of the License, or
# (at your option) any l... | 3,123 | Python | .py | 72 | 35.5 | 80 | 0.640857 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,335 | test_kadmin.py | freeipa_freeipa/ipatests/test_ipaserver/test_kadmin.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Test suite for creating principals via kadmin.local and modifying their keys
"""
import os
import pytest
import tempfile
from ipalib import api
from ipaserver.install import installutils
@pytest.fixture
def keytab():
fd, keytab_path = t... | 3,274 | Python | .py | 106 | 23.009434 | 78 | 0.625835 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,336 | test_otptoken_import.py | freeipa_freeipa/ipatests/test_ipaserver/test_otptoken_import.py | # Authors:
# Nathaniel McCallum <npmccallum@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, ... | 5,848 | Python | .py | 136 | 33.25 | 79 | 0.612847 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,337 | test_migratepw.py | freeipa_freeipa/ipatests/test_ipaserver/test_migratepw.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
import pytest
from ipatests.test_ipaserver.httptest import Unauthorized_HTTP_test
from ipatests.test_xmlrpc.xmlrpc_test import XMLRPC_test
from ipatests.util import assert_equal
from ipalib import api, errors
testuser = u'tuser'
password = u'pass... | 2,956 | Python | .py | 76 | 28.197368 | 76 | 0.559358 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,338 | __init__.py | freeipa_freeipa/ipatests/test_ipaserver/__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... | 911 | Python | .py | 23 | 38.478261 | 71 | 0.778531 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,339 | test_version_comparison.py | freeipa_freeipa/ipatests/test_ipaserver/test_version_comparison.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
tests for correct RPM version comparison
"""
from __future__ import absolute_import
from ipaplatform.tasks import tasks
import pytest
version_strings = [
("3.0.0-1.el6", "3.0.0-2.el6", "older"),
("3.0.0-1.el6_8", "3.0.0-1.el6_8.1", "... | 1,740 | Python | .py | 43 | 32.372093 | 79 | 0.569395 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,340 | test_dnssec.py | freeipa_freeipa/ipatests/test_ipaserver/test_dnssec.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Test the `ipaserver/dnssec` package.
"""
import dns.name
from ipaserver.dnssec.odsmgr import ODSZoneListReader
ZONELIST_XML = """<?xml version="1.0" encoding="UTF-8"?>
<ZoneList>
<Zone name="ipa.example">
<Policy>default</Policy>
<A... | 985 | Python | .py | 34 | 24.941176 | 76 | 0.669492 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,341 | httptest.py | freeipa_freeipa/ipatests/test_ipaserver/httptest.py | # Authors:
# Martin Kosek <mkosek@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 ver... | 1,997 | Python | .py | 52 | 32.75 | 72 | 0.673206 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,342 | test_changepw.py | freeipa_freeipa/ipatests/test_ipaserver/test_changepw.py | # Authors:
# Martin Kosek <mkosek@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 ver... | 4,443 | Python | .py | 97 | 36.257732 | 85 | 0.625723 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,343 | test_ipap11helper.py | freeipa_freeipa/ipatests/test_ipaserver/test_ipap11helper.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Test the `ipapython/ipap11helper/p11helper.c` module.
"""
from __future__ import absolute_import
from binascii import hexlify
import os
import os.path
import logging
import subprocess
import tempfile
import pytest
fro... | 12,803 | Python | .py | 239 | 37.878661 | 80 | 0.557563 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,344 | test_jsplugins.py | freeipa_freeipa/ipatests/test_ipaserver/test_jsplugins.py | # Copyright (C) 2020 FreeIPA Contributors see COPYING for license
import os
import pytest
from ipalib import facts
from ipatests.test_ipaserver.httptest import Unauthorized_HTTP_test
from ipatests.util import assert_equal, assert_not_equal
from ipaplatform.paths import paths
@pytest.mark.tier1
@pytest.mark.skipif(... | 2,615 | Python | .py | 62 | 32.032258 | 70 | 0.59166 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,345 | test_secrets.py | freeipa_freeipa/ipatests/test_ipaserver/test_secrets.py | # Copyright (C) 2015 FreeIPA Project Contributors - see LICENSE file
from __future__ import print_function
from ipaserver.secrets.store import iSecStore, NAME_DB_MAP, NSSCertDB
import os
import shutil
import subprocess
import tempfile
import pytest
def _test_password_callback():
with open('test-ipa-sec-store/p... | 2,061 | Python | .py | 58 | 27.068966 | 69 | 0.571787 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,346 | test_adtrust_mockup.py | freeipa_freeipa/ipatests/test_ipaserver/test_adtrust_mockup.py | # Copyright (C) 2018 FreeIPA Project Contributors - see LICENSE file
from __future__ import print_function
import ipaserver.install.adtrust as adtr
from ipaserver.install.adtrust import set_and_check_netbios_name
from collections import namedtuple
from unittest import mock
from io import StringIO
import pytest
cla... | 2,147 | Python | .py | 50 | 34.42 | 76 | 0.649904 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,347 | test_ldap.py | freeipa_freeipa/ipatests/test_ipaserver/test_ldap.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... | 11,593 | Python | .py | 312 | 28.939103 | 97 | 0.585931 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,348 | test_serverroles.py | freeipa_freeipa/ipatests/test_ipaserver/test_serverroles.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Tests for the serverroles backend
"""
from __future__ import absolute_import
from collections import namedtuple
import ldap
import pytest
from ipaplatform.paths import paths
from ipalib import api, create_api, errors
from ipapython.dn import... | 23,457 | Python | .py | 602 | 27.58804 | 79 | 0.552836 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,349 | test_installer.py | freeipa_freeipa/ipatests/test_ipaserver/test_install/test_installer.py | #
# Copyright (C) 2018 FreeIPA Contributors. See COPYING for license
#
from __future__ import absolute_import
from abc import ABCMeta, abstractmethod
from collections import namedtuple
import itertools
import pytest
from ipatests.util import assert_equal
from ipaserver.install.ipa_replica_install import ReplicaIns... | 5,545 | Python | .py | 121 | 35.917355 | 77 | 0.633803 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,350 | test_adtrustinstance.py | freeipa_freeipa/ipatests/test_ipaserver/test_install/test_adtrustinstance.py | # Authors:
# Sumit Bose <sbose@redhat.com>
#
# Copyright (C) 2011 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 versio... | 2,343 | Python | .py | 56 | 37 | 74 | 0.711842 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,351 | test_installutils.py | freeipa_freeipa/ipatests/test_ipaserver/test_install/test_installutils.py | #
# Copyright (C) 2017 FreeIPA Contributors. See COPYING for license
#
from __future__ import absolute_import
import binascii
import os
import psutil
import re
import subprocess
import textwrap
import pytest
from unittest.mock import patch, mock_open
from ipaplatform.paths import paths
from ipapython import ipaut... | 10,689 | Python | .py | 265 | 35.50566 | 80 | 0.702144 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,352 | test_service.py | freeipa_freeipa/ipatests/test_ipaserver/test_install/test_service.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 ... | 1,427 | Python | .py | 34 | 39.794118 | 71 | 0.74874 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,353 | generate-matrix.py | freeipa_freeipa/ipatests/azure/scripts/generate-matrix.py | import argparse
import copy
import pprint
import json
import yaml
parser = argparse.ArgumentParser(description='Generate Azure jobs matrix.')
parser.add_argument('azure_template', help='path to Azure template')
parser.add_argument('max_azure_env_jobs', type=int,
help='maximum number of Docker env... | 2,797 | Python | .py | 61 | 34.081967 | 79 | 0.550826 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,354 | gating_compare.py | freeipa_freeipa/ipatests/azure/scripts/gating_compare.py | import yaml
PRCI_GATING = "ipatests/prci_definitions/gating.yaml"
AZURE_GATING = "ipatests/azure/azure_definitions/gating.yml"
prci_tests = []
azure_tests = []
SKIP_IN_AZURE_LIST = [
"test_integration/test_authselect.py", # requires external DNS
]
EXTRA_AZURE_LIST = []
with open(PRCI_GATING) as f:
prci_ga... | 1,259 | Python | .py | 36 | 29.805556 | 74 | 0.657049 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,355 | setup_containers.py | freeipa_freeipa/ipatests/azure/scripts/setup_containers.py | from __future__ import annotations
from datetime import datetime
import logging
import os
import subprocess
import time
import docker
from jinja2 import Template
from typing import NamedTuple, TYPE_CHECKING
if TYPE_CHECKING:
from typing import List, Tuple, Union, Dict
logging.basicConfig(level=logging.INFO, fo... | 13,501 | Python | .py | 375 | 26.432 | 79 | 0.570805 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,356 | test_authenticators.py | freeipa_freeipa/ipatests/test_custodia/test_authenticators.py | # Copyright (C) 2016 Custodia Project Contributors - see LICENSE file
import configparser
import grp
import pwd
from ipaserver.custodia.httpd import authenticators
CONFIG = u"""
[auth:cred_default]
[auth:cred_int]
uid = 0
gid = 0
[auth:cred_root]
uid = root
gid = root
[auth:cred_user]
uid = root
[auth:cred_group... | 5,333 | Python | .py | 134 | 32.328358 | 77 | 0.640852 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,357 | test_plugins.py | freeipa_freeipa/ipatests/test_custodia/test_plugins.py | # Copyright (C) 2016 Custodia Project Contributors - see LICENSE file
import pkg_resources
import pytest
from ipaserver.custodia.plugin import (
CSStore, HTTPAuthenticator, HTTPAuthorizer
)
class TestCustodiaPlugins:
project_name = 'ipaserver.custodia'
def get_entry_points(self, group):
eps = [... | 1,472 | Python | .py | 36 | 31.777778 | 70 | 0.626751 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,358 | test_server.py | freeipa_freeipa/ipatests/test_custodia/test_server.py | # Copyright (C) 2017 Custodia Project Contributors - see LICENSE file
import os
import socket
import pytest
from ipaserver.custodia.server.args import parse_args
from ipaserver.custodia.server.config import parse_config
HERE = os.path.dirname(os.path.abspath(__file__))
EMPTY_CONF = os.path.join(HERE, 'empty.conf')
... | 2,742 | Python | .py | 78 | 28.269231 | 77 | 0.608696 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,359 | test_ipagetkeytab.py | freeipa_freeipa/ipatests/test_cmdline/test_ipagetkeytab.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... | 17,064 | Python | .py | 412 | 31.735437 | 89 | 0.611638 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,360 | test_cli.py | freeipa_freeipa/ipatests/test_cmdline/test_cli.py | import contextlib
import os
from io import StringIO
import shlex
import subprocess
import sys
import tempfile
import six
from ipatests import util
from ipatests.test_ipalib.test_x509 import goodcert_headers
from ipalib import api, errors
import pytest
if six.PY3:
unicode = str
TEST_ZONE = u'zoneadd.%(domain)s' ... | 14,916 | Python | .py | 362 | 29.759669 | 79 | 0.564171 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,361 | cmdline.py | freeipa_freeipa/ipatests/test_cmdline/cmdline.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... | 2,277 | Python | .py | 65 | 30.461538 | 71 | 0.710526 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,362 | test_schema.py | freeipa_freeipa/ipatests/test_cmdline/test_schema.py | #
# Copyright (C) 2021 FreeIPA Contributors see COPYING for license
#
import pytest
import time
from ipaclient.remote_plugins import ServerInfo
class TestServerInfo(ServerInfo):
"""Simplified ServerInfo class with hardcoded values"""
def __init__(self, fingerprint='deadbeef', hostname='ipa.example.test',
... | 2,551 | Python | .py | 61 | 33.786885 | 75 | 0.645892 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,363 | __init__.py | freeipa_freeipa/ipatests/test_cmdline/__init__.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import ipatests.util
ipatests.util.check_ipaclient_unittests()
| 136 | Python | .py | 5 | 25.8 | 66 | 0.821705 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,364 | test_help.py | freeipa_freeipa/ipatests/test_cmdline/test_help.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 vers... | 5,658 | Python | .py | 140 | 34.842857 | 79 | 0.678949 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,365 | test_console.py | freeipa_freeipa/ipatests/test_cmdline/test_console.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
import inspect
import io
import pydoc
import pytest
from ipalib import api
@pytest.fixture()
def api_obj():
if not api.Backend.rpcclient.isconnected():
api.Backend.rpcclient.connect()
yield api
@pytest.mark.tier0
@pytest.mark.n... | 1,236 | Python | .py | 35 | 29.714286 | 75 | 0.677852 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,366 | test_cookie.py | freeipa_freeipa/ipatests/test_ipapython/test_cookie.py | # Authors:
# John Dennis <jdennis@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 ver... | 18,858 | Python | .py | 433 | 34.856813 | 91 | 0.635838 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,367 | test_session_storage.py | freeipa_freeipa/ipatests/test_ipapython/test_session_storage.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""
Test the `session_storage.py` module.
"""
import pytest
from ipapython import session_storage
@pytest.mark.skip_ipaclient_unittest
@pytest.mark.needs_ipaapi
class test_session_storage:
"""
Test the session storage interface
"""
... | 1,111 | Python | .py | 33 | 27.818182 | 71 | 0.668224 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,368 | test_keyring.py | freeipa_freeipa/ipatests/test_ipapython/test_keyring.py | # Authors:
# Rob Crittenden <rcritten@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... | 4,697 | Python | .py | 141 | 26.021277 | 71 | 0.620667 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,369 | test_ipavalidate.py | freeipa_freeipa/ipatests/test_ipapython/test_ipavalidate.py | #
# Copyright (C) 2007 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 version 3 of the License, or
# (at your option) a... | 3,623 | Python | .py | 75 | 42.093333 | 72 | 0.710727 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,370 | test_ssh.py | freeipa_freeipa/ipatests/test_ipapython/test_ssh.py | # Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2011 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 v... | 3,349 | Python | .py | 79 | 38.708861 | 380 | 0.688459 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,371 | test_certdb.py | freeipa_freeipa/ipatests/test_ipapython/test_certdb.py | from __future__ import absolute_import
import os
import pytest
from ipapython.certdb import (
NSSDatabase,
TRUSTED_PEER_TRUST_FLAGS,
nss_supports_dbm,
)
from ipapython import ipautil
from ipaplatform.osinfo import osinfo
CERTNICK = 'testcert'
CERTSAN = 'testcert.certdb.test'
if osinfo.id == 'fedora':
... | 8,960 | Python | .py | 236 | 28.889831 | 74 | 0.597533 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,372 | test_dnsutil.py | freeipa_freeipa/ipatests/test_ipapython/test_dnsutil.py | #
# Copyright (C) 2018 FreeIPA Contributors. See COPYING for license
#
import dns.name
import dns.rdataclass
import dns.rdatatype
from dns.rdtypes.IN.SRV import SRV
from dns.rdtypes.ANY.URI import URI
from ipapython import dnsutil
import pytest
def mksrv(priority, weight, port, target):
return SRV(
rd... | 4,446 | Python | .py | 120 | 28.683333 | 73 | 0.5698 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,373 | __init__.py | freeipa_freeipa/ipatests/test_ipapython/__init__.py | # Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2011 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 v... | 840 | Python | .py | 21 | 38.952381 | 71 | 0.771394 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,374 | test_kerberos.py | freeipa_freeipa/ipatests/test_ipapython/test_kerberos.py | #
# Copyright (C) 2016 FreeIPA Project Contributors - see LICENSE file
#
import pytest
import six
from ipapython.kerberos import Principal
if six.PY3:
unicode = str
valid_principals = {
u'tuser@REALM.TEST': {
'components': (u'tuser',),
'realm': u'REALM.TEST',
'username': u'tuser'
... | 3,760 | Python | .py | 111 | 27.315315 | 78 | 0.605081 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,375 | test_ipautil.py | freeipa_freeipa/ipatests/test_ipapython/test_ipautil.py | # encoding: utf-8
# Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2011 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 F... | 20,865 | Python | .py | 527 | 32.00759 | 86 | 0.606922 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,376 | test_dn.py | freeipa_freeipa/ipatests/test_ipapython/test_dn.py |
import contextlib
import pytest
from cryptography import x509
import six
from ipapython.dn import DN, RDN, AVA, str2dn, dn2str, DECODING_ERROR
from ipapython import dn_ctypes
if six.PY3:
unicode = str
def cmp(a, b):
if a == b:
assert not a < b
assert not a > b
a... | 48,526 | Python | .py | 1,168 | 31.690925 | 119 | 0.573328 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,377 | test_ldap_cache.py | freeipa_freeipa/ipatests/test_ipapython/test_ldap_cache.py | #
# Copyright (C) 2021 FreeIPA Contributors see COPYING for license
#
"""
Test the LDAPCache class.
"""
# pylint: disable=no-member
from ipalib import api, errors
from ipapython import ipaldap
from ipapython.dn import DN
import pytest
def hits_and_misses(cache, hits, misses):
assert cache._cache_hits == hits
... | 4,148 | Python | .py | 116 | 28.301724 | 76 | 0.649513 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,378 | test_directivesetter.py | freeipa_freeipa/ipatests/test_ipapython/test_directivesetter.py | #
# Copyright (C) 2017 FreeIPA Contributors. See COPYING for license
#
from __future__ import absolute_import
import os
import tempfile
from ipapython import directivesetter
EXAMPLE_CONFIG = [
'foo=1\n',
'foobar=2\n',
]
WHITESPACE_CONFIG = [
'foo 1\n',
'foobar\t2\n',
]
SUBSTRING_CONFIG = [
'f... | 6,576 | Python | .py | 156 | 29.769231 | 78 | 0.526959 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,379 | test_trust.py | freeipa_freeipa/ipatests/test_webui/test_trust.py | # Authors:
# Petr Vobornik <pvoborni@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,505 | Python | .py | 192 | 30.395833 | 106 | 0.614093 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,380 | data_selfservice.py | freeipa_freeipa/ipatests/test_webui/data_selfservice.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
ENTITY = 'selfservice'
PKEY = 'itest-selfservice-rule'
DATA = {
'pkey': PKEY,
'add': [
('textbox', 'aciname', PKEY),
('checkbox', 'attrs', 'audio'),
('checkbox', 'attrs', 'businesscategory'),
],
'mod': [
... | 5,306 | Python | .py | 130 | 33.138462 | 66 | 0.554911 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,381 | test_user.py | freeipa_freeipa/ipatests/test_webui/test_user.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 42,211 | Python | .py | 961 | 34.046826 | 79 | 0.619608 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,382 | data_host.py | freeipa_freeipa/ipatests/test_webui/data_host.py |
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
BAD_IP_MSG = "Not a valid IP address"
BAD_HOSTNAME_MSG = "only letters, numbers, '-' are allowed"
BAS_HOSTNAME_SPACE_MSG = "Leading and trailing spaces are not allowed"
empty_hostname = {
'pkey': 'empty_hostname',
'add': [
('textbox... | 5,376 | Python | .py | 157 | 29.802548 | 70 | 0.687079 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,383 | data_dns.py | freeipa_freeipa/ipatests/test_webui/data_dns.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
ZONE_ENTITY = 'dnszone'
FORWARD_ZONE_ENTITY = 'dnsforwardzone'
RECORD_ENTITY = 'dnsrecord'
CONFIG_ENTITY = 'dnsconfig'
ZONE_DEFAULT_FACET = 'records'
ZONE_PKEY = 'foo.itest.'
ZONE_DATA = {
'pkey': ZONE_PKEY,
'add': [
('textbox', ... | 1,300 | Python | .py | 54 | 19.277778 | 66 | 0.556993 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,384 | data_hostgroup.py | freeipa_freeipa/ipatests/test_webui/data_hostgroup.py | # Authors:
# Petr Vobornik <pvoborni@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,009 | Python | .py | 107 | 24.17757 | 72 | 0.627119 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,385 | data_hbac.py | freeipa_freeipa/ipatests/test_webui/data_hbac.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 1,650 | Python | .py | 54 | 27.203704 | 71 | 0.670433 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,386 | test_host.py | freeipa_freeipa/ipatests/test_webui/test_host.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 28,012 | Python | .py | 662 | 31.851964 | 88 | 0.600698 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,387 | test_hostgroup.py | freeipa_freeipa/ipatests/test_webui/test_hostgroup.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 13,031 | Python | .py | 287 | 36.557491 | 92 | 0.655974 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,388 | data_netgroup.py | freeipa_freeipa/ipatests/test_webui/data_netgroup.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 2,580 | Python | .py | 94 | 22.989362 | 78 | 0.604923 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,389 | test_delegation.py | freeipa_freeipa/ipatests/test_webui/test_delegation.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 1,525 | Python | .py | 48 | 28.208333 | 71 | 0.689796 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,390 | data_user.py | freeipa_freeipa/ipatests/test_webui/data_user.py | # Authors:
# Petr Vobornik <pvoborni@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,462 | Python | .py | 283 | 34.448763 | 76 | 0.676223 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,391 | test_automember.py | freeipa_freeipa/ipatests/test_webui/test_automember.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 23,911 | Python | .py | 589 | 31.190153 | 105 | 0.610126 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,392 | data_sudo.py | freeipa_freeipa/ipatests/test_webui/data_sudo.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 2,241 | Python | .py | 76 | 25.618421 | 71 | 0.646132 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,393 | test_topology.py | freeipa_freeipa/ipatests/test_webui/test_topology.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
from ipatests.test_webui.ui_driver import screenshot, UI_driver
class TestTopology(UI_driver):
@screenshot
def test_topology_graph(self):
self.init_app()
self.navigate_to_page('topology-graph')
self.assert_visible... | 339 | Python | .py | 10 | 29.3 | 66 | 0.726154 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,394 | test_hbac.py | freeipa_freeipa/ipatests/test_webui/test_hbac.py | # Authors:
# Petr Vobornik <pvoborni@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,139 | Python | .py | 137 | 29.664234 | 82 | 0.623392 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,395 | test_netgroup.py | freeipa_freeipa/ipatests/test_webui/test_netgroup.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 13,371 | Python | .py | 321 | 32.542056 | 79 | 0.634251 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,396 | test_rbac.py | freeipa_freeipa/ipatests/test_webui/test_rbac.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 2,521 | Python | .py | 81 | 26 | 71 | 0.635802 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,397 | test_pwpolicy.py | freeipa_freeipa/ipatests/test_webui/test_pwpolicy.py | # Authors:
# Petr Vobornik <pvoborni@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,731 | Python | .py | 263 | 34.403042 | 79 | 0.633604 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,398 | test_misc_cases.py | freeipa_freeipa/ipatests/test_webui/test_misc_cases.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""
Place for various miscellaneous test cases that do not fit to other suites
"""
from ipatests.test_webui.ui_driver import UI_driver
from ipatests.test_webui.ui_driver import screenshot
import pytest
import re
try:
from selenium.webdriver.c... | 1,264 | Python | .py | 34 | 31.676471 | 77 | 0.701726 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,399 | test_cert.py | freeipa_freeipa/ipatests/test_webui/test_cert.py | # Authors:
# Petr Vobornik <pvoborni@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 ... | 17,878 | Python | .py | 428 | 32.915888 | 79 | 0.615775 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |