Skip to content

Commit

Permalink
Merge pull request #14 from openfga/fix_fga
Browse files Browse the repository at this point in the history
fix: fga cli install.
  • Loading branch information
jcchavezs authored Jul 25, 2024
2 parents 77305ab + 6d32361 commit c9d43cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extauthz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ e2e: e2e-tools

e2e-tools:
@which yq > /dev/null || go install github.com/mikefarah/yq/v4@latest
@which fga > /dev/null || go install github.com/openfga/openfga/cmd/openfga@latest
@which fga > /dev/null || go install github.com/openfga/cli/cmd/fga@latest
4 changes: 2 additions & 2 deletions extauthz/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ STORE_FILE='e2e/store.fga.yaml'
FGA_API_URL='http://localhost:18080'
TARGET_URL='http://localhost:8080'

which yq || (echo "yq is not installed. Please install it." && exit 1)
which yq || (echo "yq is not installed. Please install it using make e2e-tools." && exit 1)
which fga || (echo "fga is not installed. Please install it make e2e-tools." && exit 1)

TMPDIR=$(mktemp -d)
MODEL=$TMPDIR/model.fga
Expand All @@ -24,7 +25,6 @@ setup_fga_server() {
$DOCKER_COMPOSE down
echo "Setting FGA server."
mkdir -p e2e/logs
go install github.com/openfga/cli/cmd/fga@latest
$DOCKER_COMPOSE up -d --build --remove-orphans openfga

STORE_ID=$(fga store create --model $MODEL --api-url $FGA_API_URL | jq -rc '.store.id')
Expand Down

0 comments on commit c9d43cf

Please sign in to comment.