{"id":26167430,"url":"https://github.com/link-society/pytest-netbox-docker","last_synced_at":"2026-03-04T02:02:28.143Z","repository":{"id":281858505,"uuid":"946663818","full_name":"link-society/pytest-netbox-docker","owner":"link-society","description":"Pytest plugin that provides fixtures to start a complete Netbox infrastructure using Docker","archived":false,"fork":false,"pushed_at":"2025-03-11T14:13:47.000Z","size":12,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T17:45:58.058Z","etag":null,"topics":["docker","netbox","netbox-automation","pytest","pytest-plugin","python","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/link-society.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-11T13:42:48.000Z","updated_at":"2025-03-28T21:49:48.000Z","dependencies_parsed_at":"2025-03-11T14:41:30.889Z","dependency_job_id":"9ddb74b1-3dee-4e29-b7fe-15ad86c08180","html_url":"https://github.com/link-society/pytest-netbox-docker","commit_stats":null,"previous_names":["link-society/pytest-netbox-docker"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/link-society/pytest-netbox-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Fpytest-netbox-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Fpytest-netbox-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Fpytest-netbox-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Fpytest-netbox-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/link-society","download_url":"https://codeload.github.com/link-society/pytest-netbox-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Fpytest-netbox-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30069228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","netbox","netbox-automation","pytest","pytest-plugin","python","testing"],"created_at":"2025-03-11T17:36:23.696Z","updated_at":"2026-03-04T02:02:28.123Z","avatar_url":"https://github.com/link-society.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytest Netbox Docker\n\nPytest plugin that provides fixtures to start a complete Netbox infrastructure\nusing Docker.\n\nIt does not use [testcontainers](https://testcontainers.com/) because it is a\nthin wrapper around the Python Docker SDK, and it does not expose the required\nfeatures.\n\n## :package: Installation\n\n```bash\npip install git+https://github.com/link-society/pytest-netbox-docker.git\n```\n\n## :hammer: Usage\n\n\u003e :warning: **Important Notice**\n\u003e\n\u003e The Netbox webserver container will expose the port 8080 on 127.0.0.1,\n\u003e therefore this port should be free when running the test suite.\n\nFirst, write a test that uses the `netbox` fixture:\n\n```python\ndef test_mytest(netbox):\n  resp = requests.get(\"http://localhost:8080/login/\")\n  resp.raise_for_status()\n```\n\nThen run your test suite with the plugin activated:\n\n```bash\npytest -p pytest_netbox_docker\n```\n\n\u003e **NB:** Netbox can take a long time to start (and apply the migrations).\n\n## :wrench: Configuration\n\n| Environment Variable | Default Value | Description |\n| --- | --- | --- |\n| `PYTEST_NETBOX_PLUGIN_SCOPE` | `session` | Scope of the fixtures for the test suite |\n| `PYTEST_NETBOX_PLUGIN_POSTGRES_IMAGE` | `docker.io/postgres:17-alpine` | Docker image to use for Netbox's database |\n| `PYTEST_NETBOX_PLUGIN_VALKEY_IMAGE` | `docker.io/valkey/valkey:8.0-alpine` | Docker image to use for Netbox's cache and queue |\n| `PYTEST_NETBOX_PLUGIN_NETBOX_IMAGE` | `docker.io/netboxcommunity/netbox:latest` | Docker image to use for Netbox itself |\n| `PYTEST_NETBOX_PLUGIN_NETBOX_START_PERIOD` | `120` | Duration (in seconds) to wait for Netbox to start before considering the container \"unhealthy\" |\n\n## :memo: License\n\nThis project is released under the terms of the [MIT License](./LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-society%2Fpytest-netbox-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink-society%2Fpytest-netbox-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-society%2Fpytest-netbox-docker/lists"}