4 Commits

Author SHA1 Message Date
Brett T. Warden 4969696428 Make write_lines add a newline when necessary 2023-01-26 15:58:45 -08:00
Brett T. Warden 73cf8658da Add a newline after hostname entry
Always add a newline after printing the hostname: entry, just in case
userdata API call returns *just* the hostname.
Update the test data to just such a bare hostname.

Fixes #59
2023-01-26 14:33:38 -08:00
Brett T. Warden 7ab85beeb0 Add tests for hostname fetch
Also tell git to ignore intermediate test data
2022-11-04 10:24:22 -07:00
Brett T. Warden 1ac420e18b Add a fetch test
To improve package test capabilities, introduce a test target that will
attempt to fetch SSH keys and user data from a locally-spawned test
server. Add other bits in ucd-data-fetch.c to support testing.

Add fetch_test, which spawns an HTTP server to serve some sample
user-data and cloud-config files, and verify that ucd-data-fetch can
retrieve them.
2022-10-21 11:02:18 -07:00