diff --git a/test/local-project b/test/local-project deleted file mode 100644 index 2b5eb0d..0000000 --- a/test/local-project +++ /dev/null @@ -1,2 +0,0 @@ -schema_directory=schema - diff --git a/test/setup.sh b/test/setup.sh index 814d5f3..bfd81de 100755 --- a/test/setup.sh +++ b/test/setup.sh @@ -4,8 +4,7 @@ DB_NAME="ECommerceJava" LOCAL_ENDPOINT="http://localhost:8443/" SECRET="secret" -cp ./test/local-project .fauna-project -echo "Copied .fauna-project" +touch .fauna-project fauna endpoint add local -y --set-default --url "$LOCAL_ENDPOINT" --secret "$SECRET" echo "Added local endpoint" @@ -17,7 +16,7 @@ fauna environment add --name local --endpoint local --database $DB_NAME -y fauna environment select local fauna eval "Key.create({ role: 'server' }).secret" | xargs > .fauna_key -fauna schema push -y --active +fauna schema push -y --active --dir=schema fauna import --collection Category --path seed/categories.json fauna import --collection Customer --path seed/customers.json