... | ... | @@ -83,7 +83,7 @@ Here's an outline of a functional test: |
|
|
|
|
|
1. Starts sysrepod, install kea-dhcp4-server model. This is mostly environment preparation. Should be done once, before the tests.
|
|
|
|
|
|
1. Load YANG configuration. This can be in at least two ways.
|
|
|
1. Load YANG configuration. This can be in at least two ways.
|
|
|
|
|
|
* First is to use a command similar to
|
|
|
```sysrepocfg --import=myconfig.xml --datastore=startup kea-dhcp4-server`` to load the configuration directly into Sysrepo storage. It's useful to explore sysrepocfg options. It supports several formats (at least xml and json and possibly others, xml is recommended to avoid confusion between Kea and YANG configurations). Some of them may be easier to use than others. Note it doesn't make much sense to test all of them, because that would be testing sysrepo functionality.
|
... | ... | @@ -92,7 +92,7 @@ Here's an outline of a functional test: |
|
|
|
|
|
1. Start kea-dhcp4 with a minimal configuration that has only unix socket in it. This is explained in the [Kea user's guide, section 20.6](https://jenkins.isc.org/job/Kea_doc/guide/kea-guide.html#kea-netconf).
|
|
|
|
|
|
1. Start kea-netconf with appropriate configuration. It must at least have the managed-servers entry with dhcp4 in it. It should point to the unix socket that was configured in kea-dhcp4 configuration. Once started, it should retrieve the whole configration from sysrepo and send config-set over to kea-dhcp4.
|
|
|
1. Start kea-netconf with appropriate configuration. It must at least have the managed-servers entry with dhcp4 in it. It should point to the unix socket that was configured in kea-dhcp4 configuration. Once started, it should retrieve the whole configuration from sysrepo and send config-set over to kea-dhcp4.
|
|
|
|
|
|
There are many aspects to consider here. the kea-netconf can be told to send the commands to stdout rather to unix socket. This has little practical value, but can be super helpful in testing. It will allow us to investigate whether the netconf sent correct or invalid config-set.
|
|
|
|
... | ... | @@ -114,4 +114,4 @@ Testing depends on how the "configure" checks are implemented and how sysrepo is |
|
|
- --with-sysrepo=yes (or --with-sysrepo) - Kea builds against sysrepo, assuming that it is installed in a default location. This may use a png-config file if one is supplied.
|
|
|
- --with-sysrepo=<location> - Kea builds against sysrepo, with the location being specified.
|
|
|
|
|
|
Tests should be done on both a system with sysrepo installed and one with sysrepo not installed. All that is required is that Kea configures and builds correctly. |
|
|
\ No newline at end of file |
|
|
Tests should be done on both a system with sysrepo installed and one with sysrepo not installed. All that is required is that Kea configures and builds correctly. |