This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 14bba1ee7a HDDS-5045. Create acceptance test for using rclone with s3 
protocol (#7571)
14bba1ee7a is described below

commit 14bba1ee7aee38c46ee9e9a4510c4e52442fac12
Author: Rishabh Patel <[email protected]>
AuthorDate: Tue Jan 7 23:13:20 2025 -0800

    HDDS-5045. Create acceptance test for using rclone with s3 protocol (#7571)
---
 hadoop-ozone/dist/pom.xml                          |  2 +-
 .../dist/src/main/smoketest/s3/rclone.robot        | 46 ++++++++++++++++++++++
 2 files changed, 47 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/dist/pom.xml b/hadoop-ozone/dist/pom.xml
index 82126325f2..0a9079747c 100644
--- a/hadoop-ozone/dist/pom.xml
+++ b/hadoop-ozone/dist/pom.xml
@@ -30,7 +30,7 @@
     <downloadSources>true</downloadSources>
     <docker.ozone.image>apache/ozone</docker.ozone.image>
     <docker.ozone.image.flavor>-rocky</docker.ozone.image.flavor> <!-- suffix 
appended to Ozone version to get Docker image version -->
-    <docker.ozone-runner.version>20241212-1-jdk21</docker.ozone-runner.version>
+    <docker.ozone-runner.version>20241216-1-jdk21</docker.ozone-runner.version>
     
<docker.ozone-testkr5b.image>ghcr.io/apache/ozone-testkrb5:20241129-1</docker.ozone-testkr5b.image>
     <maven.test.skip>true</maven.test.skip> <!-- no tests in this module so 
far -->
     <sort.skip>true</sort.skip>
diff --git a/hadoop-ozone/dist/src/main/smoketest/s3/rclone.robot 
b/hadoop-ozone/dist/src/main/smoketest/s3/rclone.robot
new file mode 100644
index 0000000000..b3405d3acf
--- /dev/null
+++ b/hadoop-ozone/dist/src/main/smoketest/s3/rclone.robot
@@ -0,0 +1,46 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+*** Settings ***
+Documentation       S3 gateway test with rclone client
+Library             OperatingSystem
+Library             BuiltIn
+Resource            ./commonawslib.robot
+Test Timeout        15 minutes
+Suite Setup         Setup s3 tests
+
+*** Variables ***
+${ENDPOINT_URL}             http://s3g:9878
+${S3_VOLUME}                s3v
+${BUCKET}                   generated
+${RCLONE_CONFIG_NAME}       ozone
+${RCLONE_CONFIG_PATH}       /tmp/rclone.conf
+${RCLONE_VERBOSE_LEVEL}     2
+
+*** Keywords ***
+#   Export access key and secret to the environment
+Setup aws credentials
+    ${accessKey} =      Execute     aws configure get aws_access_key_id
+    ${secret} =         Execute     aws configure get aws_secret_access_key
+    Set Environment Variable        AWS_SECRET_ACCESS_KEY  ${secret}
+    Set Environment Variable        AWS_ACCESS_KEY_ID  ${accessKey}
+
+*** Test Cases ***
+Rclone Client Test
+    [Setup]    Setup aws credentials
+    Set Environment Variable   RCLONE_CONFIG    ${RCLONE_CONFIG_PATH}
+    Set Environment Variable   RCLONE_VERBOSE   ${RCLONE_VERBOSE_LEVEL}
+    ${result} =     Execute    rclone config create ${RCLONE_CONFIG_NAME} s3 
env_auth=true provider=Other endpoint=${ENDPOINT_URL}
+    ${result} =     Execute    rclone copy /opt/hadoop/smoketest 
${RCLONE_CONFIG_NAME}:/${S3_VOLUME}/${BUCKET}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to