{"id":21636100,"url":"https://github.com/ttafsir/automated-network-testing-pytest","last_synced_at":"2025-09-01T13:39:32.797Z","repository":{"id":60010580,"uuid":"482678360","full_name":"ttafsir/automated-network-testing-pytest","owner":"ttafsir","description":"Code material for the RTP automation and programmability meetup talk about automated network testing.","archived":false,"fork":false,"pushed_at":"2022-10-06T18:06:00.000Z","size":72,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T17:55:19.780Z","etag":null,"topics":["ansible","infrastructure-testing","network-automation","pytest","test-infra"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ttafsir.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":"2022-04-18T01:36:47.000Z","updated_at":"2024-07-22T12:35:00.000Z","dependencies_parsed_at":"2023-01-19T14:01:52.248Z","dependency_job_id":null,"html_url":"https://github.com/ttafsir/automated-network-testing-pytest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttafsir%2Fautomated-network-testing-pytest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttafsir%2Fautomated-network-testing-pytest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttafsir%2Fautomated-network-testing-pytest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttafsir%2Fautomated-network-testing-pytest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttafsir","download_url":"https://codeload.github.com/ttafsir/automated-network-testing-pytest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248434409,"owners_count":21102830,"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":["ansible","infrastructure-testing","network-automation","pytest","test-infra"],"created_at":"2024-11-25T03:29:50.115Z","updated_at":"2025-04-11T15:50:20.085Z","avatar_url":"https://github.com/ttafsir.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RTP Network \u0026 Programmability Meetup - Test and Validate Networks with `pytest`\n\nThis repository contains the code for the presentations at the RTP Network \u0026 Programmability Meetup:\n\nMeetup Presentations:\n\n* 9-08-2022 - [Test and Validate Networks with Pytest 1](https://www.youtube.com/watch?v=kuPTAca_p8w\u0026t)\n* TBD - Test and Validate Networks with Pytest 2\n\n## The Sample tests\n\nThe tests for the sessions are separate, depending on the branch. The tests are organized in different branches as follows:\n\n* `main` - includes simple and introductory tests reviewed during the [Test and Validate Networks with Pytest 1](https://www.youtube.com/watch?v=kuPTAca_p8w\u0026t) session. The tests do not require any test infrastructure and are located in the [tests/quickstart](./tests/quickstart) directory. (**Session 1**)\n* `pytest_features` - includes examples of tests we reviewed during the discussion of Pytest Features, including introductory examples for some best practices. Some of these tests do require that you have a test infrastructure (See the [Test Infrastructure](#test-infrastructure) section for more details). These tests are located in the [tests/simple](./tests/simple) directory. (**Session 1**)\n* `infra_tests` -  includes more advanced and realistic examples for infrastructure tests, including using an existing Ansible inventory and a connection library like `netmiko` with pytest using hooks. It also includes examples of accomplishing the same using the TestInfra plugin with an ansible backend.  (**Session 2**)\n\n## Test Infrastructure\n\nThe test infrastructure for some examples in the repository uses the  [EVPN Symmetric IRB](https://github.com/arista-netdevops-community/avd-cEOS-Lab#labs) lab from [https://github.com/arista-netdevops-community/avd-cEOS-Lab](https://github.com/arista-netdevops-community/avd-cEOS-Lab) project (the NOTICE file includes license information). The `inventory` and `playbooks` directories in the root are almost identical, with only a slight modification I needed to make to the [fabric-deploy-config.yaml](./playbooks/fabric-deploy-config.yaml) playbook.\n\nTo deploy your own infrastructure using [containerlab](https://containerlab.dev/), please follow the directions from the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttafsir%2Fautomated-network-testing-pytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttafsir%2Fautomated-network-testing-pytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttafsir%2Fautomated-network-testing-pytest/lists"}