mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-23 10:05:19 +00:00
4e077b053c
This commit adds integration tests to headscale. They are currently quite simple, but it lays the groundwork for more comprehensive testing and ensuring we dont break things with the official tailscale client. The test works by leveraging Docker (via dockertest) to spin up a Headscale container, and a number of tailscale containers (10). Each tailscale container is joined to the headscale and then "passed on" to the tests. Currently three tests have been implemented: - Have all tailscale containers join headscale (in the setup process) - Get IP from each container (I plan to extend this with cross-ping) - List nodes with headscales CLI and verify all has been registered This test depends on Docker, and currently, I have not looked into hooking it into Github Actions.
39 lines
1.5 KiB
Modula-2
39 lines
1.5 KiB
Modula-2
module github.com/juanfont/headscale
|
|
|
|
go 1.16
|
|
|
|
require (
|
|
github.com/AlecAivazis/survey/v2 v2.0.5
|
|
github.com/Microsoft/go-winio v0.5.0 // indirect
|
|
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
|
|
github.com/cenkalti/backoff/v4 v4.1.1 // indirect
|
|
github.com/containerd/continuity v0.1.0 // indirect
|
|
github.com/docker/cli v20.10.8+incompatible // indirect
|
|
github.com/docker/docker v20.10.8+incompatible // indirect
|
|
github.com/efekarakus/termcolor v1.0.1 // indirect
|
|
github.com/gin-gonic/gin v1.7.2
|
|
github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b
|
|
github.com/klauspost/compress v1.13.1
|
|
github.com/lib/pq v1.10.2 // indirect
|
|
github.com/mattn/go-sqlite3 v1.14.7 // indirect
|
|
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
|
|
github.com/opencontainers/runc v1.0.1 // indirect
|
|
github.com/ory/dockertest/v3 v3.7.0 // indirect
|
|
github.com/rs/zerolog v1.23.0 // indirect
|
|
github.com/spf13/cobra v1.1.3
|
|
github.com/spf13/viper v1.8.1
|
|
github.com/tailscale/hujson v0.0.0-20200924210142-dde312d0d6a2
|
|
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
|
|
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
|
|
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect
|
|
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
gorm.io/datatypes v1.0.1
|
|
gorm.io/driver/postgres v1.1.0
|
|
gorm.io/driver/sqlite v1.1.4
|
|
gorm.io/gorm v1.21.11
|
|
inet.af/netaddr v0.0.0-20210603230628-bf05d8b52dda
|
|
tailscale.com v1.10.0
|
|
)
|