You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by we...@apache.org on 2025/07/23 00:25:43 UTC
(ozone) branch HDDS-13454 updated (daacfb9b7ab -> 8d3db2a5f5f)
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a change to branch HDDS-13454
in repository https://gitbox.apache.org/repos/asf/ozone.git
from daacfb9b7ab HDDS-13454. Add s3-shell.md to the build.
new add7072e54c Revert "HDDS-13454. Add s3-shell.md to the build."
new bcaf5c337d6 Revert "HDDS-13454. Add robot test and documentation for ozone shell s3 setsecret command."
new 8d3db2a5f5f HDDS-13454. Add robot test and documentation for ozone shell s3 setsecret command.
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../main/smoketest/security/ozone-secure-s3.robot | 64 ++++++++++++++++++++--
hadoop-ozone/pom.xml | 24 --------
hadoop-ozone/src/site/markdown/s3-shell.md | 17 ------
3 files changed, 60 insertions(+), 45 deletions(-)
delete mode 100644 hadoop-ozone/src/site/markdown/s3-shell.md
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org
(ozone) 03/03: HDDS-13454. Add robot test and documentation for ozone shell s3 setsecret command.
Posted by we...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch HDDS-13454
in repository https://gitbox.apache.org/repos/asf/ozone.git
commit 8d3db2a5f5faf13ccdaeb8490ec1b26735f541ce
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Tue Jul 22 17:25:30 2025 -0700
HDDS-13454. Add robot test and documentation for ozone shell s3 setsecret command.
Change-Id: Ifba6c5be5d5f221db528853b7c7f653a6557e570
---
hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot b/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot
index 70bade5f1e8..581643623ae 100644
--- a/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot
@@ -12,6 +12,7 @@
# 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.
+#suite: ozonesecure
*** Settings ***
Documentation Smoke test to start cluster with docker-compose environments.
@@ -58,3 +59,8 @@ Secure S3 test Failure
${rc} ${result} = Run And Return Rc And Output aws s3api --endpoint-url ${ENDPOINT_URL} create-bucket --bucket bucket-test123
Should Be True ${rc} > 0
+SetSecret Success
+ ${output} = Execute ozone sh s3 setsecret --secret=newsecret
+ Should Contain ${output} AWS_ACCESS_KEY_ID
+ Should Contain ${output} AWS_SECRET_ACCESS_KEY
+
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org
(ozone) 02/03: Revert "HDDS-13454. Add robot test and documentation for ozone shell s3 setsecret command."
Posted by we...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch HDDS-13454
in repository https://gitbox.apache.org/repos/asf/ozone.git
commit bcaf5c337d6d4ff1a8da710d71d9f3c27ada3c83
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Tue Jul 22 17:23:52 2025 -0700
Revert "HDDS-13454. Add robot test and documentation for ozone shell s3 setsecret command."
This reverts commit 07ee7da143f4a0d03be09fe72967e57eb1ca9ba6.
---
.../main/smoketest/security/ozone-secure-s3.robot | 64 +++++++++++++++++++---
hadoop-ozone/src/site/markdown/s3-shell.md | 17 ------
2 files changed, 57 insertions(+), 24 deletions(-)
diff --git a/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot b/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot
index c12bb152d77..70bade5f1e8 100644
--- a/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/security/ozone-secure-s3.robot
@@ -1,10 +1,60 @@
+# 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 ***
-Suite Setup Generate S3 Credentials
-Test Teardown Cleanup S3 Credentials
-Resource ./common.robot
+Documentation Smoke test to start cluster with docker-compose environments.
+Library OperatingSystem
+Library String
+Library BuiltIn
+Resource ../commonlib.robot
+Resource ../s3/commonawslib.robot
+Test Timeout 5 minutes
+
+*** Variables ***
+${ENDPOINT_URL} http://s3g:9878
+${TEMPDIR} /tmp
+${TEST_FILE} NOTICE.txt
+
+*** Keywords ***
+Setup volume names
+ ${random} Generate Random String 2 [NUMBERS]
+ Set Suite Variable ${volume1} fstest${random}
+ Set Suite Variable ${volume2} fstest2${random}
*** Test Cases ***
-SetSecret Success
- ${output} = Execute ozone sh s3 setsecret --secret=newsecret
- Should Contain ${output} AWS_ACCESS_KEY_ID
- Should Contain ${output} AWS_SECRET_ACCESS_KEY
\ No newline at end of file
+Secure S3 test Success
+ Run Keyword Setup s3 tests
+ ${output} = Execute aws s3api --endpoint-url ${ENDPOINT_URL} create-bucket --bucket bucket-test123
+ ${output} = Execute aws s3api --endpoint-url ${ENDPOINT_URL} list-buckets
+ Should contain ${output} bucket-test123
+
+Secure S3 put-object test
+ ${testFilePath} = Set Variable ${TEMPDIR}/${TEST_FILE}
+ Copy File ${TEST_FILE} ${testFilePath}
+ ${output} = Execute aws s3api --endpoint ${ENDPOINT_URL} put-object --bucket=bucket-test123 --key=tmp1/tmp2/NOTICE.txt --body=${testFilePath}
+ ${output} = Execute aws s3api --endpoint ${ENDPOINT_URL} list-objects --bucket=bucket-test123
+ Should contain ${output} tmp1/tmp2/NOTICE.txt
+ ${output} = Execute aws s3api --endpoint ${ENDPOINT_URL} put-object --bucket=bucket-test123 --key=tmp3//tmp4/NOTICE.txt --body=${testFilePath}
+ ${output} = Execute aws s3api --endpoint ${ENDPOINT_URL} list-objects --bucket=bucket-test123
+ Should contain ${output} tmp3//tmp4/NOTICE.txt
+ ${output} = Execute aws s3api --endpoint ${ENDPOINT_URL} put-object --bucket=bucket-test123 --key=//tmp5/tmp6/NOTICE.txt --body=${testFilePath}
+ ${output} = Execute aws s3api --endpoint ${ENDPOINT_URL} list-objects --bucket=bucket-test123
+ Should contain ${output} //tmp5/tmp6/NOTICE.txt
+
+Secure S3 test Failure
+ Run Keyword Setup dummy credentials for S3
+ ${rc} ${result} = Run And Return Rc And Output aws s3api --endpoint-url ${ENDPOINT_URL} create-bucket --bucket bucket-test123
+ Should Be True ${rc} > 0
+
diff --git a/hadoop-ozone/src/site/markdown/s3-shell.md b/hadoop-ozone/src/site/markdown/s3-shell.md
deleted file mode 100644
index f5bd63f8353..00000000000
--- a/hadoop-ozone/src/site/markdown/s3-shell.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# S3 Shell
-
-## Set Secret
-
-Updates the secret for an S3 user.
-
-### Syntax
-
-```bash
-ozone sh s3 setsecret --secret=<newsecret>
-```
-
-### Examples
-
-```bash
-ozone sh s3 setsecret --secret=my-new-secret
-```
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org
(ozone) 01/03: Revert "HDDS-13454. Add s3-shell.md to the build."
Posted by we...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch HDDS-13454
in repository https://gitbox.apache.org/repos/asf/ozone.git
commit add7072e54c64394d25a0c242ca0782a0912aafb
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Tue Jul 22 17:23:52 2025 -0700
Revert "HDDS-13454. Add s3-shell.md to the build."
This reverts commit daacfb9b7abd7b2177388ba2f97a866b758df0f4.
---
hadoop-ozone/pom.xml | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/hadoop-ozone/pom.xml b/hadoop-ozone/pom.xml
index c9bde153d82..33ab6235f29 100644
--- a/hadoop-ozone/pom.xml
+++ b/hadoop-ozone/pom.xml
@@ -98,30 +98,6 @@
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/classes/META-INF/resources/docs</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}/src/site/markdown</directory>
- <includes>
- <include>s3-shell.md</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org