adoroszlai commented on code in PR #12119:
URL: https://github.com/apache/ozone/pull/12119#discussion_r4684461797
##########
hadoop-ozone/dist/src/main/smoketest/compatibility/write.robot:
##########
@@ -40,31 +44,74 @@ Expected Snapshot Diff Output
END
-
*** Test Cases ***
Create Bucket With Replication Type
Pass Execution If '${CLIENT_VERSION}' < '${EC_VERSION}' Client does
not support EC
Pass Execution If '${CLUSTER_VERSION}' < '${EC_VERSION}' Cluster does
not support EC
- Execute ozone sh bucket create --replication 3 --type RATIS
/vol1/ratis-${CLIENT_VERSION}
- Execute ozone sh bucket create --replication rs-3-2-1024k
--type EC /vol1/ecbucket-${CLIENT_VERSION}
+ Execute Later and Expect No Output For ozone sh bucket create
--replication 3 --type RATIS /vol1/ratis-${CLIENT_VERSION}
+ Execute Later and Expect No Output For ozone sh bucket create
--replication rs-3-2-1024k --type EC /vol1/ecbucket-${CLIENT_VERSION}
Create Encrypted Bucket
- Execute ozone sh bucket create -k ${ENCRYPTION_KEY}
/vol1/encrypted-${CLIENT_VERSION}
+ Execute Later and Expect No Output For ozone sh bucket create -k
${ENCRYPTION_KEY} /vol1/encrypted-${CLIENT_VERSION}
Create Key in Encrypted Bucket
- Execute ozone sh key put /vol1/encrypted-${CLIENT_VERSION}/key
${TESTFILE}
+ Execute Later and Expect No Output For ozone sh key put
/vol1/encrypted-${CLIENT_VERSION}/key ${TESTFILE}
Key Can Be Written
- Create Key /vol1/bucket1/key-${CLIENT_VERSION} ${TESTFILE}
+ Execute Later and Expect No Output For ozone sh key put
/vol1/bucket1/key-${CLIENT_VERSION} ${TESTFILE}
Key Can Be Written To Bucket With Replication Type
Pass Execution If '${CLUSTER_VERSION}' < '${EC_VERSION}' Cluster does
not support EC
- Execute ozone sh key put
/vol1/ratis-${CLUSTER_VERSION}/key-${CLIENT_VERSION} ${TESTFILE}
- Execute ozone sh key put
/vol1/ecbucket-${CLUSTER_VERSION}/key-${CLIENT_VERSION} ${TESTFILE}
+ Execute Later and Expect No Output For ozone sh key put
/vol1/ratis-${CLUSTER_VERSION}/key-${CLIENT_VERSION} ${TESTFILE}
+ Execute Later and Expect No Output For ozone sh key put
/vol1/ecbucket-${CLUSTER_VERSION}/key-${CLIENT_VERSION} ${TESTFILE}
Key Can Be Deleted
- Create Key /vol1/bucket1/to-be-deleted-${CLIENT_VERSION} ${TESTFILE}
- Execute ozone sh key delete
/vol1/bucket1/to-be-deleted-${CLIENT_VERSION}
+ Execute Later and Expect No Output For ozone sh key put
/vol1/bucket1/to-be-deleted-${CLIENT_VERSION} ${TESTFILE}
+ Execute Later and Expect No Output For ozone sh key delete
/vol1/bucket1/to-be-deleted-${CLIENT_VERSION}
+
+FSO Bucket Can Be Created
+ Pass Execution If '${CLIENT_VERSION}' < '${FSO_VERSION}' Client does
not support FSO
+ Pass Execution If '${CLUSTER_VERSION}' < '${FSO_VERSION}' Cluster
does not support FSO
+ Execute Later and Expect No Output For ozone sh bucket create --layout
FILE_SYSTEM_OPTIMIZED ${FSO_BUCKET}
+
+Snapshot Can Be Created
+ Pass Execution If '${CLIENT_VERSION}' < '${SNAPSHOT_VERSION}' Client
does not support snapshots
+ Pass Execution If '${CLUSTER_VERSION}' < '${SNAPSHOT_VERSION}'
Cluster does not support snapshots
+
+ Execute Later ozone sh snapshot create ${FSO_BUCKET} ${SNAPSHOT1}
+ Execute Later and Expect No Output For ozone sh key put
${FSO_BUCKET}/${SNAPSHOT_KEY1} ${TESTFILE}
+ Execute Later ozone sh snapshot create ${FSO_BUCKET} ${SNAPSHOT2}
+ Execute Later and Expect No Output For ozone sh key put
${FSO_BUCKET}/${SNAPSHOT_KEY2} ${TESTFILE}
+ Execute Later ozone sh snapshot create ${FSO_BUCKET} ${SNAPSHOT3}
Review Comment:
One `snapshot create` is enough to verify that it works across versions. We
only create more than 2 snapshots to be able to create multiple diffs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]