aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscript/test-smoke.sh13
-rw-r--r--shell.nix2
2 files changed, 15 insertions, 0 deletions
diff --git a/script/test-smoke.sh b/script/test-smoke.sh
index acf56a90..cf66e67e 100755
--- a/script/test-smoke.sh
+++ b/script/test-smoke.sh
@@ -112,6 +112,19 @@ if [ -z "$SKIP_S3CMD" ]; then
done
fi
+# BOTO3
+if [ -z "$SKIP_BOTO3" ]; then
+ echo "🛠️ Testing with boto3 for STREAMING-UNSIGNED-PAYLOAD-TRAILER"
+ source ${SCRIPT_FOLDER}/dev-env-aws.sh
+ AWS_ENDPOINT_URL=https://localhost:4443 python <<EOF
+import boto3
+client = boto3.client('s3', verify=False)
+client.put_object(Body=b'hello world', Bucket='eprouvette', Key='test.s3.txt')
+client.delete_object(Bucket='eprouvette', Key='test.s3.txt')
+print("OK!")
+EOF
+fi
+
# Minio Client
if [ -z "$SKIP_MC" ]; then
echo "🛠️ Testing with mc (minio client)"
diff --git a/shell.nix b/shell.nix
index cfccfe94..09dcef3a 100644
--- a/shell.nix
+++ b/shell.nix
@@ -26,6 +26,8 @@ in
s3cmd
minio-client
rclone
+ (python312.withPackages (ps: [ ps.boto3 ]))
+
socat
psmisc
which