Skip to content

Commit

Permalink
Updated README with scripts/tests/test-gcs.sh to set the export GOOGL…
Browse files Browse the repository at this point in the history
…E_APPLICATION_CREDENTIALS
  • Loading branch information
shon-button committed Jul 31, 2023
1 parent 993bcd2 commit decf72e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

API_HOST=
DATABASE=
DATABASE_HOST=
DATABASE_PORT=
DATABASE_PROTOCOL=
DATABASE_SCHEMA_ADMIN=
DATABASE_SCHEMA_CLEAN=
DATABASE_SCHEMA_WORKSPACE=
DATABASE_SCHEMA_VAULT=
DATABASE_USER_ADMIN=
DATABASE_USER_PW_ADMIN=
DATABASE_USER_ANALYST=
DATABASE_USER_PW_ANALYST=
DATABASE_USER_DROPPER=
DATABASE_USER_PW_DROPPER=
DATABASE_USER_MANAGER=
DATABASE_USER_PW_MANAGER=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
NEXTAUTH_URL=
NEXTAUTH_SECRET=
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ Testing GCS file upload:
pnpm run test:gcs
```

**Note**: `pnpm run test:gcs` will run a script `scripts/tests/test-gcs.sh` that configures GOOGLE_APPLICATION_CREDENTIALS from service-account-key.json information stored as a string in `scripts\tests\.env`
**Note**: `pnpm run test:gcs` will run a script `scripts/tests/test-gcs.sh` that configures GOOGLE_APPLICATION_CREDENTIALS from service-account-key.json information stored as a stringify JSON object in `scripts\tests\.env`, for use of the [service account](https://console.cloud.google.com/iam-admin/serviceaccounts/details/106707473171516793046?project=emissions-elt-demo) permisions for GCS authentication.


## Running App Locally

Expand Down
1 change: 1 addition & 0 deletions scripts/tests/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SERVICE_ACCOUNT_JSON=
4 changes: 4 additions & 0 deletions tests/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
API_HOST=
GOOGLE_BUCKET_NAME=
NEXTAUTH_JWT_ANALYST=
NEXTAUTH_SECRET=

0 comments on commit decf72e

Please sign in to comment.