mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
8671a80dc8
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.go | ||
auth_noise.go | ||
grpcv1.go | ||
grpcv1_test.go | ||
handlers.go | ||
metrics.go | ||
noise.go | ||
oidc.go | ||
platform_config.go | ||
poll.go | ||
suite_test.go | ||
tailsql.go |