1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00
juanfont.headscale/hscontrol
Kristoffer Dalby f6276ab9d2 fix postgres constraints, add postgres testing
This commit fixes the constraint syntax so it is both valid for
sqlite and postgres.

To validate this, I've added a new postgres testing library and a
helper that will spin up local postgres, setup a db and use it in
the constraints tests. This should also help testing db stuff in
the future.

postgres has been added to the nix dev shell and is now required
for running the unit tests.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-11-23 21:14:55 +01:00
..
assets
db fix postgres constraints, add postgres testing 2024-11-23 21:14:55 +01:00
derp feat: derpmap field in config (#1823) 2024-10-17 05:34:20 -06:00
mapper cleanup linter warnings (#2206) 2024-10-23 10:45:59 -05:00
notifier Fix slow shutdown (#2113) 2024-09-09 14:10:22 +02:00
policy remove log print 2024-11-23 21:14:55 +01:00
templates more linter fixups (#2212) 2024-11-22 15:54:58 +00:00
types fix constraints 2024-11-23 21:14:55 +01:00
util restore strip_email_domain for migration 2024-11-23 21:14:55 +01:00
app.go feat: support client verify for derp (add integration tests) (#2046) 2024-11-22 13:23:05 +01:00
auth_noise.go metrics, tuning in tests, db cleanups, fix concurrency issue (#1895) 2024-04-21 18:28:17 +02:00
auth.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
grpcv1_test.go
grpcv1.go use userID instead of username everywhere 2024-11-23 21:14:55 +01:00
handlers.go feat: support client verify for derp (add integration tests) (#2046) 2024-11-22 13:23:05 +01:00
metrics.go Handle /derp/latency-check (#2227) 2024-11-06 15:59:38 +01:00
noise.go cleanup linter warnings (#2206) 2024-10-23 10:45:59 -05:00
oidc.go fix constraints 2024-11-23 21:14:55 +01:00
platform_config.go Changed all the html into go using go-elem (#2161) 2024-10-04 11:39:24 +00:00
poll.go #2140 Fixed reflection of hostname change (#2199) 2024-10-17 09:45:33 -06:00
suite_test.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
tailsql.go Use result of fmt.Errorf call (#1668) 2024-02-15 11:02:54 +01:00