clixon/test
Olof hagsand e7c9f3d075 Unified netconf input function
First for external use, later internal
2023-04-20 21:28:01 +02:00
..
cicd Preparations for Clixon 6.0 release 2022-11-29 10:00:41 +01:00
fuzz Clixon 6.1 2023-02-19 11:35:37 +01:00
jenkins Added make test and travis experiment 2019-02-04 14:13:20 +01:00
mibs SNMP: Add IPaddress scalar to clixon mib and fix ipv4 set translation 2022-07-08 10:32:25 +02:00
vagrant Memory leaks 2023-02-14 16:42:43 +01:00
virtualbox Deleted obsolete fields in clixon-config.yang 2022-03-05 12:48:37 +01:00
all.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
clixon.png Http data server Fixed binary data retrieval 2022-05-05 18:08:45 +02:00
config.sh.in C-API: clixon_xml2file and clixon_xml2cbuf added prefix argument 2023-04-12 10:44:58 +02:00
example_social.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
jukebox.sh test env bash; freebsd config 2019-09-17 22:44:01 +02:00
lib.sh Unified netconf input function 2023-04-20 21:28:01 +02:00
long.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
Makefile.in Updated copyright statements to 2022 2022-01-18 16:36:00 +01:00
mem.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
nacm.sh Added error handling in yang_path_arg triggered by no filter in get paginated 2021-11-10 18:35:24 +01:00
plot_perf.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
README.md Test: remove testdir also if skip test 2022-09-03 13:07:26 +02:00
site.sh Confirm commit: 2022-10-07 16:04:31 +02:00
sum.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_api.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_api_path.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_augment.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_augment_default.sh Update tests to explicit basic mode retrieval. RFC6243 2022-12-20 09:44:00 +00:00
test_augment_state.sh RFC 8525: 2023-01-15 22:44:00 +01:00
test_augment_trans.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_autocli_editmode.sh Fixed: [CLI Show config JSON with multiple top-level elements is broken](https://github.com/clicon/clixon/issues/381) 2022-10-28 15:19:41 +02:00
test_autocli_extension.sh Fixed xpath crashes discovered by fuzzing 2022-11-04 17:45:54 +01:00
test_autocli_listkey_compress.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_autocli_obsolete.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_autocli_show.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_autocli_spec.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_autocli_strict_expand.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_autocli_sub.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_autocli_treeref.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_c++.sh Creator tagging for leafs, sort-modules: remove flag setting, yang_lib2yspec patch 2023-04-13 21:11:57 +02:00
test_choice.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_choice_recursive.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_cli.sh * Added PRETTYPRINT_INDENT compile-time option controlling indentation level for XML,JSON and TEXT 2022-10-31 14:20:14 +01:00
test_cli_apipath.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_cli_duplicates.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_cli_expand.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_cli_history.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_cli_leafref.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_cli_multikey.sh * Fixed: [State XML validation error when CLICON_MODULE_LIBRARY_RFC7895=true and ietf-yang-libra$ 2023-02-12 16:19:27 +01:00
test_cli_rest.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_cli_submodes.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_cli_translate.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_cli_union.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_cli_varonly.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_client.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_configdir.sh * configure --with-wwwdir=<dir> is removed 2022-02-07 13:31:39 +01:00
test_confirmed_commit.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_copy_config.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_datastore.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_datastore_format.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_datastore_repair.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_db.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_debug.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_default_choice.sh Fixed: [Defaults in choice does not work properly](https://github.com/clicon/clixon/issues/390) 2022-12-22 12:13:20 +01:00
test_dispatcher.sh Dispatcher: modified key handling and added print function 2021-10-13 21:03:59 +02:00
test_feature.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_feature_startup.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_helloworld.sh * Added PRETTYPRINT_INDENT compile-time option controlling indentation level for XML,JSON and TEXT 2022-10-31 14:20:14 +01:00
test_http_data.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_identity.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_insert.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_install.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_instance_id.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_instance_id_multi.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_json.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_json_list.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_json_null.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_leaf_default.sh Update tests to explicit basic mode retrieval. RFC6243 2022-12-20 09:44:00 +00:00
test_leafref.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_leafref_augment.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_leafref_state.sh Feature Request: Support RFC 6022 (NETCONF Monitoring) 2022-11-28 15:53:24 +01:00
test_leafref_union.sh Fixed: [leafref in new type no work in union type](https://github.com/clicon/clixon/issues/388) 2022-12-27 11:29:22 +01:00
test_leafref_uses_augment.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_minmax.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_nacm.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_credentials.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_datanode.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_datanode_paths.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_datanode_read.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_datanode_write.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_default.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_ext.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_module_read.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_module_write.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_protocol.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_nacm_recovery.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_netconf.sh Unified netconf input function 2023-04-20 21:28:01 +02:00
test_netconf_filter.sh Investigation of https://github.com/clicon/clixon/issues/414 2023-02-02 07:32:27 +01:00
test_netconf_framing.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_netconf_hello.sh Unified netconf input function 2023-04-20 21:28:01 +02:00
test_netconf_monitoring.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_netconf_monitoring_location.sh Preparations for Clixon 6.0 release 2022-11-29 10:00:41 +01:00
test_netconf_monitoring_multiple.sh * Changed debug levels in clicon_debug() to be based on maskable flags 2023-01-27 14:56:58 +01:00
test_netconf_notifications.sh Netconf monitoring statistics frm RFC 6022 2023-02-04 17:13:45 +01:00
test_netconf_ssh_callhome.sh Add SSH_BIN compile-time option 2022-12-07 12:15:08 +01:00
test_netconf_whitespace.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_openconfig.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_openconfig_interfaces.sh Test adaption to new openconfig version 2023-02-18 12:10:58 +01:00
test_openconfig_network_instance.sh sanity checkof xret in param 2022-12-20 13:47:08 +01:00
test_order.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_pagination_config.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_pagination_draft.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_pagination_expect.exp Changed C-API for xml translation/print the internal cxobj tree data structure to other formats 2022-06-01 20:02:27 +02:00
test_pagination_state.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_pattern.sh add regex unicode match support 2022-11-23 11:35:41 +08:00
test_perf_cli.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_json.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_mem.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_perf_netconf.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_restconf.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_restconf_ssl.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_startup.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_state.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_state_only.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_perf_xml.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_plugin_reset.sh Updated extraxml reset callback example and added a regression test 2023-02-02 12:17:52 +01:00
test_privileges.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_refine.sh Update tests to explicit basic mode retrieval. RFC6243 2022-12-20 09:44:00 +00:00
test_restconf.sh Test: removed http/1.0 test that seems to stop working in new curl version? 2023-03-04 10:58:29 +01:00
test_restconf_basic_auth.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_callhome.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_restconf_continue.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_err.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_http_upgrade.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_internal.sh Merge pull request #418 from kernelkit/kkit 2023-02-17 09:52:42 +01:00
test_restconf_internal_usecases.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_jukebox.sh Since 6.1 RESTCONF PUTs have added clixon-lib namespace for attributes. 2023-03-27 12:57:24 +02:00
test_restconf_listkey.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_netns.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_restconf_nmap.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_noalpn.sh Restconf: Added fallback mechanism for non-ALPN HTTPS 2023-03-03 16:05:31 +01:00
test_restconf_notifications.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_op.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_plain_patch.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_ssl_certs.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_startup.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_yang_patch_json.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_restconf_yang_patch_xml.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_rpc.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_search_index.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_snmp_entity.sh SNMP mem tests: increase timeout for walk and table, use single snmp tools macro 2023-02-06 12:46:55 +01:00
test_snmp_get.sh Scalars do not have a .0 suffix 2023-02-06 10:47:03 +01:00
test_snmp_ifmib.sh SNMP mem tests: increase timeout for walk and table, use single snmp tools macro 2023-02-06 12:46:55 +01:00
test_snmp_rowstatus.sh * Fixed: Initialized session-id to 1 instead of 0 following ietf-netconf.yang 2023-01-18 15:51:31 +01:00
test_snmp_set.sh Scalars do not have a .0 suffix 2023-02-06 10:47:03 +01:00
test_snmp_system.sh SNMP mem tests: increase timeout for walk and table, use single snmp tools macro 2023-02-06 12:46:55 +01:00
test_sock.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_startup.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_submodule.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_transaction.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_transaction_restart.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_type.sh Fixed: [locally scoped YANG typedef in grouping does not work #394](https://github.com/clicon/clixon/issues/394) 2023-01-03 21:45:21 +01:00
test_type_range.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_union.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_unique.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_unique_descendant.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_upgrade_auto.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_upgrade_checkold.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_upgrade_failsafe.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_upgrade_interfaces.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_upgrade_interfaces_rfc7895.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_upgrade_module.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_upgrade_quit.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_upgrade_repair.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_upgrade_simple.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_when_mandatory.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_when_must.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_with_default.sh Update tests to explicit basic mode retrieval. RFC6243 2022-12-20 09:44:00 +00:00
test_xml.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_xml_trees.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_xml_validate.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_xpath.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_xpath_canonical.sh Revert Temporar fix in clixon_custom.h: XPATH_CANONICAL_SKIP_CHECK 2023-04-19 10:45:21 +02:00
test_xpath_functions.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_xpath_inverse.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_yang.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_yang_action.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_yang_anydata.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_yang_bind.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_yang_default.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_yang_deviation.sh Update tests to explicit basic mode retrieval. RFC6243 2022-12-20 09:44:00 +00:00
test_yang_extension.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_yang_load.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_yang_models_ieee.sh Fixed: YANG parsing: unknown-stmt was not allowed within another unknown-stmt 2022-02-09 14:21:40 +01:00
test_yang_models_ietf.sh [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
test_yang_namespace.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_yang_schema_mount.sh Yang schema mount: replaced config --enable-yang-schame-mount with runtime option CLICON_YANG_SCHEMA_MOUNT 2023-02-17 16:39:39 +01:00
test_yang_wdcc.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
test_yang_when.sh Update tests to explicit basic mode retrieval. RFC6243 2022-12-20 09:44:00 +00:00
test_yang_with_defaults.sh Test: moved unsetting of vars to endtest 2023-02-15 13:59:21 +01:00
valgrind-clixon.supp C-API change yang_print: print top-level and add pretty-print parameter 2022-11-24 17:42:48 +01:00

Clixon Test and CI

Overview

This directory contains Clixon test suites. Files directly under this directory called test_*.sh are part of the regression CI tests.

There are also sub-directories for various other tests:

  • cicd - Test scripts for running on remote hosts
  • fuzz - Fuzzing with american fuzzy lop
  • vagrant - Scripts for booting local vagrant hosts, installing clixon and running clixon tests

automatically run as part of the all.sh, sum.sh tests etc. The scripts need to follow some rules to work properly, please look at one or two to get the idea.

Most scripts are bash scripts using standard awk/sed etc. There is also (at least one) expect script.

Note that some IETF yangs need to be available, by default these are in /usr/local//share/yang/standard. You can change this location with configure option --with-yang-standard-dir=DIR

See also the site.sh for example for skipping tests or setting some site-specific variables.

Openconfig and Yang

To download the openconfig and yang models required for the tests:

   cd /usr/local/share/openconfig
   git clone https://github.com/openconfig/public
   cd /usr/local/share/yang
   git init
   git remote add -f origin https://github.com/YangModels/yang
   git config core.sparseCheckout true
   echo "standard/" >> .git/info/sparse-checkout
   echo "experimental/" >> .git/info/sparse-checkout
   git pull origin main

Continuous Integration

CI is done via github actions.

In the CI process, the system is built and configured and then the clixon test container is built and the tests in this directory is executed.

There are also manual cicd scripts here

Getting started

You need to build and install the clixon utility programs before running the tests as some of the tests rely on them:

  cd util
  make
  sudo make install

You need to configure and start nginx for the restconf tests:

  • The example has instructions on how to edit your nginx config files
  • If you run systemd: sudo systemctl start nginx.service

You may need to install the time utility (/usr/bin/time).

Prefix variable

You can prefix a test with BE=0 if you want to run your own backend.

You can prefix a test with RC=0 if you want to run your own restconf process.

You can prefix a test with SN=0 if you want to run your own SNMP process (in combination with BE=0)

To run with debug flags, use the DBG=<number> environment variable.

Other variables include:

  • DEMWAIT Number of seconds to sleep after daemons have started

Run all tests

You can run an individual test by itself, or run through all tests matching 'test_*.sh' in the directory. Prints test output and stops on first error:

  all.sh

Run all tests but continue after errors and only print a summary test output identifying which tests succeeded and which failed:

  sum.sh

Add a detailed error print of the first test that failed, if any:

  detail=true sum.sh

Memory leak test

The mem.sh runs memory checks using valgrind. Start it with no arguments to test all components (backend, restconf, cli, netconf), or specify which components to run:

  mem.sh    2>&1 | tee mylog        # All components
  mem.sh restconf backend           # Only backend and cli

Run pattern of tests

The above scripts work with the pattern variable to limit the scope of which tests run, eg:

  pattern="test_c*.sh" mem.sh

TLS and http/2

With default configure options, most tests run http/2 and TLS by default. To pin tests to override this use the HVER and RCPROTO variables. Example:

HVER=1.1 RCPROTO=http ./test_restconf_plain_patch.sh

Some tests are pinned to certain settings and overriding will not will not work.

Performance plots

The script plot_perf.sh produces gnuplots for some testcases.

Site.sh

You may add your site-specific modifications in a site.sh file. Example:

  # Add your local site specific env variables (or tests) here.
  # Add test to this list that you dont want run
  SKIPLIST="test_openconfig.sh test_yangmodels.sh"
  # Parse yang openconfig models from https://github.com/openconfig/public
  OPENCONFIG=/usr/local/share/openconfig/public

For example, in FreeBSD, add:

  wwwuser=www
  make=gmake

https

For fcgi/nginx you need to setup https in the nginx config file, independently of clixon.

If you use native with configure --with-restconf=http1, you can prepend the tests with RCPROTO=https which will run all restconf tests with SSL https and server certs.

Ensure the server keys are in order, as follows.

If you already have server certs, ensure the RESTCONF variable in lib.sh points to them, by default the config is

  <server-cert-path>/etc/ssl/certs/clixon-server-crt.pem</server-cert-path>
  <server-key-path>/etc/ssl/private/clixon-server-key.pem</server-key-path>
  <server-ca-cert-path>/etc/ssl/certs/clixon-ca-crt.pem</server-ca-cert-path>

If you do not have them, generate self-signed certs, eg as follows:

  openssl req -x509 -nodes -newkey rsa:4096 -keyout /etc/ssl/private/clixon-server-key.pem -out /etc/ssl/certs/clixon-server-crt.pem -days 365

There are also client-cert tests, eg test_ssl_certs.sh

SNMP

Clixon snmp frontend tests require a running netsnmpd and converted YANG files from MIB.

Netsnmpd is 5.9 or later and can be started via systemd. For the tests to run, the systems IFMIB should be disabled: -I -ifTable,ifNumber,ifXTable,, etc.

One way to start snmpd on Ubuntu, known to be working for the tests is:

snmpd -c /etc/snmp/snmpd.conf -Lo -p /var/run/snmpd.pid -I -ifXTable -I -ifTable -I -system_mib -I -sysORTable -I -snmpNotifyFilterTable -I -snmpNotifyTable -I -snmpNotifyFilterProfileTable

Converted YANG files are available at https://github.com/clicon/mib-yangs or alternatively use smidump version 0.5 or later. Clixon expects them to be at /usr/local/share/mib-yangs/ by default, or configured by --with-mib-generated-yang-dir=DIR.

You also need to configure a unix socket for agent. Example of /etc/snmp/snmpd.conf:

master  agentx
agentaddress  127.0.0.1,[::1]
rwcommunity     public  localhost
agentXSocket    unix:/var/run/snmp.sock
agentxperms     777 777

Known issues

Workaround: Unicode double-quote in iana-if-type@2022-03-07.yang