Skip to content

Commit

Permalink
Use eval to create key.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Griffin committed Nov 20, 2024
1 parent 4ff7a14 commit c7f3771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ fauna create-database "$DB_NAME"

fauna environment add --name local --endpoint local --database $DB_NAME -y
fauna environment select local
fauna create-key --environment='' ECommerceJava server | grep "secret: " | sed 's/secret: //' | xargs > .fauna_key
fauna eval "Key.create({ role: 'server' }).secret" | xargs > .fauna_key

echo "Created key"
fauna schema push -y

OUTPUT="";
Expand Down

0 comments on commit c7f3771

Please sign in to comment.