Skip to content

Commit

Permalink
Create server key for ECommerceJava.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Griffin committed Nov 20, 2024
1 parent 6c29a6e commit 4ff7a14
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:

- name: Test sample app
run: |
./gradlew bootRun &
FAUNA_ENDPOINT=http://localhost:8443 FAUNA_SECRET=`cat .fauna_key` ./gradlew bootRun &
./test/validate.sh
17 changes: 15 additions & 2 deletions test/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,22 @@ cp ./test/local-project .fauna-project

echo "Copied .fauna-project"

/usr/local/bin/fauna endpoint add local -y --set-default --url "$LOCAL_ENDPOINT" --secret "$SECRET"
fauna endpoint add local -y --set-default --url "$LOCAL_ENDPOINT" --secret "$SECRET"

echo "Added local endpoint"

fauna create-database "$DB_NAME"

echo "Created database"
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 schema push -y

OUTPUT="";
while [ `echo $OUTPUT | grep -c "Staged Status: ready"` = 0 ]; do
OUTPUT=`fauna schema status`;
done

fauna schema commit -y

0 comments on commit 4ff7a14

Please sign in to comment.