Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support BucketLinks on admin command (Fix #1081) #1094

Closed
wants to merge 5 commits into from

Conversation

jbert
Copy link
Contributor

@jbert jbert commented Feb 27, 2025

  • Share code between backend/posix/ListBuckets and backend/posix/ListBucketsAndOwners, so both honour bucketlinks
  • add some basic tests to backend/posix to check functionality working
  • pulls in testify for string-array-equality (there were already references in go.mod, but easy to remove dependency if desired)

- extract method to find top-level dirs, optionally including links to
  dirs
- rework ListBuckets and ListBucketsAndOwners to use FileInfo rather
  than DirEntry

Failing test now passes
@versity-github
Copy link
Collaborator

This won't automatically run in continuous integration without approval. A member of the Versity organization must allow it.

@benmcclelland
Copy link
Member

Thank you for the PR for this! Let me think about these added dependencies, we may be able to move this test into the systems tests instead.

@benmcclelland
Copy link
Member

closing this PR, I cherry-picked and merged the fix without the tests in #1097. Will work with QA team to get this tested in system tests instead so that we dont have the extra dependencies and we can keep unit tests from needing a local fs.

@jbert
Copy link
Contributor Author

jbert commented Feb 28, 2025

Awesome. Thanks for that, and apologies that I didn't understand the testing regime/separation.

@jbert jbert deleted the jb/admin-support-bucketlinks branch February 28, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants