Olof hagsand
76474ba151
travis nginx sudo
2020-11-30 13:43:36 +01:00
Baruch Siach
1a60d581c9
Encode xpath select values with yang
...
Search key values might contain xml meta-characters. These break
clixon_xml_parse_string() unless properly encoded.
2020-11-30 14:34:58 +02:00
Olof hagsand
66e1d81609
travis again
2020-11-30 13:00:13 +01:00
Olof hagsand
7d55e635cc
travis makefile build
2020-11-30 12:42:47 +01:00
Olof hagsand
cb10d4b552
travis test wait
2020-11-30 12:06:46 +01:00
Olof hagsand
cdc851e5ce
travis again
2020-11-30 11:16:53 +01:00
Olof hagsand
f34b61cf6a
travis again
2020-11-30 10:35:47 +01:00
Olof hagsand
0d3321756d
travis again
2020-11-30 10:05:15 +01:00
Olof hagsand
1080ef9d20
try native travis test #8
2020-11-29 23:32:50 +01:00
Olof hagsand
632314364b
try native travis test #7
2020-11-29 23:26:24 +01:00
Olof hagsand
3bbdc3cac8
try native travis test #6
2020-11-29 23:18:59 +01:00
Olof hagsand
993c5efe87
try native travis test #5
2020-11-29 23:03:13 +01:00
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
Dave Cornejo
1af53a32ce
make xml2xpath1() less picky
...
this function would never traverse up an XML tree from a node that
was not bound to a YANG model. this prevents the function from
working in some cases where it could.
2020-11-13 11:41:31 -05: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