@onlineapps/conn-orch-validator 2.0.1 → 2.0.3

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.1",
3
+ "version": "2.0.3",
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": {
@@ -20,8 +20,14 @@ class ValidationOrchestrator {
20
20
  this.serviceRoot = options.serviceRoot;
21
21
  this.serviceName = options.serviceName;
22
22
  this.serviceVersion = options.serviceVersion;
23
+ this.serviceUrl = options.serviceUrl; // NEW: Service URL for HTTP calls
23
24
  this.logger = options.logger || console;
24
25
 
26
+ // Validate required options
27
+ if (!this.serviceUrl) {
28
+ throw new Error('serviceUrl is required for ValidationOrchestrator');
29
+ }
30
+
25
31
  // Paths
26
32
  this.configPath = path.join(this.serviceRoot, 'conn-config');
27
33
  this.runtimePath = path.join(this.serviceRoot, 'conn-runtime');
@@ -32,7 +38,8 @@ class ValidationOrchestrator {
32
38
  this.readinessValidator = new ServiceReadinessValidator();
33
39
  this.cookbookRunner = new CookbookTestRunner({
34
40
  servicePath: this.serviceRoot,
35
- serviceName: this.serviceName
41
+ serviceName: this.serviceName,
42
+ serviceUrl: this.serviceUrl // Pass serviceUrl to CookbookTestRunner
36
43
  });
37
44
  }
38
45
 
@@ -386,6 +393,7 @@ class ValidationOrchestrator {
386
393
  const result = await this.readinessValidator.validateReadiness({
387
394
  serviceRoot: this.serviceRoot,
388
395
  serviceName: this.serviceName,
396
+ serviceUrl: this.serviceUrl,
389
397
  operations: operations.operations
390
398
  });
391
399