jojochuang opened a new pull request, #8419:
URL: https://github.com/apache/ozone/pull/8419
## What changes were proposed in this pull request?
HDDS-12958. [Snapshot] Add ACL check regression tests for snapshot
operations.
Please describe your PR in detail:
* Added basic tests to verify permission checks takes effect for various
snapshot operations.
* Verifies that bucket owner can: create, rename and delete snapshots.
* Verifies that non bucket owner can not create, rename and delete.
* Verifies that user with bucket read permissions can: list snapshots,
get snapshot info, snapshot diff, list snapshot diff jobs and cancel snapshot
diff jobs.
* Verifies that user with no permissions cannot do any of the above.
* Fixed a few ACL check bugs in getSnapshotInfo, snapshotDiff and
cancelSnapshotDiff.
TODO:
* Audit logs for getSnapshotInfo , snapshotDiff, cancelSnapshotDiff are
missing. I was about to add it but my IDE crashed, so I guess it's a cue to
call it a day.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-12958
## How was this patch tested?
Regression tests.
--
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]