mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-25 02:55:29 +00:00
f6276ab9d2
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> |
||
---|---|---|
.. | ||
assets | ||
db | ||
derp | ||
mapper | ||
notifier | ||
policy | ||
templates | ||
types | ||
util | ||
app.go | ||
auth_noise.go | ||
auth.go | ||
grpcv1_test.go | ||
grpcv1.go | ||
handlers.go | ||
metrics.go | ||
noise.go | ||
oidc.go | ||
platform_config.go | ||
poll.go | ||
suite_test.go | ||
tailsql.go |