fix(s3): add ContentType in upload_file (#7643)

Co-authored-by: Pedro Martín <pedromarting3@gmail.com>
This commit is contained in:
Prowler Bot
2025-05-05 16:23:33 +02:00
committed by GitHub
parent bf7b2d7c8f
commit 26040f04ad
3 changed files with 19 additions and 6 deletions
+5 -5
View File
@@ -93,7 +93,7 @@ class TestS3:
Bucket=S3_BUCKET_NAME,
Key=uploaded_object_name,
)["ContentType"]
== "binary/octet-stream"
== "text/csv"
)
@mock_aws
@@ -132,7 +132,7 @@ class TestS3:
Bucket=S3_BUCKET_NAME,
Key=uploaded_object_name,
)["ContentType"]
== "binary/octet-stream"
== "text/csv"
)
remove(f"{CURRENT_DIRECTORY}/{csv_file}")
@@ -171,7 +171,7 @@ class TestS3:
Bucket=S3_BUCKET_NAME,
Key=uploaded_object_name,
)["ContentType"]
== "binary/octet-stream"
== "application/json"
)
@mock_aws
@@ -209,7 +209,7 @@ class TestS3:
Bucket=S3_BUCKET_NAME,
Key=uploaded_object_name,
)["ContentType"]
== "binary/octet-stream"
== "text/html"
)
@mock_aws
@@ -290,7 +290,7 @@ class TestS3:
Bucket=S3_BUCKET_NAME,
Key=uploaded_object_name,
)["ContentType"]
== "binary/octet-stream"
== "text/csv"
)
def test_get_get_object_path_with_prowler(self):