diff --git a/test/setup.sh b/test/setup.sh index 466e106..080e539 100755 --- a/test/setup.sh +++ b/test/setup.sh @@ -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="";