aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* MULTIPLE-VALUE-MAPCAN: don't return spurious 2nd value & some testsSean Whitton2022-06-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* tests/util.lisp: replace using backticks as quotation marksSean Whitton2022-05-05
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add tests for pass(1) data sourceDavid Bremner2022-05-05
| | | | | | | | Test the several cases of transforming (IDEN1 IDEN2) to a filesystem location. Tricky cases include an illegal hostname in IDEN1 and shadowing of an entry by one prefixed with '_'. Signed-off-by: David Bremner <david@tethera.net>
* initial tests for CONSFIGURATOR.DATA.PGPDavid Bremner2022-05-05
| | | | | | | Define some simple regression tests to guard against breakage due to the refactoring of gnupg usage. Signed-off-by: David Bremner <david@tethera.net>
* run tests with temporary gpg homeDavid Bremner2022-05-05
| | | | | | | | | | | The big picture change here is the introduction of a custom test runner which allows setting up and tearing down various data sources (or other resources) for the test suite. In order to parse the output of gpg, provide a new exported function CONSFIGURATOR:STRIP-PREFIX. Signed-off-by: David Bremner <david@tethera.net>
* add package CONSFIGURATOR.DATA.UTILDavid Bremner2022-05-05
| | | | | | | | | | | | | | This package is intended to provide a home for utility functions used by multiple data sources. Initially move a local function from CONSFIGURATOR.DATA.FILES-TREE, and slightly generalize it to support an extension or TYPE argument. Note that the goal of LITERAL-DATA-PATHNAME is to map (IDEN1 IDEN2) to existing paths in a user-maintained file hierarchy. This is quite different from DATA-PATHNAME, which escapes various characters to map to a safe internal filename, effectively flattening a directory hierarchy into a single level. Signed-off-by: David Bremner <david@tethera.net>
* add VALID-HOSTNAME-PDavid Bremner2022-03-22
| | | | | | | Initial intended application is checking data source IDEN1. This could be done as a one-liner with a more complex regex, but that seems harder to debug. Signed-off-by: David Bremner <david@tethera.net>
* replace usage of UIOP version comparison utilities with our ownSean Whitton2021-11-28
| | | | | | | | | DATA.GIT-SNAPSHOT generates version numbers like 2342423.ab09890f2bcd where only the first, purely numerical component is intended for comparison, and the second component is just additional information. UIOP's utilities don't give the correct answers for cases like that; e.g. (uiop:version<= "1.a" "0") => T. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* replace uses of WITH-LOCAL-CONNECTION in tests/property/file.lispSean Whitton2021-05-14
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add some tests for new conf file propertiesSean Whitton2021-04-01
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>