Skip to content

Commit

Permalink
Update pipeline names in the SCIO integration library
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Jan 18, 2024
1 parent a03fad1 commit b06b4f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions component_catalog/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3425,7 +3425,7 @@ def test_send_scan_notification(self):
},
"run": {
"uuid": "b45149cf-9e4c-41e5-8824-6abe7207551a",
"pipeline_name": "scan_package",
"pipeline_name": "scan_single_package",
"status": "success",
},
}
Expand Down Expand Up @@ -3469,7 +3469,7 @@ def test_send_scan_notification_update_package_from_scan(self, mock_update_from_
},
"run": {
"uuid": "b45149cf-9e4c-41e5-8824-6abe7207551a",
"pipeline_name": "scan_package",
"pipeline_name": "scan_single_package",
"status": "success",
},
}
Expand Down
4 changes: 2 additions & 2 deletions dejacode_toolkit/scancodeio.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def submit_scan(self, uri, user_uuid, dataspace_uuid):
data = {
"name": get_project_name(uri, user_uuid, dataspace_uuid),
"input_urls": uri,
"pipeline": "scan_package",
"pipeline": "scan_single_package",
"execute_now": True,
}

Expand All @@ -79,7 +79,7 @@ def submit_scan(self, uri, user_uuid, dataspace_uuid):
def submit_manifest_inspection(self, project_name, file_location, user_uuid, execute_now=False):
data = {
"name": project_name,
"pipeline": "inspect_manifest",
"pipeline": "inspect_packages",
"execute_now": execute_now,
}
files = {
Expand Down
12 changes: 6 additions & 6 deletions product_portfolio/importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,13 @@ def validate_toolkit_options(scan_options):
def validate_pipeline_runs(runs):
"""Raise a ValidationError if at least one of the supported pipeline was not run."""
valid_pipelines = (
"docker",
"docker_windows",
"inspect_manifest",
"load_inventory",
"root_filesystems",
"analyze_docker_image",
"analyze_root_filesystem_or_vm_image",
"analyze_windows_docker_image",
"inspect_packages",
"map_deploy_to_develop",
"scan_codebase",
"scan_package",
"scan_single_package",
)

has_a_valid_pipeline = [True for run in runs if run.get("pipeline_name") in valid_pipelines]
Expand Down

0 comments on commit b06b4f1

Please sign in to comment.