Uh oh!
There was an error while loading. Please reload this page.
feat: add asset scanning unit tests for _asset_scan_status param and api_version header - #167
Conversation
🔒 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 |
🔒 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 |
Uh oh!
There was an error while loading. Please reload this page.
Summary
AssetsUnitTestscovering the asset scanning featureinclude_asset_scan_statusquery param behavior onfind(),fetch(), andupload()api_versionheader behavior onpublish()add_param()/add_header()fromParameterbase classTests Added
test_fetch_includes_scan_status_paraminclude_asset_scan_status=Trueappears in URL when param is settest_find_includes_scan_status_paramfind()test_upload_includes_scan_status_paramupload()test_fetch_without_scan_status_param_field_absenttest_find_without_scan_status_param_field_absentfind()test_upload_without_scan_status_param_field_absentupload()test_scan_status_param_coexists_with_other_paramslocaleand_asset_scan_statusboth appear in URLtest_publish_includes_api_version_headerapi_version: 3.2header sent when explicitly addedtest_api_version_header_scoped_to_publishapi_versionheader absent when not addedTest Run
All 36 unit tests passed (
PYTHONPATH=. pytest tests/unit/assets/test_assets_unit.py -v)