Commit graph

149 commits

Author SHA1 Message Date
Olof hagsand
a194c049c7 Fix clixon test container to alpine 3.19
Affects make test and action regressions
Some issue with alpine 3.20, probably openssl 3.3 enforcing cert usage fields
2024-05-28 16:40:35 +02:00
Olof hagsand
b8599558d4 Test: disable ssl client cert tests (temporarily) 2024-05-27 14:55:05 +02:00
Olof hagsand
989a7b38ee Test: add coreutils to test container 2024-05-14 10:13:36 +02:00
Olof hagsand
bd3a841103 New clixon-config@2024-04-01.yang revision
Added options: `CLICON_NETCONF_DUPLICATE_ALLOW` - Disable duplicate check in NETCONF messages
New `clixon-lib@2024-04-01.yang` revision
2024-04-03 17:40:32 +02:00
Olof hagsand
9bd1b8994c Test docker: dont expose ports 2023-12-06 13:46:27 +01:00
Olof hagsand
01fbf764e7 more clixon-util rm effects 2023-12-02 17:46:43 +01:00
Olof hagsand
80a10b694c All clixon test utilities in util/ moved to separate repo: clicon/clixon-util 2023-12-02 17:11:16 +01:00
Philip Prindeville
bf26ccb8db Apparently missed one of the docker files 2023-11-28 16:42:33 +01:00
Olof hagsand
cafbe7d200 Docker: enable ssh tests
Test: restore tty after restconf start
2023-11-20 09:55:37 +01:00
Philip Prindeville
a98bbf0ec6 Fix use of --with-cligen in docker files 2023-11-05 11:38:42 +01:00
Olof hagsand
c703e89bc8 Moved and split install of main example config file 2023-11-02 17:25:11 +01:00
Olof hagsand
16a7fa3837 SNMP union leak (see https://github.com/clicon/clixon/pull/461)
Added docker-snmp-mem test
2023-11-02 16:26:21 +01:00
Olof hagsand
39d3e533c3 Test: aligned without-restconf docker test with fcgi/native
Test: Fixed test_privileges
2023-10-04 07:12:13 -05:00
Philip Prindeville
3a2ffd4233 Run tests as appropriate group
Need to add "groupadd" and "groupdel" for Alpine. See:

https://github.com/gliderlabs/docker-alpine/issues/326
2023-10-03 23:41:47 +02:00
Olof hagsand
06d8e85290 use local yangmodels/openconfig (if present) instead of github 2023-09-29 22:06:18 +02:00
Renato Botelho do Couto
753d20a691 Adjust Dockerfiles after changing --with-cligen
configure --with-cligen parameter was changed to respect common
variables like prefix, includedir and libdir.  Modify all Dockerfiles
accordingly to make sure tests keep working
2023-07-06 14:33:47 +00:00
Olof hagsand
2db5961169 Example: fixed mismatch between install dirs and DIRs in example.xml.in
Docker: Removed example from test container, fixed example container
2023-02-22 23:24:50 +01:00
Olof hagsand
a8c4e8699c Docker: Fixed broken config file in clixon-example 2023-02-22 14:08:38 +01:00
Olof hagsand
7868cf0a0d Docker example: fixed scripts to run multiple instances
Fixed parenthesis typo in purge code
2023-02-10 11:51:41 +01:00
Olof hagsand
21785a5d3e Renamed clixon-system container to clixon-test 2023-01-15 22:44:00 +01:00
Olof Hagsand
7621b2f2f3 Fixed docker example sshd init 2022-12-12 09:49:05 +01:00
Olof Hagsand
61e2f014be * Changed docker builds
* `clixon-test` built in `docker/test`
    * Renamed from `clixon-system` built in `docker/main`
  * `clixon-example` built in `docker/example`
    * Added netconf ssh subsystem
    * Renamed from `clixon` built in `docker/base`
* Added ietf-yang-schema-mount@2019-01-14.yang
2022-12-11 13:57:27 +01:00
Olof hagsand
100f15b699 Add SSH_BIN compile-time option
Clarify documentation of internal netconf message struct
2022-12-07 12:15:08 +01:00
Olof hagsand
7a388b960a Docker: Add a delay until snmpd unix socket created 2022-11-28 10:33:11 +01:00
Olof hagsand
d84c529ff1 [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379)
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof hagsand
3a9b276deb Fixed struct sockaddr memory issues
Test: fixed docker yang repo copy
Test: disable restconf-callhome for fcgi
2022-07-31 11:33:02 +02:00
Olof hagsand
bb069aa7b8 Test: fixed snmp for docker/fcgi 2022-07-27 18:28:24 +02:00
Olof hagsand
e724dd7f40 Test: Added detail env var to sum.sh, Changed make test to include detailed test 2022-07-21 09:08:18 +02:00
Olof hagsand
1d78241115 Merge branch 'snmp' 2022-07-15 15:54:44 +02:00
Kristofer Hallin
e587cdcc35 Disable some tables which we will hadle ourselves for RowStatus tests. 2022-07-09 19:37:01 +02:00
Olof hagsand
19b210b1b6 Fixed if-feature-expr parser memory leak
Make test go directly to docker/main
2022-06-26 12:31:44 +02:00
Kristofer Hallin
868da39aba No copy 2022-06-26 11:29:40 +02:00
Kristofer Hallin
09e18ace3b Copy Clixon MIB from test/mib/ to system MIB directory. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
53cd1fdf09 Install the needed MIB for our Docker tests and wait a few seconds for snmpd to start. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
fc3a0e1d7e Don't load any of the MIBs we want to test, we will register the OIDs ourselves. 2022-06-26 11:28:42 +02:00
Kristofer Hallin
f9d2acf025 Minimal snmpd configuration for the Docker containers. Also change the pid-dir to /var/run/ since
that is what all the tests are expecting. Can we pass the tests now?
2022-06-26 11:28:42 +02:00
Kristofer Hallin
5a09dcbf13 Change dockerfiles and start scripts to install Net-SNMP, configure snmpd properly
and make sure it is started. This is needed for the SNMP tests (test_snm*) to run properly.
Since we can't rely on systemd in Alpine we start snmpd from the startsystem-scripts.
2022-06-26 11:28:42 +02:00
Kristofer Hallin
7bdc5045b2 In come cases we need YANG files which are converted from SNMP MIBs using smidump. For the Docker images we'll clone the from an external repository. 2022-06-26 11:28:42 +02:00
Kristofer Hallin
432131c9d2 Add SNMP tools. 2022-06-26 11:26:04 +02:00
Kristofer Hallin
376996c89e Install net-snmp-dev and build Clixon with Net-SNMP support. 2022-06-26 11:26:04 +02:00
Olof hagsand
d72aa58f90 Initial Net-snmp frontend commit
Added apps/snmp with makefiles, autotools, docker adjustment
Minimal snmp_main program
2022-06-26 11:26:04 +02:00
Olof hagsand
05918e3ca2 Test: change make test from all -> sum, make vagrant yang checkout more resilient
New slack invite
2022-06-23 16:37:22 +02:00
Olof hagsand
82a0670031 Docker test: copy clixon.png for http-data test 2022-05-05 18:32:22 +02:00
Olof hagsand
fb86285984 YangModels master branch renamed to main
- Test: skipped standard/ietf/RFC/ietf-mpls-ldp@2022-03-14.yang due to xpath bug
2022-03-28 15:03:30 +02:00
Olof hagsand
159ac0a2d7 Test: Added expect to Dockerfile and made sure pagination test worked in docker 2022-03-14 15:22:04 +01:00
Olof hagsand
4631b02e00 * Removed docker warning: set master default branch
* Test: check commit for cli union
2022-02-17 12:38:39 +01:00
Olof hagsand
b7c0113331 - test: split perf_restconf into one with http/1 and one https/2
- typo: removed exit in test
2022-02-13 17:12:02 +01:00
Olof hagsand
4aa74fa1d8 * Restconf native http/1, first working version
* Renamed files clixon_http -> restconf_http
  * Split main file into restconf_native.c
  * Remove all evhtp code and libevhtp/libevent dependency
2022-02-08 18:59:47 +01:00
Olof hagsand
dadf4a778a * HTTP/1 native parser as part of the RESTCONF client
* Fixed memory error in opendir/readdir in clicon_file_dirent
* Remove MAXPATH in parsers
* New string-del function
2022-02-08 16:59:08 +01:00
Olof hagsand
61e8841642 test: sleep typo, override YANG_INSTALLDIR in docker tests 2022-02-07 15:43:38 +01:00