Richard Alpe and Joachim Wiberg
1f74ebf828
test: change query-interval and add retry in igmp_basic
...
There's a case where the first query is lost due to the network just
starting up. To handle this we introduce a retry loop in the test case
that waits for a second query message to be sent.
In this commit we also lower the query interval to speed up the case
when the first message is lost. Ideally mcd (the underlying multicast
daemon) should implement a Startup Query Interval to send it even
faster.
Signed-off-by: Richard Alpe <richard@bit42.se >
2024-09-10 17:58:26 +02:00
Ahmed Karic and Tobias Waldekranz
ed6f0b4dce
test: update ietf_routing .png
2024-09-10 14:59:12 +02:00
Ahmed Karic and Tobias Waldekranz
4efe89b3ea
test: update ietf_syslog topologies
2024-09-10 14:59:12 +02:00
Ahmed Karic and Mattias Walström
b963788fbc
test: update infix_dhcp test topologies
2024-09-09 19:15:21 +02:00
Mattias Walström
c456fa1c75
test: spec: Update all test specifications with relative path
2024-09-09 15:11:36 +02:00
Mattias Walström
257c2ac3a1
test: case: Use common topologies for some tests
...
No need to have seperate topology for theese tests
2024-09-09 15:11:36 +02:00
Ahmed Karic and Mattias Walström
47bbc1431a
test: update ietf_routing test topologies
2024-09-09 11:50:57 +02:00
Mattias Walström
e4e7dbd714
tests: Add test specification
...
Add minor changes in all testscripts, to add name and description
Add generated test specification
Add generated topology image
2024-09-06 10:18:16 +02:00
Mattias Walström
4e41663987
test: USB: Refactor general USB test
...
Better instructions means better test specification
Also add header, used when generate test specification.
2024-09-06 10:18:16 +02:00
Mattias Walström
91d6a7be85
test: USB: Add new test to test systems with two USB ports
...
Break out this from the general USB test. Test if you can
modify the ports independent of eachother.
2024-09-06 10:18:16 +02:00
Joachim Wiberg
53df903689
test: skip container tests if target lacks support
...
Issue #597
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-09-05 07:04:58 +02:00
Joachim Wiberg
804df9373f
test: adjust hard-coded transports
...
RESTCONF, or NETCONF, may not always be available. Break out and
refactor transport detection/reachability.
NOTE: The shared code paths between wait.py and util.py:wait_boot()
have been refactored as well to reduce code duplication.
Issue #597
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-09-05 07:04:58 +02:00
Joachim Wiberg
f071dacf8b
test: add __str__ to Device class for reading device name
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-09-05 07:04:58 +02:00
Joachim Wiberg
5e03b20bb2
test: minor, cleanup & pep-8 fixes
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-09-05 07:04:58 +02:00
Ahmed Karic and Mattias Walström
46ad19793b
test: refactor test environment
2024-09-03 12:13:32 +02:00
Mattias Walström
dc4c38ede6
test: Adapt tests/infamy for the new test config
...
Instead of copy factoy config to reset between tests,
use the new test-config.cfg.
Change the logic in the factory config since the default values have changed.
2024-08-30 17:40:02 +02:00
Mattias Walström
2119fd239a
test:syslog: Prefix with infix-syslog model
...
Unsure why this test ever passed.
2024-08-29 16:29:44 +02:00
Joachim Wiberg
0ffca5aa21
test: verify remote logging with rfc5424 log format
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-08-26 20:54:49 +02:00
Joachim Wiberg
cc0321f38f
test: new test ietf_syslog/basic.py
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-08-26 20:54:49 +02:00
Mattias Walström and Tobias Waldekranz
60e8b24d01
infamy: Refactor xpath handling between restconf and netconf implmentation
...
Previous xpath may or may not been an xpath, we still called it xpath.
Remove the obscure function get_xpath() and instead transform to a
URI in restconf.py
This fix issue #490
Signed-off-by: Mattias Walström <lazzer@gmail.com >
2024-08-16 16:50:13 +02:00
Mattias Walström
4a3559d88f
infamy: Remove duplicate function
...
Get management ip was implemented in two functions, removing one.
2024-06-27 15:43:06 +02:00
Mattias Walström
d340ba7407
infamy: Wait for NETCONF and RESTCONF
...
Also remove some code duplication.
2024-06-27 15:43:06 +02:00
Mattias Walström
b57353294f
test: usb: Make possible to run on physical devices
...
Virtual devices always have two USB ports, but physical, may have more
or less.
2024-06-27 15:43:06 +02:00
Mattias Walström
2919c23fde
tests: containers: Adapt tests to work with restconf
...
Move the web port used in containers from 80 -> 91
this to not collide with nginx which is required
for restconf.
2024-06-27 15:43:06 +02:00
Mattias Walström
dd0f1610ab
Add get_current_time_with_offset to netconf/restconf
...
This allows the timezone tests to run on restconf as well
2024-06-27 15:43:06 +02:00
Mattias Walström
0595628e97
infamy: Adapt for operational changes between netconf and restconf
2024-06-27 15:43:06 +02:00
Mattias Walström
095b256971
Adapt tests to be able to run them with NETCONF and RESTCONF
2024-06-27 15:43:06 +02:00
Joachim Wiberg
95a5f153df
statd: increase port column width for 'show bridge mdb'
...
Fixes #462
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-06-25 19:08:22 +02:00
Joachim Wiberg
0d0d97ad3f
test: verify hostname format %h-%m in running and operational
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-06-25 17:22:36 +02:00
Joachim Wiberg
32ef120928
test: verify admin user default password in running and operational
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-06-25 17:22:36 +02:00
Joachim Wiberg
8851b279f5
confd: merge infix-shell-types.yang with infix-system.yang
...
All typedefs and identities should be declared in the module that uses
them unless other modules need them. This change also makes it easier
to work with tools like yanglint and pyang.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-06-25 17:22:36 +02:00
Tobias Waldekranz
8baca7df03
test: unit: defconfig: Skip root login checks for all boot configs
...
Also, hoist the whitelist check up one level, so that we can report
which configs we are exempting, and which ones we are actually
checking.
2024-06-17 14:59:27 +02:00
Tobias Waldekranz
640ccea288
test: case: vlan_qos: Add
...
Verify that we can map VLAN PCP to skb->priority on ingress, and back
to PCP on egress.
2024-06-07 10:10:38 +02:00
Joachim Wiberg and Tobias Waldekranz
fe036049b8
Fix #473 : bridges never get IPv6 autoconf enabled
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-06-05 15:08:06 +02:00
Joachim Wiberg and Tobias Waldekranz
21ef50ebfb
test: new test, verify handling of non-admin users
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-06-03 23:05:04 +02:00
Joachim Wiberg and Tobias Waldekranz
47ee01be96
test: minor, whitespace cleanup
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-06-03 23:05:04 +02:00
Mattias Walström and Tobias Waldekranz
6e07f5b6f8
test: ipv4_autoconf: Increace possible delay when waiting for link local
...
No reason to be that narrow (10s) change to 30s
2024-05-24 11:58:47 +02:00
Mattias Walström and Tobias Waldekranz
05f063d81b
test: Refactor ipv4 address
...
More robust and less code duplication
2024-05-24 11:58:47 +02:00
Mattias Walström
115f5c8f52
infamy: igmp_vlan: Refactor
...
Simplify test, and speed it up when do positive testing.
2024-05-23 08:45:05 +02:00
Mattias Walström
6df2c90d85
test: Refactor routing tests
...
Make more in parallel and restructure code
2024-05-23 08:45:05 +02:00
Tobias Waldekranz
3f2ae3f3fc
test: case: igmp_basic: Speed up positive reception tests
...
Use must{,_not}_receive instead of the general sniffer, so that we can
continue the test as soon as we see the transmission at the receiver,
rather than always waiting the full 5s.
While we're here:
- Show the port mappings in the top block-comment
- Define a few more steps to show the user what is going on
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
f94815cf46
test: case: static_multicast_filters: Speed up positive reception tests
...
Use must{,_not}_receive instead of the general sniffer, so that we can
continue the test as soon as we see the transmission at the receiver,
rather than always waiting the full 5s.
While we're here:
- Show the port mappings in the top block-comment
- Define a few more steps to show the user what is going on
- Avoid global variable references in set_static_multicast_filter()
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
1dbe09b428
test: Spellchecking
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
e53f3362be
test: case: routing_basic: Restructure to reuse existing namespace
...
Rather than setting up and tearing down two identical namespaces,
create it once and use it for the duration of the test.
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
c3945a996c
test: case: static_routing: Restructure to reuse existing namespace
...
Rather than setting up and tearing down two identical namespaces,
create it once and use it for the duration of the test. (This is
probably a documentation issue with Infamy: there is no requirement
that test.steps are direct descendants of the test, but until this
point there was no example of this in the source base)
In the process of this, it was also discovered that no positive ping
test was done over v6, so that has been added.
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
74b0679cf0
test: case: container_*: Use standard ping tests
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
dc6dffbff9
test: case: bridge_*: Use standard ping tests
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
4c6dfdf600
test: Run negative ping tests in parallel
...
Rather than having to wait for each timeout sequentially, run each
test in parallel.
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
177b65587b
test: case: routing_basic: Remove bridge from figure
...
This a routed setup, no bridge is used.
2024-05-20 16:21:06 +02:00
Tobias Waldekranz
fb2bd2c2b7
test: Whitespace cleanup
2024-05-20 16:21:06 +02:00