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> |
||
---|---|---|
.. | ||
testdata | ||
api_key_test.go | ||
api_key.go | ||
db_test.go | ||
db.go | ||
ip_test.go | ||
ip.go | ||
node_test.go | ||
node.go | ||
policy.go | ||
preauth_keys_test.go | ||
preauth_keys.go | ||
routes_test.go | ||
routes.go | ||
suite_test.go | ||
text_serialiser.go | ||
users_test.go | ||
users.go |