Joachim Wiberg
0ea84cf557
test: minor, whitespace and PEP-8 fixes
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-09-26 15:49:45 +02:00
Joachim Wiberg
6e85ace4b0
test: update rib source protocol, infix-routing -> ietf-ospf
...
Latest YANG model change reverts back to using the IETF routing-protocol
type. Update tests to check for infix-routing:ospf -> ietf-ospf:ospfv2.
Also, refactor and extend infamy/route.py:_exist_route() slightly for
readability and PEP-8, as well as to use an optional model prefix also
for next-hop-list addresses.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-09-26 15:49:45 +02:00
Joachim Wiberg
476c2ebe40
test/case: update ipv4-autoconf with new test passes
...
- Add check for specific 169.254/16 adddress (new feature)
- Add check for disabling autoconf on interface (regression test #638 )
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-09-26 15:49:45 +02:00
Tobias Waldekranz
057d255179
test: Disable services_basic
...
As detailed in the comment, we disable this test pending a fix for
2024-09-26 12:32:13 +02:00
Mattias Walström
33ad72b718
test: case: interfaces: Adapt tests to fit the test specification
...
Mostly text fixes but major rewrite in some tests.
2024-09-25 11:32:45 +02:00
Mattias Walström
a3a0d1a731
test: Remove obsolete test iface_status
...
Not needed, since it only verify the kernel is doing its thing.
2024-09-25 11:32:45 +02:00
Mattias Walström and Joachim Wiberg
4083fbf4c5
routing: Add a infix-routing-type to only support selected protocols
...
Today Infix only support OSPFv2 and Static routes, this hides all other
protocols in the CLI and makes it clearar about what we support in the YANG
model.
2024-09-21 08:47:02 +02:00
Mattias Walström and Joachim Wiberg
948d029062
test: case: ietf_routing: Update test texts for test specification
2024-09-21 08:47:02 +02:00
Mattias Walström
a533b87ea4
test: case: Move infix_interfaces into ietf-interfaces
...
This is how all other models are handled, the topmodel is naming the
test directory
2024-09-17 08:27:23 +02:00
Mattias Walström
c8d87b9060
test: case: Update some toplogy PNG files
2024-09-17 08:27:23 +02:00
Mattias Walström
900c5b0b2f
test: case: ietf_system: Update test texts
...
And some changes in test semantics.
2024-09-17 08:27:23 +02:00
Ahmed Karic and Mattias Walström
be6554f327
test: update infix-interfaces topologies
2024-09-16 14:20:52 +02:00
Ahmed Karic and Mattias Walström
1637b22979
test: update ietf-interfaces topologies
2024-09-16 14:20:52 +02:00
Ahmed Karic and Mattias Walström
3a8bede611
test: update infix-containers topologies
2024-09-16 14:20:52 +02:00
Ahmed Karic and Mattias Walström
935c5e1af9
test: update ietf-hardware topologies
2024-09-16 14:20:52 +02:00
Ahmed Karic and Mattias Walström
a03465c249
test: update infix-services topologies
2024-09-16 14:20:52 +02:00
Ahmed Karic and Mattias Walström
cbe7c7f033
test: update misc topologies
2024-09-16 14:20:52 +02:00
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