Commit Graph

25 Commits

Author SHA1 Message Date
kaiyou a420769bd4 Add e2e test for fixe IP address 2020-06-22 18:29:17 +02:00
kaiyou eae21ef5d7 Add rejoin e2e test 2020-06-16 10:46:52 +02:00
kaiyou 8637377cec Implement networks routed through wesher
This adds an option for specifying a routed network. Every node route
that belongs to that routed network will be announced to the cluster and
every other node will direct traffic to that node for said route.
2020-06-16 10:37:55 +02:00
kaiyou b154851d40 Use docker exec -d to detach test commands 2020-05-27 23:26:29 +02:00
kaiyou fbd48468c4 Use the new tests entrypoint in e2e.sh 2020-05-27 23:26:29 +02:00
kaiyou 129291e848 Use interface name instead of cluster name
The cluster name option is not required anymore and
removed, the interface name is used to name the cluster
directly. For backward compatibility, the old path for storing
cluster state is tried as a fallback when loading.
2020-05-27 23:26:29 +02:00
kaiyou adc7a807df Expose ClusterName instead of Banner/StatePath 2020-05-27 23:26:29 +02:00
kaiyou 5930f332b8 Add an e2e test running two clusters 2020-05-27 23:26:29 +02:00
kaiyou 61988692a1 Parse arguments in the tests entrypoint
Add an argument parsing routine to the tests entrypoint, and use it
to parse the interface name, passed to
wireguard-go.
2020-05-21 10:17:48 +02:00
Leo Antunes 2fe308cd1d tests: fix e2e image build 2020-05-19 23:00:54 +02:00
Leo Antunes 014029c6fa bump min go version to 1.13 for trimpath 2019-09-30 23:17:10 +02:00
Leo Antunes 98b85ff318 add test for larger clusters 2019-08-24 19:06:02 +02:00
Leo Antunes 5427aa5e84 retry join instead of failing
this make it easier to bootstrap a cluster and also makes the cluster
more resilient to full-cluster failures or restarts

fixes #6
2019-08-06 21:53:38 +02:00
Leo Antunes 7434feba81
tests/e2e: add missing sleep 2019-07-14 14:44:40 +02:00
Leo Antunes 6b4ec4bad9 tests/e2e: add restart check 2019-07-14 13:46:42 +02:00
Leo Antunes 9523ca624a reuse existing interface instead of erroring out 2019-07-14 12:59:54 +02:00
Leo Antunes 36d41326c7 tests/e2e: use build from host 2019-07-13 11:11:43 +02:00
Leo Antunes 93d8e2eb0a tests: fix docker image [skip ci] 2019-07-13 11:05:54 +02:00
Leo Antunes 89cab211bc minor: add comments about WESHER_E2E_TESTS envvar
[skip ci]
2019-07-13 11:01:50 +02:00
Leo Antunes 1c26b706f8 tests: switch docker image to non-alpine [skip ci]
this way we can slightly simplify e2e
2019-07-13 10:52:23 +02:00
Leo Antunes c2d7929f4a add end-to-end tests 2019-07-12 11:08:41 +02:00
Leo Antunes f4e61df211 use wgctrl lib instead of wrapping wg-tools
fixes: #3
2019-07-12 11:08:14 +02:00
Leo Antunes af4984f1b1 tests: add wg-quick stub; fix wg with no args 2019-03-30 21:32:03 +01:00
Leo Antunes 3afa581cb7 tests/wg: remove spurious comments 2019-03-30 21:20:49 +01:00
Leo Antunes b8e729298c change ip assignment to support ipv6 overlay 2019-03-28 20:27:08 +01:00