From 3c700b00f1c20097fd178bbffac9b635c7bec3bc Mon Sep 17 00:00:00 2001 From: chocecil <162955484+chocecil@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:38:15 -0700 Subject: [PATCH] fix(job_attachments): fix integration test exception (#298) Signed-off-by: Cecilia Cho --- .gitignore | 3 ++- test/integ/deadline_job_attachments/test_job_attachments.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 46088e85..29d2b8b5 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ __pycache__/ *.swp *_version.py .attach_pid* -.DS_Store \ No newline at end of file +.DS_Store +.idea/ \ No newline at end of file diff --git a/test/integ/deadline_job_attachments/test_job_attachments.py b/test/integ/deadline_job_attachments/test_job_attachments.py index de48c586..7199dbdc 100644 --- a/test/integ/deadline_job_attachments/test_job_attachments.py +++ b/test/integ/deadline_job_attachments/test_job_attachments.py @@ -1333,7 +1333,7 @@ def test_upload_bucket_wrong_account(external_bucket: str, job_attachment_test: # WHEN with pytest.raises( - AssetSyncError, match=f"Error checking if object exists in bucket '{external_bucket}'" + JobAttachmentsS3ClientError, match=".*when calling the PutObject operation: Access Denied" ): upload_group = asset_manager.prepare_paths_for_upload( job_bundle_path=str(job_attachment_test.ASSET_ROOT),