Mattias Walström
cfbdce1b90
Change timezone test to check timezone in operational instead of checking time
...
Libyang is smart, it "fixes" the timezone for you, this was overriden by a
hack in netconf.py and restconf.py, but what you really want is to see
in operational what the current timezone is.
2025-04-30 11:51:45 +02:00
Richard Alpe
28f67ff608
test: add topdoc dir to all test specifications
...
This should be a non functional change. The idea is to use the topdoc
dir from 9pm when generating the test report.
Signed-off-by: Richard Alpe <richard@bit42.se >
2025-01-21 15:02:11 +01:00
Mattias Walström
12b6146551
Add new generated specification files
2025-01-10 21:42:10 +01:00
Tobias Waldekranz
44b60956a8
test: upgrade: Add .gitignore for package symlink
2025-01-08 10:14:46 +01:00
Ahmed Karic and Mattias Walström
e29a721571
test: move ssh_key_authentication to infix_services
2024-12-19 14:42:17 +01:00
Mattias Walström
e00737ef78
test: Refactor upgrade test
...
* Use new cleanup in infamy to ensure the boot order gets restored
* Use new boot order in operational and use RPC to set boot order
to remove all SSH commands.
2024-12-19 10:14:15 +01:00
Mattias Walström
a4ef38fbee
test: upgrade: Add some debug print to see whats happen over time
2024-12-13 20:32:07 +01:00
Mattias Walström
f023304823
Update upgrade test to not mess up boot order
...
Works on both virtual and physical target
2024-12-05 21:24:52 +01:00
Mattias Walström
a74eb58000
test: Add unit test for 'show cli'
2024-12-03 16:29:28 +01:00
Mattias Walström
7334d0e54b
test: add test for ntp client
2024-12-03 16:29:28 +01:00
Joachim Wiberg and Mattias Walström
866b9de779
test: factor out file server from upgrade test
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2024-11-25 14:25:26 +01:00
Mattias Walström
7e08555013
tests: Convert to put_config_dicts
...
Convert from put_config_dict to put_config_dicts
2024-11-07 10:13:05 +01:00
Mattias Walström
3b3656c8f5
test: spec: change image format from PNG to SVG
...
SVG is a plain text file, better to see why it changed
than binary PNG. Also fix #744 by adding infix/OEM hash
to test specification
Signed-off-by: Mattias Walström <lazzer@gmail.com >
2024-10-23 14:21:26 +02:00
Jon-Olov Vatn
272a7c1e69
Formatting fixes for test specification and topologies
...
Also including some existing test to test specification, from ietf_system
and ietf_interfaces directories.
2024-10-17 15:11:12 +02:00
Mattias Walström
34cb229965
test: Update topologies and test texts
...
All mgmt links should be lightgrey, all mgmt ports should be named mgmt
links between duts should be named link.
2024-10-16 10:51:01 +02:00
Jon-Olov Vatn
d74e7f1458
Fixing typos and other minor issues on test spec
...
[skip ci]
2024-10-11 13:53:41 +02:00
Jon-Olov Vatn
9baa3ac674
Add missing Readme.adoc files in test specs
2024-10-11 13:28:45 +02:00
Mattias Walström
c0d5bfa71d
test: add_delete_user: Test yescrypt
2024-10-10 10:56:47 +02:00
Mattias Walström
00b103d3d2
tests: Update some typos in test steps
...
Also add missing ipv4_autoconf test from specification
2024-10-10 10:56:47 +02:00
Ahmed Karic
b1bc7b42b4
test: Verify fetching data using ssh public key
...
Add a test case to verify that a new (guest) user can retrieve data
(i.e. syslog data) using ssh public key
Fixes #304
2024-10-09 19:21:01 +02:00
Mattias Walström
65e5ab81f1
test: ietf-system: Update topology images
2024-10-04 11:22:58 +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
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
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
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
Ahmed Karic and Mattias Walström
46ad19793b
test: refactor test environment
2024-09-03 12:13:32 +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
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
095b256971
Adapt tests to be able to run them with NETCONF and RESTCONF
2024-06-27 15:43:06 +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
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 Joachim Wiberg
d66740250c
confd: Add support for timezone-utc-offset
...
Some deviations has been done the yang model to comply with tzdata
on linux.
This fixes #106
2023-10-20 12:55:02 +02:00
Ahmed Karic and Joachim Wiberg
2ff57f865a
test/case: upgrade deprecated hash method
2023-07-13 15:41:38 +02:00
Ahmed Karic and Joachim Wiberg
7b99cdbd16
test/case: Add authentication/user test
2023-07-04 23:08:21 +02:00
Tobias Waldekranz and Joachim Wiberg
5be61a7013
test/case: Add ietf_system/upgrade
...
Verifies that RAUC bundles can be installed using NETCONF.
We choose to not add this to the "all" suite for now, as the qeneth
topologies do not run with full disk emulation.
To test locally, configure your "make run" instance to use the UEFI
loader, launch `make run`, and then run:
make INFIX_TESTS=test/case/ietf_system/upgrade.py test-run
2023-06-30 15:33:10 +02:00
Tobias Waldekranz and Joachim Wiberg
f26bd54336
test: Add a 9PM compatible test suite to run all tests
2023-06-08 11:10:31 +02:00
Tobias Waldekranz and Joachim Wiberg
d82da157b6
test: Add ietf_system/hostname
2023-06-08 11:10:31 +02:00