clixon/test
Olof hagsand 79e3fbdaa9 * Restructure and more generic plugin API (cli,backend,restconf,netconf)
* For preparation for authorization RFC8341
  * Plugins add clixon_plugin_init() and api struct for function pointers, eg:
```
static const struct clixon_plugin_api api = {
    "example",
    clixon_plugin_init,
    ...
}
clixon_plugin_api *clixon_plugin_init(clicon_handle h)
{
    return (void*)&api;
}
```
  * Moved specific plugin functions from apps/ to generic functions in lib/
    * New generic plugin load function: clixon_plugins_load()
  * Removed client-local netconf plugins netconf_plugin_callbacks()
    * This was code used before generic YANG rpc calls
  * Added username to clixon handle:
    * clicon_username_get() / clicon_username_set()
  * Added authentication plugin callback
  * Removed some obscure plugin code that seem not to be used (please report if needed!)
    * CLI parse hook
    * CLICON_FIND_PLUGIN
    * clicon_valcb()
* Removed username to rpc calls (added below)
2018-04-02 10:38:53 +02:00
..
all.sh Change internal protocol from clicon_proto.h to netconf. 2017-03-25 11:10:50 +01:00
lib.sh * Restructure and more generic plugin API (cli,backend,restconf,netconf) 2018-04-02 10:38:53 +02:00
plot_perf.sh restconf performance test 2018-01-27 14:46:53 +01:00
README.md Migrated to XML configure file. 2017-10-01 12:33:12 +02:00
test_auth.sh * Added Clixon Restconf library 2018-03-25 15:47:27 +02:00
test_cli.sh preparations for 3.5.0 2018-02-11 16:46:10 +07:00
test_datastore.sh * Proper RFC 6241 Netconf error handling 2018-03-18 18:06:02 +00:00
test_install.sh Making the tests self-contained wrt config file and lib.sh creating test scratch dir. 2018-01-07 17:56:33 +01:00
test_leafref.sh * Proper RFC 6241 Netconf error handling 2018-03-18 18:06:02 +00:00
test_netconf.sh * Restructure and more generic plugin API (cli,backend,restconf,netconf) 2018-04-02 10:38:53 +02:00
test_order.sh preparations for 3.5.0 2018-02-11 16:46:10 +07:00
test_perf.sh * Restructure and more generic plugin API (cli,backend,restconf,netconf) 2018-04-02 10:38:53 +02:00
test_restconf.sh * Added Clixon Restconf library 2018-03-25 15:47:27 +02:00
test_restconf2.sh * Restructure and more generic plugin API (cli,backend,restconf,netconf) 2018-04-02 10:38:53 +02:00
test_startup.sh preparations for 3.5.0 2018-02-11 16:46:10 +07:00
test_type.sh (Work in progress) Restconf error handling for get and edit operations 2018-03-11 20:17:11 +01:00
test_yang.sh Fixed three-key list entry problem (reported by jdl@netgate) 2018-03-24 14:37:36 +01:00

Clixon tests

This directory contains testing code for clixon and the example routing application. Assumes setup of http daemon as describe under apps/restonf

  • clixon A top-level script clones clixon in /tmp and starts all.sh. You can copy this file (review it first) and place as cron script
  • all.sh Run through all tests named 'test*.sh' in this directory. Therefore, if you place a test in this directory matching 'test*.sh' it will be run automatically.
  • test_cli.sh CLI tests
  • test_netconf.sh Netconf tests
  • test_restconf.sh Restconf tests
  • test_yang.sh Yang tests for constructs not in the example.
  • test_leafref.sh Yang leafref tests
  • test_datastore.sh Datastore tests