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
For some strange reason, this returns AutoMinorVersionUpgrade: False in the response. I've tried stepping through with a debugger, but I'm a bit stumped. As far as I can tell, Moto itself returns the value as true from create_cache_cluster in responses.py. The switch seems to occur in botocore.endpoint.py in _do_get_response(). The response_dict on line 288 contains <AutoMinorVersionUpgrade>True</AutoMinorVersionUpgrade> still, but on line 314 in the parsed_response that is in json format the value has switched to 'AutoMinorVersionUpgrade': False. I would try to contribute a fix for this myself, but I haven't worked with a model which returns a XML rather than JSON, and I really couldn't say why this switch suddenly happens. This bug is easily reproducible by editing the test_create_redis_cache_cluster unit test to pass AutoMinorVersionUpgrade=True into create_cache_cluster and asserting it is also True in the response.
The text was updated successfully, but these errors were encountered:
I am trying to mock creation of an elasticache cluster with AutoMinorVersionUpgrade set to True using the following API call on Moto version 5.0.28.
For some strange reason, this returns AutoMinorVersionUpgrade: False in the response. I've tried stepping through with a debugger, but I'm a bit stumped. As far as I can tell, Moto itself returns the value as true from create_cache_cluster in responses.py. The switch seems to occur in botocore.endpoint.py in _do_get_response(). The response_dict on line 288 contains
<AutoMinorVersionUpgrade>True</AutoMinorVersionUpgrade>
still, but on line 314 in the parsed_response that is in json format the value has switched to 'AutoMinorVersionUpgrade': False. I would try to contribute a fix for this myself, but I haven't worked with a model which returns a XML rather than JSON, and I really couldn't say why this switch suddenly happens. This bug is easily reproducible by editing thetest_create_redis_cache_cluster
unit test to pass AutoMinorVersionUpgrade=True into create_cache_cluster and asserting it is also True in the response.The text was updated successfully, but these errors were encountered: