You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…apache#6127)
### What changes were proposed in this pull request?
Refactor the validation logic of the Tag and Role, meantime fix the test
case.
### Why are the changes needed?
Fix: apache#6123
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
ut + local test
**Role test**
```bash
gcli role grant -m demo_metalake --role admin
# Missing --privilege option.
gcli role revoke -m demo_metalake --role admin
# Missing --privilege option.
```
**Tag test**
```bash
gcli tag set -m demo_metalake
# Missing --name option.
gcli tag set -m demo_metalake --name catalog.schema.table --property property --tag tagA
# Missing --value option.
gcli tag set -m demo_metalake --name catalog.schema.table --value value --tag tagA
# Missing --property option.
gcli tag remove -m demo_metalake --tag tagA
# Missing --name option.
gcli tag remove -m demo_metalake
# Missing --name option.
gcli tag delete -m demo_metalake
# Missing --tag option.
gcli tag create -m demo_metalake
# Missing --tag option.
```
Describe the subtask
Refactor the validation logic of tag and role
Parent issue
parent: #6083
The text was updated successfully, but these errors were encountered: