feat: Add download button to S3 file picker (#2857)

This commit is contained in:
Guillaume Bouvignies
2023-12-14 15:45:37 +01:00
committed by GitHub
parent 70c2669b1e
commit f8c7a8edf8
7 changed files with 291 additions and 57 deletions

View File

@@ -4,7 +4,7 @@ import os
class TestStringMethods(unittest.TestCase):
_token = "wx9B4WcQhlGSrmhbHY8HqADxx6f4oy"
_token = "<WM_TOKEN>"
_workspace = "storage"
_host = "http://localhost:8000"
_resource_path = "u/admin/docker_minio"
@@ -64,6 +64,17 @@ SET s3_secret_access_key='80yMndIMcyXwEujxVNINQbf0tBlIzRaLPyM2m1n4';
}
self.assertEqual(settings, expected_settings)
def test_boto3_connection_settings(self):
settings = wmill.boto3_connection_settings(self._resource_path)
expected_settings = {
"endpoint_url": "http://localhost:9000",
"region_name": "fr-paris",
"use_ssl": False,
"aws_access_key_id": "IeuKPSYLKTO2h9CWfCVR",
"aws_secret_access_key": "80yMndIMcyXwEujxVNINQbf0tBlIzRaLPyM2m1n4",
}
self.assertEqual(settings, expected_settings)
if __name__ == "__main__":
unittest.main()