-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow pools to be given a ksuid name
The commit fixes an issue with pool looks that made it so pools with a ksuid-like name could not be looked up for most zed commands. Fix the logic for lake/api.PoolID so that looking up a pool by ID is tried first and then falls back to looking up a pool by name if nothing is found. Closes #4431
- Loading branch information
Showing
7 changed files
with
50 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test that a pool can be given a ksuid name and everything still works. | ||
script: | | ||
export ZED_LAKE=test | ||
zed init -q | ||
zed create 2WwyVrZdEITo5WkKu1YsJC4dMjU | ||
zed use 2WwyVrZdEITo5WkKu1YsJC4dMjU | ||
outputs: | ||
- name: stdout | ||
regexp: | | ||
pool created: 2WwyVrZdEITo5WkKu1YsJC4dMjU \w{27} | ||
Switched to branch "main" on pool "2WwyVrZdEITo5WkKu1YsJC4dMjU" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Test that a pool can be given a ksuid name and everything still works. | ||
script: | | ||
source service.sh | ||
zed create 2WwyVrZdEITo5WkKu1YsJC4dMjU | ||
zed use 2WwyVrZdEITo5WkKu1YsJC4dMjU | ||
inputs: | ||
- name: service.sh | ||
outputs: | ||
- name: stdout | ||
regexp: | | ||
pool created: 2WwyVrZdEITo5WkKu1YsJC4dMjU \w{27} | ||
Switched to branch "main" on pool "2WwyVrZdEITo5WkKu1YsJC4dMjU" |