feat: add asset scanning unit tests for _asset_scan_status param and api_version header#167
Draft
OMpawar-21 wants to merge 1 commit into
Draft
feat: add asset scanning unit tests for _asset_scan_status param and api_version header#167OMpawar-21 wants to merge 1 commit into
OMpawar-21 wants to merge 1 commit into
Conversation
…api_version header
🔒 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AssetsUnitTestscovering the asset scanning feature_asset_scan_statusquery param behavior onfind(),fetch(), andupload()api_versionheader behavior onpublish()add_param()/add_header()fromParameterbase classTests Added
test_fetch_includes_scan_status_param_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)