mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Existing tests relied on manually captured system data from various points in Infix's history, making them hard to extend as we add new features. Move to a new model where we: To update a unit test: 1. Use Infamy tests to setup a DUT in a known state 2. Use yanger's wrapper mode to capture the system state needed to produce operational data for a set of YANG models 3. Use cli-pretty to create the expected output for a set of show commands When running unit tests, we can then use the captured data to verify that yanger and cli-pretty works as expected without the need for a running Infix system - just like before. The difference is that it is now much easier to capture a new snapshot when the system evolves.
16 lines
234 B
YAML
16 lines
234 B
YAML
---
|
|
# Tests in this suite can be run on localhost without a target environment
|
|
|
|
- name: statd-yanger
|
|
suite: statd/all.yaml
|
|
opts:
|
|
- yanger
|
|
- check
|
|
|
|
- name: statd-cli
|
|
suite: statd/all.yaml
|
|
opts:
|
|
- cli
|
|
- check
|
|
|