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>
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.
- 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>