test(integration): reorganize Hurl integration tests

This commit is contained in:
Matthieu Bessat 2025-06-14 15:09:26 +02:00
parent 368ff80ef3
commit 15020e9878
18 changed files with 154 additions and 10 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/bash
password_hash="$(echo -n "root" | argon2 salt_06cGGWYDJCZ -e)"
echo $password_hash
SQL=$(cat <<EOF
INSERT INTO users
(id, handle, email, roles, status, password_hash, created_at)
VALUES
('$(uuid)', 'root', 'root@example.org', '[]', 'Active', '$password_hash', '2024-11-30T00:00:00Z');
EOF)
echo $SQL | sqlite3 $DB_PATH