| 1 | import { GcpEnvironment } from "@/GCP/Environment"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import { MinimumLogLevel } from "effect/References"; |
| 4 | |
| 5 | export const logLevel = Effect.provideService( |
| 6 | MinimumLogLevel, |
| 7 | process.env.DEBUG ? "Debug" : "Info", |
| 8 | ); |
| 9 | |
| 10 | // Tag templates moved to Dataplex; projects without legacy Data Catalog |
| 11 | // access get DataCatalogDeprecated ("Project … is not allowed to perform read operations |
| 12 | // due to Data Catalog deprecation."). Set GCP_TEST_DATACATALOG_TAG_TEMPLATES=1 |
| 13 | // on a project that still has tag-template access. |
| 14 | export const runTagTemplateLifecycle = |
| 15 | !!process.env.GCP_TEST_DATACATALOG_TAG_TEMPLATES; |
| 16 | |
| 17 | export const currentProject = GcpEnvironment.current.pipe( |
| 18 | Effect.map((env) => env.project), |
| 19 | ); |
| 20 | export const location = "us-central1"; |