clixon/test
Olof hagsand ae1af8da9e * NACM extension (RFC8341)
* NACM module support (RFC8341 A1+A2)
   * Recovery user "_nacm_recovery" added.
     * Example use is restconf PUT when NACM edit-config is permitted, then automatic commit and discard are permitted using recovery user.
   * Example user changed adm1 to andy to comply with RFC8341 example

 * Yang code upgrade (RFC7950)
   * RPC method input parameters validated
     * see https://github.com/clicon/clixon/issues/4
* Correct XML namespace handling
   * XML multiple modules was based on "loose" semantics so that yang modules were found by iterating thorugh namespaces until a match was made. This did not adhere to proper [XML namespace handling](https://www.w3.org/TR/2009/REC-xml-names-20091208), and causes problems with overlapping names and false positives. Below see XML accepted (but wrong), and correct namespace declaration:
```
      <rpc><my-own-method></rpc> # Wrong but accepted
      <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> # Correct
        <my-own-method xmlns="http://example.net/me/my-own/1.0">
      </rpc>
```
   * To keep old loose semantics set config option CLICON_XML_NS_ITERATE (true by default)
   * XML to JSON translator support for mapping xmlns attribute to module name prefix.
   * Default namespace is still "urn:ietf:params:xml:ns:netconf:base:1.0"
   * See https://github.com/clicon/clixon/issues/49
* Changed all make tags --> make TAGS
* Keyvalue datastore removed (it has been disabled since 3.3.3)
* debug rpc added in example application (should be in clixon-config).
2018-12-16 19:49:19 +01:00
..
all.sh stream debugging 2018-11-01 21:34:27 +01:00
Jenkinsfile Jenkinsfile sudo 2018-06-17 23:12:39 +02:00
lib.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
nacm.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
plot_perf.sh restconf performance test 2018-01-27 14:46:53 +01:00
README.md readme 2018-11-04 19:47:14 +01:00
test_cli.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_datastore.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_feature.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_identity.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_install.sh * Makefile change: Removed the make include file: clixon.mk and clixon.mk.in 2018-07-22 18:33:13 +02:00
test_json.sh memleaks 2018-07-20 23:16:26 +02:00
test_leafref.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_list.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_nacm.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_nacm_ext.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_nacm_protocol.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_netconf.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_openconfig.sh YANG parser cardinality checked (https://github.com/clicon/clixon/issues/48) 2018-12-05 22:18:28 +01:00
test_order.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_perf.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_restconf.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_restconf2.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_startup.sh * Yang Support of submodule, include and belongs-to. 2018-12-01 18:17:42 +01:00
test_stream.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_type.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_union.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_when_must.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_xml.sh * Yang parser is stricter (see cardinality below) which may break parsing of slack yang specs. 2018-11-18 20:55:57 +01:00
test_xpath.sh memleaks 2018-07-20 23:16:26 +02:00
test_yang.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_yang_load.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_yang_namespace.sh * NACM extension (RFC8341) 2018-12-16 19:49:19 +01:00
test_yang_parse.sh Openconfig yang specs parsed: https://github.com/openconfig/public 2018-11-25 18:24:13 +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_nacm.sh Auth tests using internal NACM
  • test_nacm_ext.sh Auth tests using external NACM (separate file)
  • 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