35 Commits

Author SHA1 Message Date
Lennon Day-Reynolds 07a845f27f clean up API clients, work on cross-builds of binaries + container images 2024-10-18 15:27:14 -07:00
Lennon Day-Reynolds 4568c9b390 WIP: Update/clean up dependencies, move API crates into repo, replace Docker w/Nix
This does a number of things which _could_ be separated, so I consider this more or
less experimental.

Implied in the removal of the various dockerfiles is the expectation that production
deployments of ZeroNSD will simply use a Docker container, rather than distro-native
packages.

TODO: automate publishing of containers from Nix-generated image
2024-10-14 09:30:07 -07:00
travis laduke 2bec140009 cargo fmt 2023-03-23 16:06:12 -07:00
travis laduke 46a11eb0b4 Update integration tests to use the local url 2023-03-22 13:45:59 -07:00
Marcin Puc 638e0e8121 Add small Option usage refactorings 2022-05-18 16:13:14 +02:00
Erik Hollensbe d07b193a21 Test codegen fixups
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-13 19:25:24 -07:00
Erik Hollensbe 297e0ec0c6 progenitor API port initial commit
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-13 18:48:32 -07:00
Erik Hollensbe 3f1b252843 remove additional imports in service lib
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-14 15:49:22 -07:00
Erik Hollensbe 68f89c4adb some tests cleanups around sleeps / update_interval, stability fixes
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-14 14:20:09 -07:00
Erik Hollensbe 258311c53e Move ToHostname trait to traits module where it belongs
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-10 19:29:58 -07:00
Erik Hollensbe 6b116adc76 Support NS records
This adds NS records which were omitted in previous iterations of
zeronsd. It is a bit of egg on my face to admit I omitted these.

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-10 19:21:55 -07:00
Erik Hollensbe 066fd492a6 tokio::spawn async functions are automatically cleaned up in tokio::test functions
so don't drop these manually

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 09:38:59 -07:00
Erik Hollensbe 396aade955 Prepend zeronsd-test to each test network name
for easier manual teardown in the face of errors

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 09:30:55 -07:00
Erik Hollensbe 0dfb32e547 Ensure test boot sleeps long enough to reap domains
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 09:30:39 -07:00
Erik Hollensbe 6263c0a81c Reduce test iterations to 1000 for stability purposes
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 09:30:20 -07:00
Erik Hollensbe 816e9f27fe Move get_listen_ips test under all namespace
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 09:29:42 -07:00
Erik Hollensbe 8b1c7d9ac7 use the ctor crate to simplify tracing setup
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 09:03:39 -07:00
Erik Hollensbe fafe874680 remove lazy_static cleanups hack and use a Drop trait instead
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 08:16:16 -07:00
Erik Hollensbe f44305d092 move HostsFile type away from service definition
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 07:58:25 -07:00
Erik Hollensbe 101b7b37bd reorganize service contents a bit
- order types properly (impls with struct defs)
- move create* functions into service impl

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 07:50:52 -07:00
Erik Hollensbe 6dc1f3def3 first step of cleaning up integration tests: sort into files
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-09 07:43:46 -07:00
Erik Hollensbe 670d0c0f1d fix test_get_listen_ip integration test
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-02 03:53:36 -07:00
Erik Hollensbe 82dcc02c60 Fix a bunch of issues with tests
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-03-30 11:45:48 -07:00
Erik Hollensbe 1a3b5b0c66 test compilation fixes & some tweaks
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-03-28 16:38:45 -07:00
Erik Hollensbe 64bae5be1c Changing logging implementation to use tracing package
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-03-25 14:30:34 -07:00