Skip to content

Commit 212e94f

Browse files
MarcinGinsztAllda
authored andcommitted
proper stage url
1 parent b525d11 commit 212e94f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

operator-pipeline-images/operatorcert/entrypoints/upload_artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def upload_artifact(args: Any, file_path: str, org_id: Any = None) -> Dict[str,
9494
"""
9595
upload_url = urljoin(
9696
args.pyxis_url,
97-
f"/containers/v1/projects/certification/id/{args.cert_project_id}/artifacts",
97+
f"v1/projects/certification/id/{args.cert_project_id}/artifacts",
9898
)
9999
file_name = os.path.basename(file_path)
100100
file_size = os.path.getsize(file_path)

operator-pipeline-images/tests/entrypoints/test_upload_artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_upload_artifact(mock_post: MagicMock, mock_b64) -> None:
2929
upload_artifacts.upload_artifact(args, filename, 1)
3030

3131
mock_post.assert_called_once_with(
32-
"http://foo.com/containers/v1/projects/certification/id/123123/artifacts",
32+
"http://foo.com/v1/projects/certification/id/123123/artifacts",
3333
{
3434
"content": "a",
3535
"certification_hash": args.certification_hash,

0 commit comments

Comments
 (0)