This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
Lower case input "true" passed to "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" is misinterpreted as false. #918
Labels
Comments
shuklanirdesh82
changed the title
Need to handle
Need to handle "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" correctly if it is having case sensitivity (fails to validate input value for "ALLOW_VALUE")
Feb 16, 2017
vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE
correctly if it is having case sensitivity (fails to validate input value for ALLOW_VALUE
)
tusharnt
changed the title
Need to handle "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" correctly if it is having case sensitivity (fails to validate input value for "ALLOW_VALUE")
Input passed to "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" should be case insensitive
Feb 16, 2017
tusharnt
changed the title
Input passed to "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" should be case insensitive
If lower case input "true" passed to "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" is misinterpreted as false.
Feb 16, 2017
tusharnt
changed the title
If lower case input "true" passed to "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" is misinterpreted as false.
Lower case input "true" passed to "vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE" is misinterpreted as false.
Feb 16, 2017
pshahzeb
pushed a commit
that referenced
this issue
Feb 24, 2017
1. Accepting case insensitive true/false values for allow-create option to set access for tenants. But throwing error for invalid values for allow-create option Testing: Added test cases for case insensitive true/false values as well as invalid value Manual testing done Resolves: #918
shuklanirdesh82
pushed a commit
that referenced
this issue
Feb 28, 2017
* Handling case insensitivity for tenant access allow-create option 1. Accepting case insensitive true/false values for allow-create option to set access for tenants. But throwing error for invalid values for allow-create option Testing: Added test cases for case insensitive true/false values as well as invalid value Manual testing done Resolves: #918 * Validating the tenant access set allow-create in auth_api 1. Moved the validatin logic to auth_api to be applied when invoked from both Admin CLI and VMODL 2. Modifying test cases to be hit by vmdkops_admin tenant_access_set api * 1. Adding allow_create validation to tenant_access_add 2. Correcting vmodl tests to allow optional allow_create parameter 3. Code cleaning * Code cleaning and reverting vmdk_ops_test * 1. Removing redundant test code and modifying comments 2. Updating help for admin tenant access set --allow-create option * Proper message check for invalid input to tenant access set allow_create option
shuklanirdesh82
pushed a commit
that referenced
this issue
Mar 2, 2017
* Handling case insensitivity for tenant access allow-create option 1. Accepting case insensitive true/false values for allow-create option to set access for tenants. But throwing error for invalid values for allow-create option Testing: Added test cases for case insensitive true/false values as well as invalid value Manual testing done Resolves: #918 * Validating the tenant access set allow-create in auth_api 1. Moved the validatin logic to auth_api to be applied when invoked from both Admin CLI and VMODL 2. Modifying test cases to be hit by vmdkops_admin tenant_access_set api * 1. Adding allow_create validation to tenant_access_add 2. Correcting vmodl tests to allow optional allow_create parameter 3. Code cleaning * Code cleaning and reverting vmdk_ops_test * 1. Removing redundant test code and modifying comments 2. Updating help for admin tenant access set --allow-create option * Proper message check for invalid input to tenant access set allow_create option
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
vmdkops_admin.py tenant access set --allow-create ALLOW_CREATE
fails to validate input value forALLOW_VALUE
; while setting a datastore-tenant access with such value operation always succeed.Tested with latest from master
Steps to reproduce:
While performing the above steps, step#5 leads to the confusion, it says
tenant access set succeeded
and sets--allow-create
toFalse
even though value has been passed attrue
.If
ALLOW_CREATE
is case sensitive thentenant access set
invocation should be failed rather sayingsucceeded
in our scenario.The text was updated successfully, but these errors were encountered: