tests: Use separate connection for sysrepo queries

As Jan pointed out, the tests should use separate sysrepo connection and
session than the code being tested, because it matches the reality.

This commit adds a helper macro that initializes sysrepo "client"
connection and session and fixes the already present sysrepo tests.

Change-Id: I27432722cc25127ba37b5277e3f340278bdda5ce
2 files changed
tree: b72ad4a5dbcbd4a7e404e0e067bebfaa2219b15f
  1. .clang-format
  2. .gitmodules
  3. .zuul.CzechLight-internal.yaml
  4. .zuul.public.yaml
  5. CMakeLists.txt
  6. Doxyfile.in
  7. LICENSE
  8. LICENSE.md
  9. README.md
  10. ci/
  11. cmake/
  12. docs/
  13. src/
  14. tests/
  15. yang/
README.md

Health tracking for embedded devices running Linux

This software tracks health of an embedded device which runs Linux with systemd.

Velia tracks health of systemd units. In case some of them are failing, the system is considered unhealthy. You can disable monitoring of some units by using --systemd-ignore-unit CLI flags. For example, to disable monitoring unit sshd.service you should start velia with --systemd-ignore-unit=sshd.service. In order to disable multiple units use the flag multiple times.

By default, the health of state is shown by flashing certain LEDs. This is however customizable by using your own callbacks.