@onlineapps/conn-orch-validator 2.0.27 → 2.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-validator",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"description": "Validation orchestrator for OA Drive microservices - coordinates validation across all layers (base, infra, orch, business)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -161,7 +161,10 @@ class CookbookTestRunner {
|
|
|
161
161
|
// Validation context headers:
|
|
162
162
|
// 1. x-validation-request: signals this is a validation probe (deterministic responses)
|
|
163
163
|
// 2. account-id: required by multitenancy middleware for /api/** endpoints
|
|
164
|
-
const validationAccountId = process.env.OA_VALIDATION_ACCOUNT_ID
|
|
164
|
+
const validationAccountId = process.env.OA_VALIDATION_ACCOUNT_ID;
|
|
165
|
+
if (!validationAccountId) {
|
|
166
|
+
throw new Error('[CookbookTestRunner] Missing required environment variable OA_VALIDATION_ACCOUNT_ID');
|
|
167
|
+
}
|
|
165
168
|
const request = {
|
|
166
169
|
method: endpoint.method,
|
|
167
170
|
url: `${this.serviceUrl}${endpoint.path}`,
|
|
@@ -218,7 +218,10 @@ class ServiceReadinessValidator {
|
|
|
218
218
|
// Validation context headers:
|
|
219
219
|
// 1. x-validation-request: signals this is a validation probe
|
|
220
220
|
// 2. account-id: required by multitenancy middleware for /api/** endpoints
|
|
221
|
-
const validationAccountId = process.env.OA_VALIDATION_ACCOUNT_ID
|
|
221
|
+
const validationAccountId = process.env.OA_VALIDATION_ACCOUNT_ID;
|
|
222
|
+
if (!validationAccountId) {
|
|
223
|
+
throw new Error('[ServiceReadinessValidator] Missing required environment variable OA_VALIDATION_ACCOUNT_ID');
|
|
224
|
+
}
|
|
222
225
|
const headers = {
|
|
223
226
|
'x-validation-request': 'true',
|
|
224
227
|
'account-id': validationAccountId,
|