aboutsummaryrefslogtreecommitdiff
path: root/tests/data
Commit message (Collapse)AuthorAge
* 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>
* 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>