k5test


Namek5test JSON
Version 0.10.4 PyPI version JSON
download
home_pagehttps://github.com/pythongssapi/k5test
SummaryA library for testing Python applications in self-contained Kerberos 5 environments
upload_time2024-03-20 02:48:26
maintainerNone
docs_urlNone
authorThe Python GSSAPI Team
requires_python>=3.6
licenseNone
keywords gssapi security
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            K5Test
======

*k5test* is a library for setting up self-contained Kerberos 5 environments,
and running Python unit tests inside those environments.  It is based on
the file of the same name found alongside the MIT Kerberos 5 unit tests.

Using k5test to set up a Kerberos 5 deployment
----------------------------------------------

*k5test* can be used to set up a self-contained MIT krb5 or Heimdal
environment.  This is useful for testing applications without having to
manipulate existing Kerberos realms, or having to set up a full Kerberos
deployment by hand.

To set up a realm, use the `k5test.K5Realm` class.  The constructor accepts
several useful arguments for controlling which parts get set up; refer to the
inline documentation for more information.

Using k5test to run unit tests
------------------------------

Instead of having test cases inherit from `unittest.TestCase`, inherit from
`k5test.KerberosTestCase`, which will automatically set up a Kerberos 5
environment, before the test case, and tear it down afterwards.

Additionally, several decorators are defined.  the
`k5test.gssapi_extension_test(extension_name, human_readable_name)` decorator
(which requires `python-gssapi`) allows you to skip tests with installations
that don't support a particular GSSAPI extension.  The the
`k5test.krb_minversion_test(target_version, problem_name)` decorator allows
you to skip tests when running a version of krb5 less that the required
version.  The `k5test.krb_plugin_test(plugin_type, plugin_name)` decorator
allows you to skip tests for installations that don't have a particular plugin
installed.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pythongssapi/k5test",
    "name": "k5test",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "gssapi, security",
    "author": "The Python GSSAPI Team",
    "author_email": "sross@redhat.com",
    "download_url": "https://files.pythonhosted.org/packages/5e/3b/f65afbc2e1fb7e728cb3abd3fac872aad9dc0e222d343ac24675713bfb41/k5test-0.10.4.tar.gz",
    "platform": null,
    "description": "K5Test\n======\n\n*k5test* is a library for setting up self-contained Kerberos 5 environments,\nand running Python unit tests inside those environments.  It is based on\nthe file of the same name found alongside the MIT Kerberos 5 unit tests.\n\nUsing k5test to set up a Kerberos 5 deployment\n----------------------------------------------\n\n*k5test* can be used to set up a self-contained MIT krb5 or Heimdal\nenvironment.  This is useful for testing applications without having to\nmanipulate existing Kerberos realms, or having to set up a full Kerberos\ndeployment by hand.\n\nTo set up a realm, use the `k5test.K5Realm` class.  The constructor accepts\nseveral useful arguments for controlling which parts get set up; refer to the\ninline documentation for more information.\n\nUsing k5test to run unit tests\n------------------------------\n\nInstead of having test cases inherit from `unittest.TestCase`, inherit from\n`k5test.KerberosTestCase`, which will automatically set up a Kerberos 5\nenvironment, before the test case, and tear it down afterwards.\n\nAdditionally, several decorators are defined.  the\n`k5test.gssapi_extension_test(extension_name, human_readable_name)` decorator\n(which requires `python-gssapi`) allows you to skip tests with installations\nthat don't support a particular GSSAPI extension.  The the\n`k5test.krb_minversion_test(target_version, problem_name)` decorator allows\nyou to skip tests when running a version of krb5 less that the required\nversion.  The `k5test.krb_plugin_test(plugin_type, plugin_name)` decorator\nallows you to skip tests for installations that don't have a particular plugin\ninstalled.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A library for testing Python applications in self-contained Kerberos 5 environments",
    "version": "0.10.4",
    "project_urls": {
        "Homepage": "https://github.com/pythongssapi/k5test"
    },
    "split_keywords": [
        "gssapi",
        " security"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b5bad86d465c589cbed8f872e187e90abbac73eb1453483477771e87e7ee8376",
                "md5": "f1bab4ffc8ecbf0063148bf2ad5e6511",
                "sha256": "33de7ff10bf99155fe8ee5d5976798ad1db6237214306dadf5a0ae9d6bb0ad03"
            },
            "downloads": -1,
            "filename": "k5test-0.10.4-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f1bab4ffc8ecbf0063148bf2ad5e6511",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 11954,
            "upload_time": "2024-03-20T02:48:24",
            "upload_time_iso_8601": "2024-03-20T02:48:24.502105Z",
            "url": "https://files.pythonhosted.org/packages/b5/ba/d86d465c589cbed8f872e187e90abbac73eb1453483477771e87e7ee8376/k5test-0.10.4-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e3bf65afbc2e1fb7e728cb3abd3fac872aad9dc0e222d343ac24675713bfb41",
                "md5": "aba377eee66b0eec007bdea04508e1c1",
                "sha256": "e152491e6602f6a93b3d533d387bd4590f2476093b6842170ff0b93de64bef30"
            },
            "downloads": -1,
            "filename": "k5test-0.10.4.tar.gz",
            "has_sig": false,
            "md5_digest": "aba377eee66b0eec007bdea04508e1c1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 13661,
            "upload_time": "2024-03-20T02:48:26",
            "upload_time_iso_8601": "2024-03-20T02:48:26.001395Z",
            "url": "https://files.pythonhosted.org/packages/5e/3b/f65afbc2e1fb7e728cb3abd3fac872aad9dc0e222d343ac24675713bfb41/k5test-0.10.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-20 02:48:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pythongssapi",
    "github_project": "k5test",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "k5test"
}
        
Elapsed time: 4.79638s