Commit f283520
committed
test: add unit tests for get-secret singleton + fix deploy script comment
- Add vitest + 5 unit tests for src/utils/get-secret.ts:
* Returns secret value from Secret Manager
* Calls Secret Manager on every invocation (no value caching — ensures
secret rotation takes effect immediately)
* Reuses singleton SecretManagerServiceClient across calls (proves no
gRPC channel leak)
* Throws on empty secret payload
* Throws on Secret Manager error
- Add code comment in deploy-quicknode-filter.sh explaining why templateArgs
uses 'abiJson' instead of 'abi' (OpenAPI spec says 'abi', but the live
evmAbiFilterGo endpoint requires 'abiJson' — empirically confirmed via
500 errors). Prevents future reviewers from flagging this as a bug.1 parent 4b6a5f7 commit f283520
File tree
5 files changed
+1576
-29
lines changed- bin
- src/utils/__tests__
5 files changed
+1576
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
| |||
0 commit comments