test(integration): reorganize Hurl integration tests
This commit is contained in:
parent
368ff80ef3
commit
15020e9878
18 changed files with 154 additions and 10 deletions
11
tests/hurl_integration/scenarios/user_details/init_db.sh
Executable file
11
tests/hurl_integration/scenarios/user_details/init_db.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue