summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-01-22Merge pull request #7909 from pjdruddy/snmp-skip-testDonald Sharp
test: add snmp skip test
2021-01-22Merge pull request #7902 from opensourcerouting/topotest-markerDonald Sharp
tests: Standardized Topotest PyTest Markers
2021-01-22test: add snmp skip testPat Ruddy
Since SNMP is a pain to install add a check which will be used in all SNMP tests in future to silently skip SNMP tests if SNMP has not been installed on the base system. Signed-off-by: Pat Ruddy <pat@voltanet.io>
2021-01-21Merge pull request #7765 from gpnaveen/ospf_chaos_testMartin Winter
tests : Adding 3 ospf chaos testcases.
2021-01-21tests: pytest markers in topotest templatesDavid Schweizer
Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
2021-01-21tests: pytest marker registrations for all daemonsDavid Schweizer
Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
2021-01-21Merge pull request #7782 from kuldeepkash/multicast_pim_sm_topo2Donald Sharp
tests: Add new scenarios to test multicast-pim-sm
2021-01-21tests: Adding 3 ospf chaos testcases.nguggarigoud
This script involves Restart ospfd, restart frr with ospf enabled, staticd with redistribution inside ospf is enabled Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
2021-01-20Merge pull request #7832 from pjdruddy/snmp-test-infraDonatas Abraitis
Snmp test infra
2021-01-19Merge pull request #7233 from donaldsharp/route_map_optimizationsMark Stapp
Route map optimizations
2021-01-19Merge pull request #6455 from GalaxyGorilla/bfd_ospf_topotestRuss White
tests: Introduce BFD OSPFv2/v3 topotests
2021-01-18tests: Add new scenarios to test multicast-pim-sm(different topology)kuldeepkash
Add new scenarios to test multicast-pim-sm(different topology) Signed-off-by: kuldeepkash <kashyapk@vmware.com>
2021-01-18tests: Add/enhance framework for multicast-pim-sm automationkuldeepkash
1. Add/enhance framework for multicast-pim-sm automation Signed-off-by: kuldeepkash <kashyapk@vmware.com>
2021-01-18tests: Add new scenarios to test multicast-pim-smkuldeepkash
1, Added new scenarios to test multicast-pim-sm Signed-off-by: kuldeepkash <kashyapk@vmware.com>
2021-01-18Merge pull request #7874 from donaldsharp/more_pytest_markDonatas Abraitis
More pytest mark
2021-01-16tests: Set default timers to 3/10 for bgp using create_router_bgpDonald Sharp
Tests were timing out in our test system due to lost packets and flakiness of the lower end systems. Just set the timers to 3/10 and give them plenty of time to converge. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-15tests: Modify zebra_rib tests to include some basic route-map testsDonald Sharp
New test does this: a) Ensures that we run the correct number of times given two `ip protocol X` commands( ie we do not run the route-map application against all routes, only those affected ) b) Ensure that when we modify the route-map the state ends up sane this includes making a static route depend on a sharp route that gets removed from the change of the sharp route-map c) Ensure that the kernel routes are correct. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-15tests: Add `pytest.mark.pbr`Donald Sharp
Add a mark to topotests that mark pbr tests `pytest -k pbr` Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-15tests: Add `pytest.mark.isis`Donald Sharp
Add a mark to topotests that mark isis tests `pytest -k isis` Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-15tests: Add `pytest.mark.bfd`Donald Sharp
Add a mark to topotests that mark bfd tests. `pytest -k bfd` Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-15Merge pull request #7870 from donaldsharp/pytest_markingMark Stapp
tests: Start the ability to mark tests
2021-01-15tests: Check if peer-group is working in topotestsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-01-14tests: Start the ability to mark testsDonald Sharp
Add the ability for our topotests to take advantage of pytest `mark`ing. This effectively allows you to tell pytest to run against certain sets of tests. For a demonstration purpose I've added in marks for: babel eigrp ldp ospf pim rip And setup tests to run against those tests that only test those protocols. You can run against eigrp tests by running `pytest -k eigrp` Other combinations are also available based upon simple boolean logic. Just read the pytest.mark documentation. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-13Merge pull request #7837 from ckishimo/tests_ospfDonald Sharp
tests: fix redistribute key in ospf tests
2021-01-13Merge pull request #7849 from gpnaveen/static_rte_testDonatas Abraitis
tests: Static route cases with admin dist and tag.
2021-01-13Merge pull request #7748 from adrianomarto/bgp-listen-on-multiple-addressesDonatas Abraitis
BGP daemon listen for connections on multiple addresses
2021-01-12tests: sample snmp test to check infraPat Ruddy
Simple test which creates a router running snmp and bgpd and checks we can read the correct bgpVersion using snmp. Signed-off-by: Pat Ruddy <pat@voltanet.io>
2021-01-12Merge pull request #7707 from opensourcerouting/isisd-rlfaOlivier Dugeon
isisd, ldpd: add Remote LFA support
2021-01-12Merge pull request #7439 from opensourcerouting/bgp-damp-profile2Donald Sharp
bgpd: BGP route-flap dampening profiles for peers and peer groups
2021-01-12Merge pull request #7687 from gpnaveen/ospf_p2mpRuss White
tests: Adding ospf p2mp basic test.
2021-01-12tests: Static route cases with admin dist and tag.nguggarigoud
1. Adding api to verify ip nht command. 2. 5 cases of static routes with admin dist and tag 3. Run time = 89Secs Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
2021-01-12tests: move redistribute function into libckishimo
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
2021-01-12tests: fix ospf cosmetic outputckishimo
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
2021-01-12tests: remove old def for redistribution in ospfckishimo
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
2021-01-12tests: use new def for redistribution in ospfckishimo
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
2021-01-12tests: add new def for redistribution in ospfckishimo
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
2021-01-12tests: Adding ospf p2mp basic test.nguggarigoud
This test verifies basic p2mp test Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
2021-01-11tests: add machinery to test SNMPBabis Chalios
Add initial 'walk' and 'get' test APIs for SNMP Signed-off-by: Babis Chalios <babis@voltanet.io> Signed-off-by: Pat Ruddy <pat@voltanet.io>
2021-01-11tests: API to launch snmpd in a topotest scenarioBabis Chalios
Prepare the infrastructure to allow configuring and launching an SNMP daemon as part of testing scenario. Signed-off-by: Babis Chalios <babis@voltanet.io> Signed-off-by: Pat Ruddy Chalios <pat@voltanet.io>
2021-01-11pathd: Skip SR-TE topotests if pathd has been disabledSebastien Merle
* If pathd binary is not found, skip the SR-TE topotests. * Fix some compilation warnings when pathd is not built. Signed-off-by: Sebastien Merle <sebastien@netdef.org>
2021-01-11tests: tests for bgpd listing on multiple addressesAdriano Marto Reis
* Added a new topotest to test bgpd listening on multiple addresses. * Updated the existing bgpd tests according to the parameter added to bgp_master_init. Signed-off-by: "Adriano Marto Reis" <adrianomarto@gmail.com>
2021-01-09Merge pull request #7756 from pjdruddy/bgplu-fixesDonald Sharp
Bgplu fixes
2021-01-08tests: Wait for bgp convergence *after* we re-add the interfacesDonald Sharp
In test_bgp_mutli_vrf_topo2.py it's clear that we remove then re-add the vrf interfaces. Then the test was immediately checking to ensure that the routes were available. BGP needs time to reconverge. Let's ensure that first. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-08tests: add IS-IS RLFA topotestRenato Westphal
Add new RLFA topotest that tests all RLFA configuration knobs and how isisd and ldpd react to various configuration changes that can occur in the network. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2021-01-08tests: add remote LFA unit testsRenato Westphal
Extend the existing SPF unit testing infrastructure so that it can test RLFA as well. These new unit tests are useful to test the RLFA PQ node computation on several different network topologies in a timely manner. Artificial LDP labels (starting from 50000) are used to activate the computed RLFAs. It's worth mentioning that the computed backup routing tables contain both local LFAs and remote LFAs, as running RLFA separately isn't possible. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2021-01-08Merge pull request #7816 from pjdruddy/revert_labelmanager_staticsRenato Westphal
Revert labelmanager statics
2021-01-07tests: Fix gr_testsDonald Sharp
The bgp_gr_functionality_topo1 test was shutting down an interface on r2 and then trying to bring it up on r1. Hijinx ensued. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-01-07Merge pull request #7749 from wesleycoakley/bgpd-large-community-format-fixDonatas Abraitis
bgpd: reject malformed large-communities
2021-01-06Merge pull request #7820 from kuldeepkash/topojson_frameworkDonald Sharp
tests: [topojson]Add/Enhance framework to support PIM automation
2021-01-06bgpd: separate lcommunity validation from tokenizerWesley Coakley
`lcommunity_gettoken` expects a space-delimeted list of 0 or more large communities. `lcommunity_list_valid` can perform this check. `lcommunity_list_valid` now validates large community lists more accurately based on the following condition: Each quantity in a standard bgp large community must: 1. Contain at least one digit 2. Fit within 4 octets 3. Contain only digits unless the lcommunity is "expanded" 4. Contain a valid regex if the lcommunity is "expanded" Moreover we validate that each large community list contains exactly 3 such values separated by a single colon each. One quirk of our validation which is worth documenting is: ``` bgp large-community-list standard test2 permit 1:c:3 bgp large-community-list expanded test1 permit 1:c:3 ``` The first line will throw an error complaining about a "malformed community-list value". The second line will be accepted because the each value is each treated as a regex when matching large communities, it simply will never match anything so it's rather useless. Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>