Abyss-lord opened a new pull request, #6127:
URL: https://github.com/apache/gravitino/pull/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: #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.
   ```
   


-- 
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]

Reply via email to