529 Commits
Author SHA1 Message Date
Mattias Walström 8c6f9cec49 test: operational_all: Poll for stuff to get removed from yangerd 2026-06-27 08:41:22 +02:00
Mattias Walström 27dc42622e test: operational_all: Try to adapt to yangerd 2026-06-27 08:41:22 +02:00
Mattias Walström 4899279ed2 test: dhcp: client_basic: Adapt to changes by yangerd 2026-06-27 08:41:22 +02:00
Mattias Walström 42c8dc0346 test: upgrade: Make more robust using yangerd 2026-06-27 08:41:22 +02:00
Mattias Walström a2937e13eb test: speed_duplex_coppar: Adapt to yangerd 2026-06-27 08:41:22 +02:00
Mattias Walström 127bbdfc4f REMOVE THIS: TEMPORARY DISABLE PTP TESTS 2026-06-27 08:41:22 +02:00
Mattias Walström 8fb9e9b68e test: mdns_allow_deny: Adapt to yangerd behaviour changes 2026-06-27 08:41:22 +02:00
Mattias Walström 7d9319b8e4 test: lldp_admin_status: Adapt to yangerd changes 2026-06-27 08:41:22 +02:00
Mattias Walström 7f4c4b63ee dhcp: server_subnets: Adapt to yanger behaviour changes 2026-06-27 08:41:22 +02:00
Mattias Walström beb2439922 test: firewall: ipv6-zone-migration: Adapt to yanger behaviour changes 2026-06-27 08:41:22 +02:00
Mattias Walström 7dc1811389 test: rip_multihop: Adapt to yangerd changes 2026-06-27 08:41:22 +02:00
Mattias Walström 01b9c04f95 test: ntp: client_stratum_selection: Adapt to yangerd behaviour 2026-06-27 08:41:22 +02:00
Mattias Walström 155f74e968 test: ospf_default_route_advertise: Make test more robust
FRR can sometimes be pretty slow to actually install the route in
the kernel. Increase the timeout of must_reach.
2026-06-27 08:41:22 +02:00
Mattias Walström 7f0b88be63 test: route_pref_ospf: Update test spec 2026-06-27 08:41:22 +02:00
Mattias Walström 05d4598ac9 test: ntp_client: Update test spec 2026-06-27 08:41:22 +02:00
Mattias Walström 79ec51860b test: hostname: adapt to yanger 2026-06-27 08:41:22 +02:00
Mattias Walström 51aa4d26b7 test: ospf_point_to_multipoint: Adapt to yanger 2026-06-27 08:41:22 +02:00
Mattias Walström cff66cd74c test: upgrade: add missing readme 2026-06-27 08:41:21 +02:00
Mattias Walström b662984f09 test: operational_all: Harden to catch more
- Test so the value in operational actually is correct
- Move test to last in suite to see that there are no stray
  data in operational (yangerd)
2026-06-27 08:41:21 +02:00
Mattias Walström 0b193cb5bd test: upgrade: Adapt to yangerd 2026-06-27 08:41:21 +02:00
Mattias Walström 98022e2e5f test: route_pref_ospf: Adapt to yangerd 2026-06-27 08:41:21 +02:00
Mattias Walström 52c7e4e90e test: ospf_unnumbered_interface: Adapt to new yangerd 2026-06-27 08:41:21 +02:00
Mattias Walström f50f6add9c test: veth_delete: Adapt to new yangerd
Operational is now not instantly availible, is some lag.
2026-06-27 08:41:21 +02:00
Mattias Walström 5071a1f177 test: ntp_client: Adapt to new yangerd daemon 2026-06-27 08:41:21 +02:00
Mattias Walström ee5499501c test: stp_basic: Stabilize test
With the new yangerd it failed 100% of the times, but it could fail
before as well, but that whould be very rare. Wait until operational
has been updated.
2026-06-27 08:41:21 +02:00
Mattias Walström e9ff748df9 tests: Adapt to new yangerd 2026-06-27 08:41:20 +02:00
Mattias Walström 76de3427ff test: syslog: property_filter: Adapt to changes required by yangerd
The test got an unexpected input in one of its logs:

'May 22 11:18:32 test-00-03-00 yangerd[3677]: SIGHUP: triggering immediate re-poll'
limit the string grepping for to be more exact.
2026-06-27 08:39:48 +02:00
Mattias Walström 6a78def525 test: upgrade: Add adaptions needed for yangerd 2026-06-27 08:39:48 +02:00
Mattias Walström 59fbb26dca test: upgrade: Add adaptions needed for yangerd
Specially the change:
`
-            oper = target.get_dict("/system-state/software")
+            oper = target.get_dict("/ietf-system:system-state/software")
`
i feel is strange, since only the backend for sysrepo has changed, but the
new syntax is actually correct, unsure why it has worked before.
2026-06-27 08:39:48 +02:00
Mattias Walström dc7a86c604 test: iface_enable_disable: Simplify test 2026-06-27 08:39:48 +02:00
Mattias Walström f305bd3527 test: wireguard_roadwarrior: Adapt to the new polled world in yangerd 2026-06-27 08:39:48 +02:00
Mattias Walström 9e403831b3 yangerd: fix stp status 2026-06-27 08:39:48 +02:00
Mattias Walström 0cd598d67c test: containers: host_commands/test.py: Adapt to new yangerd
Slightly slower to detect changes
2026-06-27 08:39:48 +02:00
Mattias Walström e938c2dce2 test: case: ntp: Adapt tests for polled yangerd 2026-06-27 08:39:48 +02:00
Mattias Walström 61a7c85d96 test: dhcp: server_subnets: Add longer timeout for polling
This since NTP status is polled in yangerd.
2026-06-27 08:39:48 +02:00
Mattias Walström 6d27f67b37 test: firewall: Make tests more robust 2026-06-27 08:39:47 +02:00
Mattias Walström ce4dd2d3e3 test: system: Make tests more robust 2026-06-27 08:39:47 +02:00
Joachim Wiberg ddc57ed6ae confd: fix veth teardown regression
When a veth pair has one end in a container and the other in the host
namespace, removing it failed: the container end's teardown deleted the
whole pair, so the host end's own delete then failed ("Cannot find
device") and aborted the teardown, leaving the interface behind.

The host-namespace delete added for the both-ends-in-container case was
emitted for every container veth end.  Restrict it to the primary end,
which for a host/container pair is the host end that already deletes the
pair itself.

Extend the container veth tests to remove the pair and verify it is gone,
covering both the single-end (regression) and both-ends teardown paths.

Fixes: #1546

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-06-26 16:05:53 +02:00
Joachim Wiberg 2ae1a70bac test: simplify interfaces/veth_delete
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-06-26 16:04:25 +02:00
Joachim Wiberg 674fd6c396 confd: allow both ends of a veth pair to be assigned to containers
Previously at least one end of a veth pair had to remain in the host
namespace, because that end created and destroyed the pair.  Assigning
both ends to containers left no one to create it.

Select a deterministic primary end so exactly one side creates the pair.
When the primary is itself a container interface, create the pair in the
host namespace before the container starts; CNI host-device then moves
each end into its container.  Teardown is deferred to the container
removal script so the pair does not linger and block re-creation.

Drop the now-obsolete limitation notes from the documentation and YANG,
and add a regression test connecting two containers over a veth pair.

Fixes: #941

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-06-20 19:26:22 +02:00
Joachim Wiberg ebc4ce1d90 test: firewall/basic, minor refactor
Refactor to use a dummy interface instead of wasting a dut.  This not
only simplifies the test but also increases test coverage on test rigs
with a single DUT.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-06-18 17:58:57 +02:00
Ejub Sabic be6d287b19 web: added update notification on web-ui
Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
2026-06-18 10:59:03 +02:00
Ejub Sabic 67ea7a74c1 feat: infix-schedule based on ietf-schedule implementation
Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
2026-06-18 10:22:35 +02:00
Joachim WibergandGitHub 19c820fac2 Merge pull request #1539 from kernelkit/web-test-check
Web test check
2026-06-17 15:33:27 +02:00
Joachim Wiberg 4d398bbf57 test: skip webui test when not available in build
Add conditional YANG feature 'web-ui' to infix-services.yang, set when
the webui is built.  This feature is what the test now looks for to
determine if it should be skipped or not.

Also, clean up remnant of old test, which was entirely replaced by
Mattias' login/csrf test.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-06-17 10:30:43 +02:00
Ejub ŠabićandGitHub 0c6d96f8a9 Merge pull request #1537 from saba8814/fix/flaky-dhcp-option-121-test
fix: flaky dhcp option 121 test
2026-06-16 11:50:03 +02:00
Ejub Sabic 473cda35bb fix: flaky dhcp option 121 test
This commit increases attempts on checks in this particular test from default 10 to 60.
This has been introduced to match worst case scenario where after 3 retries(5s) each dhcp waits 30 seconds before next 3 retries.
Commits yields to much more stable test behaviour.

Resolves: #1515

Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
2026-06-16 08:39:40 +02:00
Joachim Wiberg f5c549f669 test: Add test for login flow in WebUI
Verify:

 - Unauthenticated GET /  -> 303 to /login
 - Bad-password rejection -> no session is created
 - Session cookie is flagged HttpOnly
 - Authenticated GET /interfaces -> 200
   - with htmx-config meta tag check
 - State-changing POST without CSRF token -> 403
 - POST with X-CSRF-Token header -> succeeds
 - After logout the session no longer grants access

The cookie-preserving WebUI helper class also folds in the IPv6
link-local zone-id workaround (re-encode %25 back to %) that
infamy.restconf already uses.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
2026-06-15 21:02:16 +02:00
Joachim Wiberg f8f73b89cb statd: extend mount-points + advertised pmds per interface
- Include /run and /tmp in mount-points, likely more interesting than /.
- Include advertised link modes in operational to compare with supported

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-06-14 18:28:22 +02:00
Ejub Sabic a2f57bdd4d doc: add missing test doc for container basic test
Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
2026-06-09 08:58:18 +02:00