Commit graph

1350 commits

Author SHA1 Message Date
Olof hagsand
9c82bbd853 try native travis test #4 2020-11-29 22:56:26 +01:00
Olof hagsand
731ea9d21f try native travis test #3 2020-11-29 22:51:55 +01:00
Olof hagsand
b8f987e3f3 try native travis test #2 2020-11-29 22:46:16 +01:00
Olof hagsand
bccad164ae try native travis test 2020-11-29 22:33:15 +01:00
Olof hagsand
19fb063f82 Support for building static lib: 2020-11-29 17:00:35 +01:00
Olof hagsand
542c0495b3 autocli sub fixes 2020-11-28 18:17:32 +01:00
Olof hagsand
75f85e0253 revert yang2cli sub code, use existing yang2cli solution 2020-11-27 15:31:27 +01:00
Olof hagsand
dda3244252 * Auto-cli changed singature of yang2cli()
* Auto-cli: create generated CLI for sub-parts of a YANG spec
2020-11-26 17:32:09 +01:00
Olof hagsand
f69daf773e more test and vagrant for nginx checks 2020-11-25 19:48:42 +01:00
Olof hagsand
4f5b0178cc fix test sleep/loop problem 2020-11-24 22:29:48 +01:00
Olof hagsand
ccadd3f9ea test: sleep 0.5s; vagrant centos: ipv6 enable 2020-11-24 18:29:04 +01:00
Olof hagsand
8d8a37d18e test and vagrant fixes 2020-11-24 10:38:58 +01:00
Olof hagsand
ae8e287dd9 test / restconf /vagrant fixes 2020-11-21 16:10:38 +01:00
Olof hagsand
87d9b7776e test_restconf IPv6 typo 2020-11-21 14:21:59 +01:00
Olof hagsand
0b948248e4 * Reworked evhtp restconf config to only use clixon-restconf.yang and marked local restconf options as obsolete
* Extended clicon-config with clixon-restconf for local config
* Removed obsolete CLICON_TRANSACTION_MOD
2020-11-21 13:16:29 +01:00
Olof hagsand
3d10c3bfcb evhtp debugging: memleaks, test errors, etc 2020-11-19 18:06:20 +01:00
Olof hagsand
c0ad6d3f8f remove global ssl-enable in clixon-restconf.yang 2020-11-18 21:52:47 +01:00
Olof hagsand
9016dde319 Modify tests so they all work with evhtp and backend config, eg that CLICON_RESTCONF_CONFIG is default true.
Note that some tests are forced to CLICON_RESTCONF_CONFIG is false due to test complexities.
2020-11-18 13:57:25 +01:00
Olof hagsand
daaf3f17df revert clixon-err on XML
restconf backend config
2020-11-18 13:57:25 +01:00
Olof Hagsand
eb549b4c21
Merge pull request #150 from benavrhm/topic_benavrhm_fixups_20201112
Topic benavrhm fixups 20201112
2020-11-17 15:45:08 +01:00
Olof Hagsand
a2bef12ce0 strncpy warnings fixed: stringop-truncation and stringop-overflow 2020-11-17 07:35:50 -06:00
Jonathan Ben-Avraham
ef3a8ed970 Fixed broken *-util target 'cd' commands, comment
Fixed broken *-util target 'cd' commands, and added a comment explaining
the intended purpose of the 'mrproper' target.
2020-11-16 11:19:44 +02:00
Olof hagsand
4eee00101c Disabling IPv6 per default due to failing docker tests 2020-11-15 18:16:06 +01:00
Olof hagsand
a5d56f1cb7 disable IPv6 restconf test by default 2020-11-15 17:00:35 +01:00
Olof hagsand
6eb18da5e9 * Multi-socket feature (eg IPv4/IPv6 http/https) to restconf evhtp
* Added by-ref parameter to `ys_cv_validate()` returning which sub-yang spec was validated in a union.
2020-11-15 12:34:40 +01:00
Olof Hagsand
707685f5ff minor alignment 2020-11-15 05:13:05 -06:00
Jonathan Ben-Avraham
b37cec53fb Added sanity test of TIMEFN
This commit adds a sanity check of the test script TIMEFN, which is by
default 'time -p', for the scripts that define it. The scripts are
currently written such that if there is no 'time' executable, such as in
Debian 9, then some of the scripts fail and some don't but should. This
commit fixes that problem.
2020-11-14 21:36:32 +02:00
Jonathan Ben-Avraham
665f540220 Fixed small shell error in Makefile
Fixed small shell error in Makefile when testing on Ubuntu 20.04.
2020-11-13 13:18:13 +02:00
Jonathan Ben-Avraham
8701303e7f Added clean-util, install-util and uninstall-util
Added more top-level Makefile targets for convenience and to make the
new users more aware of these targets.
2020-11-13 13:02:23 +02:00
Jonathan Ben-Avraham
b1c742ff41 Test script documentation fixup
This commit provides a scriptable headline for the octal dump output.
When the received output of a test is empty or only whitespace, this
commit makes it clear that the octal dump putput is not the expected
output.
2020-11-12 19:02:40 +02:00
Jonathan Ben-Avraham
934341104b Added Makefile ergonomic features
These features are added in order to:

 1. Warn the user when root privileges are necessary
 2. Warn the user when root UID is probably not intended
 3. Bring the non-default 'example' target to the user's attention
    more clearly
 4. Build and install the util applications whenever the example app is
    built or installed, because the most likely use of the example app
    is to run the tests, which require the util applications
 5. Provide a new target 'util' for building the util applications
 6. Provide a new target 'install-example' for installing the example
    app
 7. Provide a new target 'mrproper' to uninstall and clean everything,
    in order to avoid missing files that need to be removed before
    regression testing, but might be forgotten, for example, the yang
    specs
2020-11-12 18:41:55 +02:00
Olof hagsand
5c7d67dab4 Merge branch 'benavrhm-topic_benavrhm_rfc8527a_20201103' 2020-11-11 13:41:36 +01:00
Olof hagsand
a0006075c3 Merge branch 'topic_benavrhm_rfc8527a_20201103' of https://github.com/benavrhm/clixon into benavrhm-topic_benavrhm_rfc8527a_20201103 2020-11-11 13:41:05 +01:00
Olof hagsand
4ecffa6885 test systemctl; better rpc namespace errormsg 2020-11-11 13:09:58 +01:00
Jonathan Ben-Avraham
0f1a2ef631 Whitespace fix 2020-11-11 13:54:09 +02:00
Jonathan Ben-Avraham
cd45f277ef Added basic rfc8527 support
Added basic rfc8527 support, but without support for:
 * ds:operational
 * with-origin
 * clixon/test/test_rfc8527_*.sh

The current level of rfc8527 support is intended to allow commit
operations on the 'candidate' datastore without rewriting the 'startup'
datastore.
2020-11-07 22:11:35 +02:00
Jonathan Ben-Avraham
a1f54d71ac Update yang/mandatory files for rfc8527 compliance
Updated the yang/mandatory files and test scripts for rfc8527.
2020-11-07 22:06:05 +02:00
Jonathan Ben-Avraham
e6899cc3f5 Additional documentation for test scripts
Added documentation in comments in test scripts, added example site.sh,
moved evaluation of site.sh later in lib.sh to allow site.sh to override
more lib.sh variables.
2020-11-07 21:44:59 +02:00
Olof hagsand
5088f23e6a disable nginx systemd check 2020-11-06 20:11:01 +01:00
Olof hagsand
6ecb0d5232 tests for restconf backend configure
rm client-cert-ca
2020-11-06 11:41:59 +01:00
Olof hagsand
c31b1c471b * Changed first parameter from int fd to FILE *f in the following functions:
* clixon_xml_parse_file(), clixon_json_parse_file(), yang_parse_file()
  * See [Bytewise read() of files is slow #146](https://github.com/clicon/clixon/issues/146)
2020-11-04 22:21:42 +01:00
Olof hagsand
7a0838da3a * Restconf configuration has a new configure model: clixon-restconf.yang enabling restconf daemon configuration from datastore instead of from config file. 2020-11-03 21:26:34 +01:00
Olof hagsand
40da4421e6 pre-daemon callbaclk macro typo 2020-11-01 13:52:20 +01:00
Olof hagsand
5c5e45d10a Added new backend plugin: ca_pre-demon called if backend is daemonized just prior to forking. 2020-10-31 17:08:59 +01:00
Olof hagsand
1df420255e Fixed [Clixon backend generates wrong XML on empty string value #144](https://github.com/clicon/clixon/issues/144) 2020-10-28 14:28:34 +01:00
Olof hagsand
fab261cb53 * Added XPATH functions position 2020-10-27 09:40:45 +01:00
Olof Hagsand
8f81eb1c66
Merge pull request #145 from benavrhm/topic_benavrhm_doc_fix_20201023
Updated @retval doxygen specs for all functions
Thanks
2020-10-23 13:21:54 +02:00
Jonathan Ben-Avraham
f274a77414 Updated @retval doxygen specs for all functions
Updated the @retval doxygen specs for clixon_datastore_read.c
functions to match 4.8.0 API
2020-10-23 10:22:46 +03:00
Olof hagsand
ac13729cdc sleep 1 for docker test race condition 2020-10-20 10:46:46 +02:00
Olof hagsand
1614bcd19c Cleanup master for 4.9.0.PRE 2020-10-19 20:06:20 +02:00