automated-network-testing-pytest

所属分类:测试
开发工具:Shell
文件大小:51KB
下载次数:0
上传日期:2022-10-06 18:06:00
上 传 者sh-1993
说明:  RTP自动化和可编程性会议的代码材料讨论了自动化网络测试。
(Code material for the RTP automation and programmability meetup talk about automated network testing.)

文件列表:
.devcontainer (0, 2022-09-14)
.devcontainer\.zshrc (433, 2022-09-14)
.devcontainer\Dockerfile (1878, 2022-09-14)
.devcontainer\devcontainer.json (954, 2022-09-14)
.devcontainer\requirements-dev.in (87, 2022-09-14)
.devcontainer\requirements.in (66, 2022-09-14)
.devcontainer\requirements.yml (174, 2022-09-14)
.devcontainer\zsh-in-docker.sh (4067, 2022-09-14)
LICENSE (1069, 2022-09-14)
NOTICE (166, 2022-09-14)
ansible.cfg (609, 2022-09-14)
inventory (0, 2022-09-14)
inventory\documentation (0, 2022-09-14)
inventory\documentation\DC1_FABRIC (0, 2022-09-14)
inventory\documentation\DC1_FABRIC\DC1_FABRIC-documentation.md (0, 2022-09-14)
inventory\documentation\DC1_FABRIC\DC1_FABRIC-p2p-links.csv (790, 2022-09-14)
inventory\documentation\DC1_FABRIC\DC1_FABRIC-topology.csv (2772, 2022-09-14)
inventory\documentation\devices (0, 2022-09-14)
inventory\documentation\devices\DC1_L2_LEAF2A.md (0, 2022-09-14)
inventory\documentation\devices\DC1_L2_LEAF2B.md (0, 2022-09-14)
inventory\documentation\devices\DC1_LEAF1A.md (0, 2022-09-14)
inventory\documentation\devices\DC1_LEAF1B.md (0, 2022-09-14)
inventory\documentation\devices\DC1_SPINE1.md (0, 2022-09-14)
inventory\documentation\devices\DC1_SPINE2.md (0, 2022-09-14)
inventory\documentation\devices\DC1_SVC2A.md (0, 2022-09-14)
inventory\documentation\devices\DC1_SVC2B.md (0, 2022-09-14)
inventory\group_vars (0, 2022-09-14)
inventory\group_vars\AVD_LAB.yaml (734, 2022-09-14)
inventory\group_vars\DC1_FABRIC.yaml (3020, 2022-09-14)
inventory\group_vars\DC1_L2_LEAFS.yaml (13, 2022-09-14)
inventory\group_vars\DC1_L3_LEAFS.yaml (13, 2022-09-14)
inventory\group_vars\DC1_SERVERS.yaml (1525, 2022-09-14)
inventory\group_vars\DC1_SPINES.yaml (12, 2022-09-14)
inventory\group_vars\DC1_TENANTS_NETWORKS.yaml (877, 2022-09-14)
inventory\hosts.yml (1654, 2022-09-14)
inventory\intended (0, 2022-09-14)
inventory\intended\configs (0, 2022-09-14)
... ...

# RTP Network & Programmability Meetup - Test and Validate Networks with `pytest` This repository contains the code for the presentations at the RTP Network & Programmability Meetup: Meetup Presentations: * 9-08-2022 - [Test and Validate Networks with Pytest 1](https://www.youtube.com/watch?v=kuPTAca_p8w&t) * TBD - Test and Validate Networks with Pytest 2 ## The Sample tests The tests for the sessions are separate, depending on the branch. The tests are organized in different branches as follows: * `main` - includes simple and introductory tests reviewed during the [Test and Validate Networks with Pytest 1](https://www.youtube.com/watch?v=kuPTAca_p8w&t) session. The tests do not require any test infrastructure and are located in the [tests/quickstart](./tests/quickstart) directory. (**Session 1**) * `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**) * `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**) ## Test Infrastructure The 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. To deploy your own infrastructure using [containerlab](https://containerlab.dev/), please follow the directions from the project.

近期下载者

相关文件


收藏者