Conversation
fixed failed tests
The previous PR #336 partially fixed asset_fields parameters but used incorrect field names. This commit corrects all parameter names to match the CDA API specification. Changes: - Changed 'ai_suggested' to 'ai_generated_metadata' in all test files - Updated SDK documentation to reflect correct parameter names - All asset_fields tests now pass (verified locally) Valid asset_fields[] values per API: - user_defined_fields - embedded_metadata (not 'embedded') - ai_generated_metadata (not 'ai_suggested') - visual_markups API Error that revealed the issue: "Invalid values found, supported values are user_defined_fields, embedded_metadata, ai_generated_metadata, visual_markups" Files Modified: - test/api/asset.spec.ts - test/api/asset-query.spec.ts - test/api/entry.spec.ts - test/api/entries.spec.ts - src/assets/asset.ts (JSDoc) - src/query/asset-query.ts (JSDoc) - src/entries/entry.ts (JSDoc) - src/entries/entries.ts (JSDoc) Test Results: All 16 asset_fields tests passing (8 API + 8 unit)
…rameter-names fix: correct asset_fields[] parameter names for DAM 2.0
back merge
Problem: - The test "should compare initial vs delta sync performance" was failing intermittently due to network variability - Assertion expected deltaTime <= initialTime (strict) - In practice, small syncs (<100ms) have high variance from network latency - Example failure: initialTime=41ms, deltaTime=74ms (both fast, but failed) Solution: - Added hybrid tolerance: max(initialTime * 2, 100ms) - Allows 2x tolerance OR 100ms absolute threshold (whichever is larger) - Accounts for network variability while catching real performance regressions Impact: - Makes test more resilient to network conditions - Still catches meaningful performance degradation - Prevents false negatives from minor timing fluctuations
…ion-tolerance fix: add network tolerance to sync performance assertion
… for includeContentType param
fix: added support for special symbols in regex and added tpe support…
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
Coverage report
Test suite run success654 tests passing in 31 suites. Report generated by 🧪jest coverage report action from 7d2b228 |
back merge
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
No description provided.