Kristoffer Dalby
527b580f5e
Add build flag to enable TS2019 ( #928 )
2022-11-04 11:26:33 +01:00
Kristoffer Dalby
31d427b655
Run more tests in parallel
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-11-03 13:31:51 +01:00
Kristoffer Dalby
dde39aa24c
Remove general v1 makefile entry
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-28 15:21:11 +02:00
Kristoffer Dalby
54e3a0d372
Test with a longer timeout
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-25 08:44:25 +02:00
Kristoffer Dalby
86c132c8b2
Remove verbose flag for v2 tests, increase timeout
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-24 17:14:55 +02:00
Kristoffer Dalby
b2bca2ac81
Only run integration tests from dir in new tests
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-18 16:00:24 +02:00
Kristoffer Dalby
8502a0acda
dont request tty
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-18 15:37:11 +02:00
Kristoffer Dalby
2bf50bc205
Add new integration tests to ci
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-18 15:37:11 +02:00
Kristoffer Dalby
dfadb965b7
Use short test to signal that we dont run integration
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-18 14:45:18 +02:00
Kristoffer Dalby
c6f82c3646
Switch from hacking buildtags to selecting tests
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-18 14:41:48 +02:00
Kristoffer Dalby
32c21a05f8
cache go mod in docker, speed up local
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-18 14:41:20 +02:00
Kristoffer Dalby
a94ed0586e
Run all integration tests fully in docker
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-07 23:56:27 +02:00
Kristoffer Dalby
22cabc16d7
No interactive tty
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-07 23:56:27 +02:00
Kristoffer Dalby
85df2c80a8
Run oidc tests fully in docker
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-07 23:56:27 +02:00
Juan Font Alonso
5774b32e55
Include OIDC in the full execution
2022-09-08 19:48:51 +02:00
Juan Font Alonso
41353a57c8
Added integration tests for OIDC on Makefile
2022-09-08 19:48:27 +02:00
Juan Font Alonso
d548f5de3f
Splitted integration tests in Makefile
2022-08-09 12:26:29 +02:00
Jiang Zhu
9c5d485fdd
fix issue 635
2022-06-12 17:01:17 +08:00
Jiang Zhu
2201ec8905
some GOOS do not support pie build, detect in makefile and fall back to non-pie build
2022-06-04 18:11:10 +08:00
Kristoffer Dalby
613dc61339
Merge branch 'main' into remove-buf-installation
2022-04-22 07:51:40 +01:00
Moritz Poldrack
3023323528
remove necessary buf installation
...
This commit adds buf as a regular dependency and go running it instead
of requiring installing buf to one's own GOBIN.
2022-04-21 20:23:21 +02:00
Moritz Poldrack
8601dd1f42
fixed CGO disabling
2022-04-11 14:57:12 +02:00
Moritz Poldrack
c312f8bf4a
set up Makefile for reproducible builds
2022-04-11 08:56:40 +02:00
Moritz Poldrack
1f43c39f93
replaced version-at-commit script with git-describe call
2022-04-11 08:54:12 +02:00
Juan Font Alonso
e9eb90fa76
Added integration tests for the embedded DERP server
2022-03-05 19:34:06 +01:00
Kristoffer Dalby
fb85c78e8a
Fail integration tests fast
2022-02-24 11:28:34 +00:00
Kristoffer Dalby
4962335860
Remove dependency on CGO
...
This commit changes the SQLite dependency to one that does not depend on
CGO. It uses a C-to-Go translated sqlite library that is Pure go.
2022-02-22 16:18:25 +00:00
Csaba Sarkadi
a32175f791
PollNetMapHandler: refactor with chan lifetimes in mind
...
* Resolves an issue where sometimes attempted sends on a closed channel
happened by ensuring the channels remain open for the entire goroutine.
* May be of help with regards to issue #203
2022-01-16 14:18:22 +01:00
Kristoffer Dalby
0012c76170
Make it easier to run cli integration tests
2021-11-26 23:34:11 +00:00
Kristoffer Dalby
b653572272
Make format shuld format, not lint
2021-11-13 09:20:51 +00:00
Kristoffer Dalby
3ddd9962ce
Add format make entry
2021-11-13 08:39:20 +00:00
Kristoffer Dalby
06700c1dc4
Setup proto linting
2021-10-29 16:42:56 +00:00
Kristoffer Dalby
5054ed41ac
Make ci lint fix if it can
2021-10-27 07:10:32 +00:00
Kristoffer Dalby
acd9ebbdf8
Let lint ignore grpcv1.go as it is placeholder
2021-10-27 07:06:39 +00:00
Kristoffer Dalby
6369cea10e
Remove golint, its deprecated
...
This commit removed `golint`, its deprecated:
https://github.com/golang/lint
and golangci-lint has overlapping features.
2021-10-27 06:58:16 +00:00
Kristoffer Dalby
2d92719095
Dont try to generate code on every make build
2021-10-27 06:48:30 +00:00
Kristoffer Dalby
8f2ef6a57d
Prepare for checking in generated code
2021-10-27 06:40:39 +00:00
Kristoffer Dalby
b8c89cd63c
Add readme and makefile entry about code generation
2021-10-26 20:53:10 +00:00
Juan Font Alonso
2048e9e136
Added version checker on startup
2021-09-27 16:26:18 +02:00
Juan Font
acc43c39af
Increased linter timeout in makefile
2021-09-13 22:58:35 +02:00
Aaron Bieber
104776ee84
fix setting of version
2021-08-24 07:49:15 -06:00
Kristoffer Dalby
0e1ddf9715
Set longer timeout for integration tests
2021-08-12 07:36:38 +01:00
Kristoffer Dalby
4e077b053c
Initial work, add integration tests
...
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.
2021-08-08 17:50:32 +01:00
Ward Vandewege
b34e90c45d
Fix bug in preauthkeys: namespace object was not populated in the return
...
value from CreatePreAuthKey and GetPreAuthKeys. Add tests for that bug,
and the rest of the preauthkeys functionality.
Fix path in `compress` Makefile target.
2021-05-02 14:58:05 -04:00
Ward Vandewege
37601f6b4d
Add a very simple test.
2021-04-26 19:22:28 -04:00
Ward Vandewege
6aedc1111b
Add a Makefile with a few targets. The default is 'build'. The build
...
target calls the new version-at-commit.sh script which will
automatically populate the version variable inside the Headscale binary.
Once we start tagging releases on the git tree, that will come in handy.
The Makefile also has a 'test' target (does nothing yet, no tests yet)
and a 'dev' target, which runs linters, tests, and finally builds.
2021-04-25 10:31:52 -04:00