From decf72eb7efd724377dce66e352c0d0b20a2cba7 Mon Sep 17 00:00:00 2001 From: shon-button Date: Mon, 31 Jul 2023 14:18:21 -0400 Subject: [PATCH] Updated README with scripts/tests/test-gcs.sh to set the export GOOGLE_APPLICATION_CREDENTIALS --- .env.example | 22 ++++++++++++++++++++++ README.md | 3 ++- scripts/tests/.env.example | 1 + tests/.env.example | 4 ++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .env.example create mode 100644 scripts/tests/.env.example create mode 100644 tests/.env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e2b7567 --- /dev/null +++ b/.env.example @@ -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= \ No newline at end of file diff --git a/README.md b/README.md index f81876b..5d90816 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/scripts/tests/.env.example b/scripts/tests/.env.example new file mode 100644 index 0000000..4fcdf2a --- /dev/null +++ b/scripts/tests/.env.example @@ -0,0 +1 @@ +SERVICE_ACCOUNT_JSON= \ No newline at end of file diff --git a/tests/.env.example b/tests/.env.example new file mode 100644 index 0000000..3139868 --- /dev/null +++ b/tests/.env.example @@ -0,0 +1,4 @@ +API_HOST= +GOOGLE_BUCKET_NAME= +NEXTAUTH_JWT_ANALYST= +NEXTAUTH_SECRET=