Skip to content

Commit

Permalink
Added AC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantk-12 committed May 29, 2024
1 parent c6e55f6 commit e1afa5a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hadoop-ozone/dist/src/main/smoketest/snapshot/snapshot-sh.robot
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ Snapshot Diff
Should contain ${result} + ${KEY_TWO}
Should contain ${result} + ${KEY_THREE}

Snapshot Diff as JSON
${result} = Execute ozone sh snapshot diff --json /${VOLUME}/${BUCKET} ${SNAPSHOT_ONE} ${SNAPSHOT_TWO}
Should contain echo '${result}' | jq '.jobStatus' DONE
Should contain echo '${result}' | jq '.snapshotDiffReport.volumeName' ${VOLUME}
Should contain echo '${result}' | jq '.snapshotDiffReport.bucketName' ${BUCKET}
Should contain echo '${result}' | jq '.snapshotDiffReport.fromSnapshot' ${SNAPSHOT_ONE}
Should contain echo '${result}' | jq '.snapshotDiffReport.toSnapshot' ${SNAPSHOT_TWO}
Should contain echo '${result}' | jq '.snapshotDiffReport.diffList | .[].sourcePath' ${KEY_TWO}
Should contain echo '${result}' | jq '.snapshotDiffReport.diffList | .[].sourcePath' ${KEY_THREE}

List Snapshot Diff Jobs
${result} = Execute ozone sh snapshot listDiff /${VOLUME}/${BUCKET} --all
Should contain ${result} ${VOLUME}
Expand Down

0 comments on commit e1afa5a

Please sign in to comment.