{"id":13501576,"url":"https://github.com/vapor-ware/kubetest","last_synced_at":"2025-04-05T05:04:34.634Z","repository":{"id":40669840,"uuid":"148519832","full_name":"vapor-ware/kubetest","owner":"vapor-ware","description":"Kubernetes integration testing in Python via pytest","archived":false,"fork":false,"pushed_at":"2022-09-22T15:00:44.000Z","size":413,"stargazers_count":206,"open_issues_count":37,"forks_count":57,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-21T22:03:10.163Z","etag":null,"topics":["integration-testing","kubernetes","pytest","pytest-plugin","python","testing"],"latest_commit_sha":null,"homepage":"https://kubetest.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vapor-ware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-12T17:54:29.000Z","updated_at":"2024-11-28T16:34:04.000Z","dependencies_parsed_at":"2022-08-03T01:30:38.712Z","dependency_job_id":null,"html_url":"https://github.com/vapor-ware/kubetest","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-ware%2Fkubetest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-ware%2Fkubetest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-ware%2Fkubetest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-ware%2Fkubetest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vapor-ware","download_url":"https://codeload.github.com/vapor-ware/kubetest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289424,"owners_count":20914464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["integration-testing","kubernetes","pytest","pytest-plugin","python","testing"],"created_at":"2024-07-31T22:01:42.127Z","updated_at":"2025-04-05T05:04:34.619Z","avatar_url":"https://github.com/vapor-ware.png","language":"Python","funding_links":[],"categories":["Python","Tools and Libraries"],"sub_categories":["Testing and Troubleshooting"],"readme":"# kubetest\n\n[![Build Status](https://build.vio.sh/buildStatus/icon?job=vapor-ware/kubetest/master)](https://build.vio.sh/blue/organizations/jenkins/vapor-ware%2Fkubetest/activity)\n[![PyPI](https://img.shields.io/pypi/v/kubetest.svg)](https://pypi.org/project/kubetest/)\n[![Documentation Status](https://readthedocs.org/projects/kubetest/badge/?version=latest)](https://kubetest.readthedocs.io/en/latest/?badge=latest)\n\nKubetest is a [pytest][pytest] plugin that makes it easier to manage a Kubernetes\ncluster within your integration tests. While you can use the [Kubernetes Python client][k8s-py]\ndirectly, this plugin provides some cluster and object management on top of that so you can\nspend less time setting up and tearing down tests and more time actually writing your tests.\nIn particular, this plugin is useful for testing your Kubernetes infrastructure (e.g., ensure\nit deploys and behaves correctly) and for testing disaster recovery scenarios (e.g. delete a\npod or deployment and inspect the aftermath).\n\n**Features:**\n* Simple API for common cluster interactions.\n* Uses the Kubernetes Python client as the backend, so more complex custom\n  actions are possible.\n* Load Kubernetes manifest YAMLs into their Kubernetes models.\n* Each test is run in its own namespace and the namespace is created and\n  deleted automatically.\n* Detailed logging to help debug error cases.\n* Wait functions for object readiness and for object deletion.\n* Get container logs and search for expected logging output.\n* Plugin-managed RBAC permissions at test-case granularity using pytest markers.\n\nFor more information, see the [kubetest documentation][kubetest-docs].\n\n## Installation\n\nThis plugin can be installed with `pip`\n\n```\npip install kubetest\n```\n\nNote that the `kubetest` package has entrypoint hooks defined in its [`setup.py`](setup.py)\nwhich allow it to be automatically made available to pytest. This means that it will run\nwhenever pytest is run. Since `kubetest` expects a cluster to be set up and to be given\nconfiguration for that cluster, pytest will fail if those are not present. It is therefore\nrecommended to only install `kubetest` in a virtual environment or other managed environment,\nsuch as a CI pipeline, where you can assure that cluster access and configuration are\navailable.\n\n## Documentation\n\nSee the [kubetest documentation page][kubetest-docs] for details on command line usage,\navailable fixtures and markers, and general pytest integration.\n\n## Feedback\n\nFeedback for kubetest is greatly appreciated! If you experience any issues, find the\ndocumentation unclear, have feature requests, or just have questions about it, we'd\nlove to know. Feel free to open an issue for any feedback you may have.\n\n## License\n\nkubetest is released under the [GPL-3.0](LICENSE) license.\n\n\n\n[pytest]: https://docs.pytest.org/en/latest/\n[k8s-py]: https://github.com/kubernetes-client/python\n[kubetest-docs]: https://kubetest.readthedocs.io/en/latest/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapor-ware%2Fkubetest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvapor-ware%2Fkubetest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapor-ware%2Fkubetest/lists"}