Commit Graph

27 Commits

Author SHA1 Message Date
Erik Hollensbe a21ef9ead5 test the alpine package too
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-28 12:56:36 -07:00
Erik Hollensbe c3d3bca745 Cleanup makefile a bit
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-21 10:30:09 -07:00
Erik Hollensbe 2d8d3576a1 Fixes for debian packages
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-21 07:03:01 -07:00
Erik Hollensbe 321ed12827 ubuntu22 build with vendored (from rust-openssl) openssl library
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-17 20:27:20 -07:00
Erik Hollensbe 856a30c346 lots of build fixes for new packaging including libssl
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-13 21:56:32 -07:00
Erik Hollensbe a4360d46a4 Update packaging routines for ubuntu's libssl changes
This fixes the make tasks and adds a new Dockerfile to build the package
properly for ubuntu 22.04 (and derivatives) and up. The packages require
libssl3.

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-26 00:59:06 -07:00
Erik Hollensbe 6805e7990c make test now just runs cargo test --lib
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-04-14 15:49:04 -07:00
Erik Hollensbe 08a1d56157 Reorganization of tree, tests
This commit reorganizes the tree to make it easier to test individual
library functionality within it. Notably it:

- Moves everything under a library
- Moves zeronsd to the `src/bin` directory, with a small boot stub
- Moves the integration tests to `tests/`, with the service abstraction
  + library tooling for the tests in one spot.
- It also rewrites significant parts of the testing functionality to use
  tokio::test, with all the async functionality that needed to change to
  go along with that.

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-02-20 20:36:07 -08:00
Erik Hollensbe 6ef4718ed2 The -j1 flags were just slowing down the compile, not the tests
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-02-18 00:39:25 -08:00
Erik Hollensbe 343c58b6c2 Makefile: forgot to push latest tags
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2022-01-31 20:47:57 -08:00
Erik Hollensbe fc36951a0c Add a RUN_TEST argument to test-integration make target for running specific tests
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2022-01-31 20:19:35 -08:00
Erik Hollensbe 86594f2ae3 Additional make tooling + changes to release notes for alpine release
Also makes publishing to docker a little easier

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2022-01-31 11:16:02 -08:00
Erik Hollensbe f2533a8bc8 zeronsd v0.2.4
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-08-28 02:50:11 -07:00
Erik Hollensbe 259a1f9e20 Makefile: some changes to make skipping tests easier
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-07-26 11:54:05 -07:00
Erik Hollensbe 14885358a4 Tests for IPv6 functionality
This also includes several traits and file organization structuring to
make things a little easier to work with when adding future tests.

rfc4193 and sixplane are tested as well as ipv4 now.

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-06-22 22:42:33 -07:00
Erik Hollensbe 59a791f267 Fix docker packaging
The entrypoint was not being set correctly, resulting in broken
behavior. Thanks to @jmuchovej for triaging this problem.

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-05-31 23:50:34 -07:00
Erik Hollensbe 6226c27f5a First DNS setup + reply test
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-05-29 16:50:42 -07:00
Erik Hollensbe 7380900ac8 Start of authority tests
Also: integration test restructuring

This implements an integration test harness for zerotier-one that joins
and leaves networks it creates. It also removes the need for passing the
token if you have provided a `test-token.txt` in the root of the
repository.
2021-05-29 04:30:19 -07:00
Erik Hollensbe c04b5d83c6 Fix the test-packages task
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-05-26 21:50:02 -07:00
Erik Hollensbe fdea6dcef2 Fix a lot of things
- Right now, the serial is bumped N times for every API call, which is
  really not great when you consider that systemd-networkd and others
  like it are caching name resolvers.
  - This can be elided by checking if a matching record exists in the
    catalog before inserting it.
- Tests were added. Fixtures in some spots were created. Read
  `src/tests.rs` before trying tests.
  - Code was heavily reorganized as a result.

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-05-23 20:45:21 -07:00
Erik Hollensbe c6869a1a97 Move cleaning bits out into own make task
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-05-13 16:02:31 -07:00
Erik Hollensbe fd4f0dc058 Support packaging
This generates .deb, .rpm, and docker images.

To package, type `make package` which will build all three.

You can also test the package installation and usage by typing `make
test-package`, but admittedly these tests are quite primitive.

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-05-13 03:28:31 -07:00
Erik Hollensbe 96bdfdf135 update codegen to better name our crates
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-05-05 16:08:16 -07:00
Erik Hollensbe 1b753964d0 Autoconfiguration support
This allows the service to autoconfigure itself based on the zerotier
network information the local zerotier-one client provides. It will
automatically listen on the proper IP address, as well as configure dns
through the central API to use it.

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-04-29 23:44:27 -07:00
Erik Hollensbe 899a4adfd6 rewrite our openapi code gen a little bit
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
2021-04-21 02:16:19 -07:00