@onlineapps/conn-orch-validator 2.0.31 → 2.0.32

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.31",
3
+ "version": "2.0.32",
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": {
@@ -238,8 +238,9 @@ class ServiceReadinessValidator {
238
238
  validateStatus: () => true // Accept any status for validation
239
239
  });
240
240
 
241
- // Check response
242
- const isValid = response.status >= 200 && response.status < 300;
241
+ // Check response: 2xx = success, 4xx = endpoint works but rejected test data (valid)
242
+ // Only 5xx (server error) or connection failure = invalid endpoint
243
+ const isValid = response.status < 500;
243
244
 
244
245
  if (isValid) {
245
246
  results.successful++;
@@ -34,9 +34,7 @@ class ValidationOrchestrator {
34
34
  const legacyConfigDir = path.join(this.serviceRoot, 'conn-config');
35
35
  this.configPath = fs.existsSync(newConfigDir) ? newConfigDir : legacyConfigDir;
36
36
 
37
- const newRuntimeDir = path.join(this.serviceRoot, 'config', 'runtime');
38
- const legacyRuntimeDir = path.join(this.serviceRoot, 'conn-runtime');
39
- this.runtimePath = fs.existsSync(newRuntimeDir) ? newRuntimeDir : legacyRuntimeDir;
37
+ this.runtimePath = path.join(this.serviceRoot, 'conn-runtime');
40
38
  this.proofPath = path.join(this.runtimePath, 'validation-proof.json');
41
39
 
42
40
  // Validators