-
Notifications
You must be signed in to change notification settings - Fork 367
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
lakectl support create repository with sample data #8628
Conversation
♻️ PR Preview 9734fab has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
"STORAGE": storage3, | ||
"BRANCH": mainBranch, | ||
} | ||
RunCmdAndVerifySuccessWithFile(t, Lakectl()+" repo create lakefs://"+repoName3+" "+storage3+" --sample-data", false, "lakectl_repo_create_sample", vars) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: There's a command builder for lakectl tests, you can use it.
Here's an example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The builder doesn't give any additional value as I see, it doesn't quote args or provide additional functionality above contact. If you still think we should replace all test run of lakectl with the builder style. Lets discuss and address in a different PR.
- Keeping the current usage match the rest of the tests in this function.
- Wish to replace lakectl tests (not in this PR) with something more simple like https://bitfieldconsulting.com/posts/test-scripts. It may not match all the current requirements of the current lakectl_test but I think it will make running it outside esti and modify/add more test easy.
Support create repository with sample data by passing '--sample-data' flag
Closes #8627